Skip to content

Commit 03e6833

Browse files
committed
FIX: Fix regression for missing EOReader aliases for spyndex spectral indices
1 parent 7497624 commit 03e6833

2 files changed

Lines changed: 15 additions & 5 deletions

File tree

CHANGES.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Release History
22

3+
## 0.18.1 (2022-YY-XX)
4+
5+
### Bug Fixes
6+
7+
- FIX: Fix regression for missing EOReader aliases for `spyndex` spectral indices
8+
9+
### Other
10+
11+
- DOC: Add latest DOI link
12+
313
## 0.18.0 (2022-12-06)
414

515
### Breaking Changes
@@ -24,7 +34,7 @@
2434
- Faster: Up to 4 times faster
2535
- Allows code refactoring between OLCI and SLSTR
2636
- **BREAKING CHANGES: For SAR product types that are not available in the Data Access Portfolio, default resolution is now the pixel spacing instead of the rg x az resolution**
27-
- Changes mainly Sentinel-1 default resolutions (except from IW mode)
37+
- Changes mainly Sentinel-1 default resolutions (except from IW mode)
2838

2939
### Enhancements
3040

@@ -35,7 +45,7 @@
3545

3646
- FIX: Fixing `CustomProduct` initialization when fields are set to None (instead of not declaring them)
3747
- FIX: SNAP cannot handle float predictors other than 1! Set it to 1 when saving ortho SAR images to disk, in order for SNAP to be able to despeckle
38-
them (https://forum.step.esa.int/t/exception-found-when-reading-compressed-tif/654/7). ([#62](https://github.com/sertit/eoreader/issues/62))
48+
them. See [SNAP issue](https://forum.step.esa.int/t/exception-found-when-reading-compressed-tif/654/7). ([#62](https://github.com/sertit/eoreader/issues/62))
3949
- FIX: Fixing mix in `Sentinel-2` mapping for `B8` (`NIR`, 10m resolution, large spectral bandwidth) and `B8A` (`NARROW_NIR`, 20m resolution, narrow spectral bandwidth)
4050

4151
### Other

eoreader/bands/indices.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,9 @@ def get_eoreader_indices() -> list:
317317
eoreader_indices.append(fct.__name__)
318318

319319
# Add aliases
320-
for index in EOREADER_ALIASES.keys():
321-
if hasattr(spyndex.indices, index):
322-
eoreader_indices.append(index)
320+
for eoreader_idx, spyndex_idx in EOREADER_ALIASES.items():
321+
if hasattr(spyndex.indices, spyndex_idx):
322+
eoreader_indices.append(eoreader_idx)
323323

324324
# Add derivatives
325325
for index, deriv_list in EOREADER_DERIVATIVES.items():

0 commit comments

Comments
 (0)