sertit / eoreader

Remote-sensing opensource python library reading optical and SAR sensors, loading and stacking bands, clouds, DEM and spectral indices in a sensor-agnostic way.
https://eoreader.readthedocs.io/en/latest/
Apache License 2.0
278 stars 22 forks source link

SPECTRAL_PROCESSING not found for spot 4/5 product #161

Closed jteulade closed 3 months ago

jteulade commented 3 months ago

For this product s3://sertit-projects-archives/projects/2017/ARCTOS_Krymsk/Images/SPOT5/Crise/brutes/ISISMONO-LICENCE-ARCHIVE_SO12004888-1-01_51162591207130814392J0.zip I get this error:

Traceback (most recent call last):
  File "E:\JTeulade\repositories\stac\scripts\find_valid_product.py", line 51, in <module>
    main()
  File "E:\JTeulade\repositories\stac\libs\sertit-utils\sertit\s3.py", line 99, in s3_env_wrapper
    return function(*_args, **_kwargs)
  File "E:\JTeulade\repositories\stac\scripts\find_valid_product.py", line 28, in main
    path_products = get_path_products(PATH_TO_CRAWL)
  File "E:\JTeulade\repositories\stac\stac\product.py", line 76, in get_path_products
    if check_product_and_fill_path(
  File "E:\JTeulade\repositories\stac\stac\product.py", line 108, in check_product_and_fill_path
    prod = Reader().open(path_to_check, remove_tmp=True)
  File "e:\jteulade\repositories\eoreader\eoreader\reader.py", line 528, in open
    prod = self._open_path(
  File "e:\jteulade\repositories\eoreader\eoreader\reader.py", line 690, in _open_path
    prod = create_product(
  File "e:\jteulade\repositories\eoreader\eoreader\reader.py", line 957, in create_product
    prod = class_(
  File "e:\jteulade\repositories\eoreader\eoreader\products\optical\vhr_product.py", line 91, in __init__
    super().__init__(product_path, archive_path, output_path, remove_tmp, **kwargs)
  File "e:\jteulade\repositories\eoreader\eoreader\products\optical\optical_product.py", line 116, in __init__
    super().__init__(product_path, archive_path, output_path, remove_tmp, **kwargs)
  File "e:\jteulade\repositories\eoreader\eoreader\products\product.py", line 250, in __init__
    self.name = self._get_name()
  File "e:\jteulade\repositories\eoreader\eoreader\products\product.py", line 439, in _get_name
    name = self._get_name_constellation_specific()
  File "e:\jteulade\repositories\eoreader\eoreader\products\optical\spot45_product.py", line 483, in _get_name_constellation_specific
    self._set_band_combi()  # Not set yet
  File "e:\jteulade\repositories\eoreader\eoreader\products\optical\spot45_product.py", line 239, in _set_band_combi
    self.band_combi = Spot5BandCombination.from_value(band_combi)
  File "E:\JTeulade\repositories\stac\libs\sertit-utils\sertit\misc.py", line 92, in from_value
    raise ValueError(f"Non existing {val} in {cls.list_values()}") from ex
ValueError: Non existing None in ['T', 'HM', 'X', 'J', 'HM+X', 'T+X']