how to query lat and lon in a DataArray with dims x and y? #5009
-
Take the non-uniform example in the docs (http://xarray.pydata.org/en/stable/plotting.html#multidimensional-coordinates)
How would I query a lon-lat point? e.g. lat = 10.1 and lon = 10. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Something like this maybe.
Or use balltree/haversine for more lat/lon accuracy: https://stackoverflow.com/questions/10549402/kdtree-for-longitude-latitude Or another way,
|
Beta Was this translation helpful? Give feedback.
-
A similar question was asked on stackoverflow: https://stackoverflow.com/questions/66433948/get-nearest-pixel-value-from-satellite-image-using-latitude-longitude-coordinate/66439989#66439989 |
Beta Was this translation helpful? Give feedback.
-
Also see xoak: https://xoak.readthedocs.io/en/latest/ |
Beta Was this translation helpful? Give feedback.
Also see xoak: https://xoak.readthedocs.io/en/latest/