metno / pyaerocom

Python tools for climate and air quality model evaluation
https://pyaerocom.readthedocs.io/
GNU General Public License v3.0
26 stars 15 forks source link

ReadGridded should support cropping geographically #1370

Open thorbjoernl opened 1 month ago

thorbjoernl commented 1 month ago

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

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

lewisblake commented 1 month ago

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 commented 4 weeks ago

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.