Skip to content

XGrid localization#2082

Merged
VeckoTheGecko merged 6 commits intov4-devfrom
grid-localization
Jul 16, 2025
Merged

XGrid localization#2082
VeckoTheGecko merged 6 commits intov4-devfrom
grid-localization

Conversation

@VeckoTheGecko
Copy link
Copy Markdown
Contributor

@VeckoTheGecko VeckoTheGecko commented Jul 11, 2025

Currently we have a search method which returns a particle position relative to the F points. However, since our data can be defined on a staggered grid, it's important to "localize" this particle position to the grid for the array of interest. This mainly applies for C grids and when working with MITgcm and NEMO where their F points and C points are defined differently relative to each other (see diagram in docs or in #2037) .

This PR introduces this grid localization. This is really just the first draft to get feedback (code is a bit more messy than I would like - and there are no tests). This good localization will help with writing interpolators.

  • Chose the correct base branch (v4-dev for v4 changes)
  • Fixes None
  • Added tests (not yet)
  • Added documentation

Loading
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