You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace deprecated xarray .drop() and Dataset.dims[...] (#2734)
Clears the FutureWarnings that originate in Parcels' own code for two
deprecated xarray patterns, ahead of enabling fail-on-warning (#2413):
- .drop([...]) / .drop("...") -> .drop_vars(...)
- Dataset.dims[name] / .dims.items() / .dims.get() -> .sizes...
Leaves positional DataArray.dims[0] access untouched, since only the
Dataset.dims mapping-by-name is deprecated.
Towards #2682.
Signed-off-by: Mike German <mike@stepsventures.com>
# For some reason on the mesh "NemoNorthSeaORCA025-N006_data/coordinates.nc" there are two time dimensions (of length 1). These dimension also has broken cf-time metadata
0 commit comments