Skip to content

Commit

Permalink
#161: return an error if SPECTRAL_PROCESSING not found in metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
jteulade committed Jul 1, 2024
1 parent f4ead6f commit 268ffb5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eoreader/products/optical/spot45_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,8 @@ def _set_band_combi(self) -> None:
"""
root, _ = self.read_mtd()
band_combi = root.findtext(".//SPECTRAL_PROCESSING")
if not band_combi:
raise InvalidProductError("SPECTRAL_PROCESSING not found in metadata!")
if self.constellation == Constellation.SPOT4:
self.band_combi = Spot4BandCombination.from_value(band_combi)
else:
Expand Down

0 comments on commit 268ffb5

Please sign in to comment.