Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReadGridded should support cropping geographically #1370

Open
thorbjoernl opened this issue Oct 9, 2024 · 2 comments
Open

ReadGridded should support cropping geographically #1370

thorbjoernl opened this issue Oct 9, 2024 · 2 comments
Assignees
Labels
enhancement ✨ New feature or request
Milestone

Comments

@thorbjoernl
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
Reading the entire griddeddata is quite memory intensive and discarding unneeded data (or ideally not reading it in in the first place) would be useful.

Describe the solution you would like to see

  • Ideally, read calls would allow passing a bounding box and data outside of this bounding box is not read.

Additional context
Add any other context or screenshots about the feature request here.

@thorbjoernl thorbjoernl added the enhancement ✨ New feature or request label Oct 9, 2024
@thorbjoernl thorbjoernl added this to the m2024-11 milestone Oct 9, 2024
@thorbjoernl thorbjoernl self-assigned this Oct 9, 2024
@lewisblake
Copy link
Member

Note: this will not work out of the box for non-lon-lat grids. So this PR will have to be limited in scope to only implement what xarray offers (e.g., .sel on longitude and latitude)

@lewisblake
Copy link
Member

Another note: We want this to be implemented in such a way that it does not cause the data to be realized in memory earlier than the current implementation.

@heikoklein heikoklein modified the milestones: m2024-11, m2024-12 Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ✨ New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants