Skip to content

Commit e21b024

Browse files
committed
Update options to open_mfdataset
1 parent d6e298d commit e21b024

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/parcels/_datasets/remote.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,15 @@ def __init__(self, path_relative_to_root: str, pre_decode_cf_callable=None):
131131
def open_dataset(self) -> xr.Dataset:
132132
self.download_relevant_files()
133133
with xr.set_options(use_new_combine_kwarg_defaults=True):
134-
ds = xr.open_mfdataset(f"{self.pup.path}/{self.path_relative_to_root}", decode_cf=False)
134+
ds = xr.open_mfdataset(
135+
f"{self.pup.path}/{self.path_relative_to_root}",
136+
decode_cf=False,
137+
# options to open mfdataset https://github.com/Parcels-code/Parcels/pull/2574#discussion_r3073256988
138+
combine="nested",
139+
data_vars="minimal",
140+
coords="minimal",
141+
compat="override",
142+
)
135143

136144
if self.pre_decode_cf_callable is not None:
137145
ds = self.pre_decode_cf_callable(ds)

0 commit comments

Comments
 (0)