Skip to content

Commit 44b724e

Browse files
Swapping depth-axis order to be strictly increasing
1 parent 282aa4d commit 44b724e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/virtualship/expedition/input_data.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ def _load_ship_fieldset(cls, directory: Path) -> FieldSet:
104104
ds = ds.rename_vars({"deptho": "bathymetry"})
105105
ds["bathymetry"] = -ds["bathymetry"]
106106
ds["depth"] = -ds["depth"]
107+
ds = ds.reindex(depth=ds.depth[::-1])
107108
ds = ds.rename({"so": "S", "thetao": "T"})
108109
ds.time.attrs["axis"] = "T"
109110
fieldset = FieldSet.from_copernicusmarine(ds)

0 commit comments

Comments
 (0)