Skip to content

Conversation

@VeckoTheGecko
Copy link
Contributor

Towards #2003 (related to #2432)

)
ds["grid"] = xr.DataArray(
0,
attrs=sgrid.Grid2DMetadata( # use dummy *_center dimensions - this is A grid data (all defined on nodes)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is needed since SGRID conventions describe staggered grids - and this isn't a staggered grid.

Its ok though - I added a change to filter out dims not used in the dataset (which was needed anyway to support .sel)

Copy link
Member

@erikvansebille erikvansebille left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good; thanks!

Co-authored-by: Erik van Sebille <e.vansebille@uu.nl>
@VeckoTheGecko VeckoTheGecko enabled auto-merge (squash) December 12, 2025 13:48
@VeckoTheGecko VeckoTheGecko merged commit e90c722 into Parcels-code:v4-dev Dec 12, 2025
9 of 10 checks passed
@github-project-automation github-project-automation bot moved this from Backlog to Done in Parcels development Dec 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants