Create a grid.negate_depth
method to swap the sign of depth fields?
#1746
Labels
grid.negate_depth
method to swap the sign of depth fields?
#1746
Since the sign/orientation of the depth vector is not standardised in oceanography, users may sometimes need to negate a
grid.depth
field. See e.g. OceanParcels/virtualship#75. Especially sincegrid._depth
is a private attribute, this is not trivial to users.It might thus be useful to add a simple
grid.negate_depth()
method that simply doesThe text was updated successfully, but these errors were encountered: