Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Handle Formosat-2 products #167

Open
jteulade opened this issue Jul 9, 2024 · 1 comment
Open

ENH: Handle Formosat-2 products #167

jteulade opened this issue Jul 9, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@jteulade
Copy link
Contributor

jteulade commented Jul 9, 2024

For this product: s3://sertit-projects-archives/projects/2017/EEOS_Malaria/Bamako/Bamako/formosat-2010-11-19 pan.zip

I get this error:

Traceback (most recent call last):
  File "E:\JTeulade\repositories\stac\scripts\test.py", line 25, in <module>
    func()
  File "E:\JTeulade\repositories\stac\libs\sertit-utils\sertit\s3.py", line 118, in s3_env_wrapper
    return function(*_args, **_kwargs)
  File "E:\JTeulade\repositories\stac\scripts\test.py", line 17, in func
    prod: Product = Reader().open(tata, remove_tmp=True, method=CheckMethod.MTD)
  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 241, in __init__
    self._pre_init(**kwargs)
  File "e:\jteulade\repositories\eoreader\eoreader\products\optical\spot45_product.py", line 211, in _pre_init
    raise InvalidProductError("Mission index should be 4 or 5.")
eoreader.exceptions.InvalidProductError: Mission index should be 4 or 5.

This is due to a very old product: formosat

@jteulade jteulade added the bug Something isn't working label Jul 9, 2024
@remi-braun remi-braun added enhancement New feature or request and removed bug Something isn't working labels Jul 9, 2024
@remi-braun remi-braun changed the title error for a formosat product ENH: Handle Formosat-2 products Jul 9, 2024
@remi-braun
Copy link
Member

Old Formosat-2 products are basically SPOT-4/5 products. It could be very easy to handle. To do if it's only really quick to realise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants