sertit / eoreader

Remote-sensing opensource python library reading optical and SAR sensors, loading and stacking bands, clouds, DEM and spectral indices in a sensor-agnostic way.
https://eoreader.readthedocs.io/en/latest/
Apache License 2.0
278 stars 22 forks source link

ENH: Enabling the support of windows and AOI when loading bands #25

Closed remi-braun closed 1 year ago

remi-braun commented 2 years ago

When loading bands, enable the support of:

Loading a window

Loading an AOI

:warning: Implementation limits

➡️Pay attention to non orthorectified or non projected bands.
✔️Ortho/project them entirely first to mimic the orthorectification of the whole VHR stacks before reading a band. ➡️What file to write on disk, only the whole files ?
✔️Always load, process nodata or clean pixels for the whole file, and then read a window (to complicated to manage a file per window)

remi-braun commented 2 years ago

Look at Salem

Salem is a small library to do geoscientific data processing and plotting. It extends xarray to add geolocalised subsetting, masking, and plotting operations to xarray’s DataArray and DataSet structures.

remi-braun commented 2 years ago

NB: this would be at first an improvement of the functions of sertit's rasters.read and rasters_rio.read

remi-braun commented 1 year ago

Done in sertit-utils==1.21.0 🚀