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

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

Closed
2 tasks
remi-braun opened this issue Feb 23, 2022 · 3 comments
Closed
2 tasks

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

remi-braun opened this issue Feb 23, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@remi-braun
Copy link
Member

remi-braun commented Feb 23, 2022

When loading bands, enable the support of:

Loading a window

Loading an AOI

  • determine its extent
  • load only its window
  • then crop the windowed array by the AOI

⚠️ 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 remi-braun added the enhancement New feature or request label Feb 23, 2022
@remi-braun
Copy link
Member Author

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
Copy link
Member Author

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

@remi-braun
Copy link
Member Author

remi-braun commented Dec 13, 2022

Done in sertit-utils==1.21.0 🚀

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

1 participant