We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a468ade commit fd2232aCopy full SHA for fd2232a
1 file changed
src/virtualship/instruments/base.py
@@ -222,7 +222,10 @@ def _generate_fieldset(self) -> parcels.FieldSet:
222
223
# negate depth and reindex (to suit Parcels XGrid strictly increasing depth convention)
224
ds["depth"] = -ds["depth"]
225
- ds = ds.reindex(depth=ds["depth"][::-1]) #
+ ds = ds.reindex(depth=ds["depth"][::-1])
226
+
227
+ # TODO: update when decision on handling of nans/0s in v4 is made (i.e. https://github.com/Parcels-code/Parcels/issues/2393)
228
+ ds = ds.fillna(0)
229
230
fields = {key: ds[field_var_name]}
231
ds_fset = parcels.convert.copernicusmarine_to_sgrid(fields=fields)
0 commit comments