From f57b7d062894cce41ee10c31dba163f3a34f4a7f Mon Sep 17 00:00:00 2001 From: BRAUN REMI Date: Tue, 3 Sep 2024 10:15:08 +0200 Subject: [PATCH] FIX: Resolve the inversion of resolution and pixel size between `stripmap` and `sliding_spotlight` types for `Capella` products --- CHANGES.md | 1 + docs/sar.md | 6 +++--- eoreader/products/sar/capella_product.py | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 2107616e..b330adbe 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,6 +4,7 @@ - **ENH: Allow the process of Sentinel-1 COGs (provided by the Copernicus DataSpace) for SNAP >= 10** ([#172](https://github.com/sertit/eoreader/issues/172)) - ENH: Add a `BandType` alias for any types that could be a band: a string, a `BandNames` or any of its children: Spectral, SAR, DEM or Cloud band names +- FIX: Resolve the inversion of resolution and pixel size between `stripmap` and `sliding_spotlight` types for `Capella` products - FIX: Get better window name (if available) when writing bands on disk (in tmp folder) - OPTIM: Use default (and optimized) predictor in `rasters.write` if SNAP is version 10 or higher ([#173](https://github.com/sertit/eoreader/issues/173)) - COMPAT: EOReader works correctly with SNAP 10 ([#165](https://github.com/sertit/eoreader/issues/165)) diff --git a/docs/sar.md b/docs/sar.md index 9f8f7829..e8adcf6b 100644 --- a/docs/sar.md +++ b/docs/sar.md @@ -269,11 +269,11 @@ If you have more information about this, please write an issue! ### Capella -| **Capella** | Pixel size and Resolution | +| **Capella** | Pixel size and Resolution | |------------------------|-----------------------------------------------------| | Spotlight [SP] | **pixel size: 0.35 m**
rg x az resolution: 0.5 m | -| StripMap [SM] | **pixel size: 0.6 m**
rg x az resolution: 1.0 m | -| Sliding Spotlight [SS] | **pixel size: 0.8 m**
rg x az resolution: 1.2 m | | +| Sliding Spotlight [SS] | **pixel size: 0.6 m**
rg x az resolution: 1.0 m | +| StripMap [SM] | **pixel size: 0.8 m**
rg x az resolution: 1.2 m | | ## GPT graphs diff --git a/eoreader/products/sar/capella_product.py b/eoreader/products/sar/capella_product.py index 534c7940..2f4d2314 100644 --- a/eoreader/products/sar/capella_product.py +++ b/eoreader/products/sar/capella_product.py @@ -167,10 +167,10 @@ def _set_pixel_size(self) -> None: if self.sensor_mode == CapellaSensorMode.SP: def_pixel_size = 0.35 def_res = 0.5 - elif self.sensor_mode == CapellaSensorMode.SM: + elif self.sensor_mode == CapellaSensorMode.SS: def_pixel_size = 0.6 def_res = 1.0 - elif self.sensor_mode == CapellaSensorMode.SS: + elif self.sensor_mode == CapellaSensorMode.SM: def_pixel_size = 0.8 def_res = 1.2 else: