You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ability to extract a vertical "slice" of data? #18
I was just looking through the helper functions and there's a lot to be excited about! But it also got me thinking about something that I've gotten requests for on a number of occasions either for debugging or actual science analysis, which is producing a vertical "slice" of the data. This usually comes from wanting to understand the model behavior around topography or grid noise signals, so it's important to use the native grid data rather than regridding to something that would make extracting the slice "easy".
I'm imagining simple function that would reduce the unstructured spatial dimension to include a series of points that lie on a great circle path between two points defined by their latitude and longitude. The new set of columns would need to be ordered by their distance to one of the end points. da_slice = uxarray.slice(da, lat1, lat2, lon1, lon2)
I'm not sure how hard this would be to do, but it would be great to have!
Hey @whannah1 , thanks a lot for your feedback! A slice function sounds like a great addition to UXarray API, and slicing without needing to regrid was already a driving use case for our Project Raijin!
Activity
erogluorhan commentedon Apr 15, 2022
Hey @whannah1 , thanks a lot for your feedback! A
slicefunction sounds like a great addition to UXarray API, and slicing without needing to regrid was already a driving use case for our Project Raijin!@brianpm @clyne @paullric any thoughts?
paullric commentedon Apr 15, 2022
Agree that would be some very useful functionality, and should be fairly easy to implement. This seems similar to the slicing demo from xugrid here: https://deltares.github.io/xugrid/
clyne commentedon Apr 15, 2022
Interesting. I wasn't aware of the xugrid effort. Has anyone had any contact with them? Their goals seem very similar to ours.
rljacob commentedon Apr 15, 2022
Contact was made in #8