Skip to content

Conversation

@fluidnumerics-joe
Copy link
Contributor

@fluidnumerics-joe fluidnumerics-joe commented Jul 22, 2025

This PR brings in uxarray.get_faces_containing_point for the initial and backup search method to find the face a particle resides in. Additionally, to cope with particles crossing the antimeridian or being in cells that are colinear in lat/lon space, I've added a fallback option for calculating barycentric coordinate in cartesian (x,y,z) space (on a unit sphere). I've added a generic dataset that crosses the antimeridian with tests for particle positions within elements that cross the antimeridian.

@fluidnumerics-joe
Copy link
Contributor Author

Ok, I've added the cartesian barycentric coordinates as a backup to the latlon calculation. I'll just add a test with a generic dataset that crosses the antimeridian. This should exercise this new feature. Hopefully just one more commit to get this wrapped up.

@fluidnumerics-joe fluidnumerics-joe marked this pull request as ready for review July 28, 2025 18:19
@fluidnumerics-joe fluidnumerics-joe merged commit c6f91d6 into v4-dev Jul 28, 2025
9 checks passed
@fluidnumerics-joe fluidnumerics-joe deleted the feature/uxarray-get-faces-containing-points branch July 28, 2025 18:30
@github-project-automation github-project-automation bot moved this from Backlog to Done in Parcels development Jul 28, 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.

3 participants