Skip to content

Commit 6e2d0e4

Browse files
Update src/parcels/_core/fieldset.py
Co-authored-by: Erik van Sebille <[email protected]>
1 parent 20bdc6b commit 6e2d0e4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/parcels/_core/fieldset.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,8 @@ def from_copernicusmarine(ds: xr.Dataset):
217217

218218
ds = _rename_coords_copernicusmarine(ds)
219219
if "W" in ds.data_vars:
220-
ds["W"] -= ds[
221-
"W"
222-
] # Negate W to convert from up positive to down positive (as that's the direction of positive z)
220+
# Negate W to convert from up positive to down positive (as that's the direction of positive z)
221+
ds["W"] -= ds["W"]
223222

224223
if "grid" in ds.cf.cf_roles:
225224
raise ValueError(

0 commit comments

Comments
 (0)