Skip to content

ability to extract a vertical "slice" of data? #18

Closed

Description

@whannah1

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!

Activity

  1. added
    new feature
    on Jan 27, 2022
  2. erogluorhan commented on Apr 15, 2022

    @erogluorhan
    Member

    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!

    @brianpm @clyne @paullric any thoughts?

  3. paullric commented on Apr 15, 2022

    @paullric
    Contributor

    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/

  4. clyne commented on Apr 15, 2022

    @clyne

    Interesting. I wasn't aware of the xugrid effort. Has anyone had any contact with them? Their goals seem very similar to ours.

  5. rljacob commented on Apr 15, 2022

    @rljacob
    Member

    Contact was made in #8

  6. added
    community support
    on Jun 10, 2022
  7. moved this to 🗣️ Discussions in Community Supporton Jun 10, 2022
  8. moved this from 📝 To Do to 🩺 Triage in UXarray Developmenton Sep 9, 2022
  9. moved this from 🩺 Triage to 📝 To Do in UXarray Developmenton Jun 25, 2023
  10. linked a pull request that will close this issueUnstructured Grid Subsetting & Indexing #616on Dec 20, 2023
  11. moved this from 📚 Backlog to 🏗 In progress in UXarray Developmenton Jan 2, 2024
  12. moved this from 🏗 In progress to ✅ Done in UXarray Developmenton Jan 9, 2024
  13. added this to the Core milestone on Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

community supportnew feature

Type

No type

Fields

Priority

None yet

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions