Open
Description
currently the default strategy of down-sampling is based on rasterio.enums.Resampling.rms
.
- For Sentinel-1 the down-sampling is delegated to the reader in https://github.com/umr-lops/xarray-safe-s1/blob/4c0184c6a1580118ccb1d36062375ad2081acff4/safe_s1/reader.py#L249
- For RCM is is done in
xsar
:Line 881 in 3412f47
- For RadarSAT-2 it is done in the associated reader: https://github.com/umr-lops/xradarsat2/blob/de1141391ab0b197ade12e6427804c6e89b95d80/src/xradarsat2/radarSat2_tiff_reader.py#L125
- Ideally the down-sampling should be done fully in
xsar
(I think withrasterio
the change of resolution is done only at opening, see Add rio resample operation rasterio/rasterio#755). The reader should only map the files to python objects, "editing" operations should be done inxsar
. - Ideally the down-sampling should let the user choose:
- the posting of the "pools"
- the size of the "pools"
- the shape of the "pools"
- the overlap of the "pools"
- the operation to apply on the "pools"