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
Add XGrid from_dataset helper with default to drop Field data
It's not necessary for us to have the Field data on the XGrid/xgcm.Grid object itself. It doesn't make a big difference in the end, but dropping the field data on grid ingestion would allow us to keep things logically separate.
Removes DataArrays from the dataset that are associated with field data so that
41
+
when passed to the XGCM grid, the object only functions as an in memory representation
42
+
of the grid.
43
+
"""
44
+
returnds.drop_vars(ds.data_vars)
45
+
46
+
37
47
classXGrid(BaseGrid):
38
48
"""
39
49
Class to represent a structured grid in Parcels. Wraps a xgcm-like Grid object (we use a trimmed down version of the xgcm.Grid class that is vendored with Parcels).
0 commit comments