Suitability of xgcm for interpolation of point cloud data on sub-grid scale #658
Unanswered
VeckoTheGecko
asked this question in
Q&A
Replies: 1 comment 3 replies
-
What kind of interpolation do you want? From gridded field to trajectory? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! I am a core developer for Parcels, a Lagrangian simulation toolbox. Our core functionality is releasing particles to be advected on GCM output according to user defined behaviour.
We're looking to migrate our internals to xarray (issue).
I was very excited to find xgcm for its ability to interpret Arakawa grids, and automatically parse metadata from NetCDF datasets. Initially the presence of
Grid.interp()
gave me hope that we would be able to heavily rely on this package, however looking deeper atinterp()
I since found that its specialised for interpolating dataarrays onto the grid and not for arbitrary interpolation using the context of the grid.Also looking at the public API, I don't see how I could plug into xgcm to extract the grid context for use in custom interpolation routines. Any suggestions? Or is xgcm very specialised to the world of finite volume analysis to the point we're better off writing our own code?
cc @erikvansebille
Beta Was this translation helpful? Give feedback.
All reactions