Skip to content

Commit

Permalink
FIX: Resolve the inversion of resolution and pixel size between `stri…
Browse files Browse the repository at this point in the history
…pmap` and `sliding_spotlight` types for `Capella` products
  • Loading branch information
remi-braun committed Sep 3, 2024
1 parent 8f8b8c7 commit f57b7d0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
6 changes: 3 additions & 3 deletions docs/sar.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**<br>rg x az resolution: 0.5 m |
| StripMap [SM] | **pixel size: 0.6 m**<br>rg x az resolution: 1.0 m |
| Sliding Spotlight [SS] | **pixel size: 0.8 m**<br>rg x az resolution: 1.2 m | |
| Sliding Spotlight [SS] | **pixel size: 0.6 m**<br>rg x az resolution: 1.0 m |
| StripMap [SM] | **pixel size: 0.8 m**<br>rg x az resolution: 1.2 m | |

## GPT graphs

Expand Down
4 changes: 2 additions & 2 deletions eoreader/products/sar/capella_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f57b7d0

Please sign in to comment.