diff --git a/src/parcels/_datasets/remote.py b/src/parcels/_datasets/remote.py index e176a1fb2..c8fb9e0ac 100644 --- a/src/parcels/_datasets/remote.py +++ b/src/parcels/_datasets/remote.py @@ -144,7 +144,9 @@ def __init__(self, pup: pooch.Pooch, path_relative_to_pup: str, pre_decode_cf_ca # Function to apply to the dataset before the decoding the CF variables self.pup = pup self.pre_decode_cf_callable: None | Callable[[xr.Dataset], xr.Dataset] = pre_decode_cf_callable - self.v3_dataset_name = path_relative_to_pup.split("/")[0] + + first, second, *_ = path_relative_to_pup.split("/") + self.v3_dataset_name = f"{first}/{second}" # e.g., data/my_dataset def open_dataset(self) -> xr.Dataset: self.download_relevant_files()