-
Notifications
You must be signed in to change notification settings - Fork 168
Closed
Labels
bugmetaIssues to do with organisation, dev setups, branding, or things non-code related related.Issues to do with organisation, dev setups, branding, or things non-code related related.v4
Description
Parcels version
v4-dev
Description
When loading in a fieldset using from_copernicusmarine, I wanted to check the grid.mesh that was being used. This is now available under the private name _mesh. I was surprised to find that it returns “flat”.
Code sample
# Load the CopernicusMarine data in the Agulhas region from the example_datasets
example_dataset_folder = parcels.download_example_dataset(
"CopernicusMarine_data_for_Argo_tutorial"
)
ds_fields = xr.open_mfdataset(
f"{example_dataset_folder}/*.nc", combine="by_coords"
).isel(depth=slice(0, 1))
ds_fields.load() # load the dataset into memory
fieldset = parcels.FieldSet.from_copernicusmarine(ds_fields)
fieldset.U.grid._mesh“flat"
Metadata
Metadata
Assignees
Labels
bugmetaIssues to do with organisation, dev setups, branding, or things non-code related related.Issues to do with organisation, dev setups, branding, or things non-code related related.v4
Type
Projects
Status
Done