Replies: 5 comments 6 replies
-
Hi @hetland, thanks for the question. In fact, from the latest v2.2.1, Parcels supports MITgcm grid indexing, using Is that what you were after? |
Beta Was this translation helpful? Give feedback.
-
I did not know about the support for MITgcm indexing. This will be very useful. This specifically is the part that I was after, but generally I still think considering s-grid support would make it so that a wider range of models could be supported. S-grid conventions would let parcels identify the indexing convention from the Dataset attributes. It would also allow for any type of model output. Basically, the node and face configuration can be specified per dimension, for so that arbitrary (though still structured) grids can be used. This removes the requirement to specify the particular grid configuration for each specific model output type. |
Beta Was this translation helpful? Give feedback.
-
Interesting idea, @hetland! But how would you identify the indexing convention from the Dataset attributes? Is there some CF-convention for indexing that we can query from the attributes? Could you give an example? |
Beta Was this translation helpful? Give feedback.
-
The S-grid conventions, linked above, describe how this would work: https://sgrid.github.io/sgrid/ A simple example on that page looks like this:
|
Beta Was this translation helpful? Give feedback.
-
So, I've finally been able to get back to this work, and have run into this issue:
I have a use case for this, and so I'm bringing this point up for discussion. I think one solution would be my original suggestion for generalized support for structured grids, the sgrid conventions. In the meantime, does anybody have any suggestions for workarounds, preferably that work with xarray datasets (read in from a zarr file)? |
Beta Was this translation helpful? Give feedback.
-
I would like to propose that parcels accept Arakawa C-grids that follow the sgrid conventions. Currently, curvilinear grids in parcels follow a convention that is used by NEMO. Unfortunately, this is not a common convention in other C-grid based models (ROMS and MITGCM, in particular). This would allow a wider variety of models to be easily used, without cumbersome pre-processing.
Beta Was this translation helpful? Give feedback.
All reactions