Skip to content

Conversation

@VeckoTheGecko
Copy link
Contributor

While working on #2447 , I realised that we weren't yet supporting the node_coordinates attribute in the SGRID conventions. This attribute specifies which variables in the dataset are used for the coordinates of the f-points.

This is different to node_dimensions which specifies the dimensions in which the nodes are defined (similar to the face_dimensions attribute).

just thought to split out for ease of reviewing since this is nicely orthogonal

Might be easier to review commit by commit as there's one commit for refactoring

Comment on lines +248 to +251
create_example_grid2dmetadata(with_node_coordinates=i, with_vertical_dimensions=j)
for i, j in itertools.product([False, True], [False, True])
]
+ [create_example_grid3dmetadata(with_node_coordinates=i) for i in [False, True]],
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just a quick refactor so that we test all combinations

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 to me!

@VeckoTheGecko VeckoTheGecko merged commit 4ac7ebe into Parcels-code:v4-dev Jan 9, 2026
11 checks passed
@github-project-automation github-project-automation bot moved this from Backlog to Done in Parcels development Jan 9, 2026
@VeckoTheGecko VeckoTheGecko deleted the node-coordinates branch January 9, 2026 08:47
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