Replies: 1 comment 4 replies
-
|
Hi @ingwag, thanks for your question. You are right that the setting of gridindexingtype is not very robust in Parcels v3. @VeckoTheGecko and I are currently working on a much more robust/user-controlable implementation in the new Parcels v4! However, I think that even in Parcels v3, you should be able to do something like (not tested): fieldset = FieldSet.from_xarray(...)
fieldset.U.gridindexingtype = "mitgcm"
fieldset.V.gridindexingtype = "mitgcm"The Lines 1603 to 1612 in 1ce5908 Can you confirm if this works? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Question
Question
Hi, I have been wondering how to correctly load staggered grids as xarray datasets directly?
My velocity data is stored in binary files on a c-grid (MITgcm indexing). Instead of making a netcdf copy, I feel like it is easier for me to read the data using some custom scripts (which I already have) and just pass on the xarray dataset (chunked with dask) directly to parcels.
However, I don't see any way to specify the indexing or anything else regarding the grid type. GridInexingType is not used anywhere in
fieldset.from_xarray_datasetorField.from_xarray. Or is this not necessary since the data dims/coords are already explicitly set in the dataset?Thanks
Beta Was this translation helpful? Give feedback.
All reactions