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
271 stars 22 forks source link

setting pixel size error #152

Open jteulade opened 4 weeks ago

jteulade commented 4 weeks ago

For this product : s3://sertit-rms2/archives/rms/2010/SAFER_GERS048_052_054_Pakistan_inondations_2010/images_crise/Radarsat-2/sud_pakistan/brutes/RS2_OK14453_PK157214_DK149639_SCWA_20100820_012257_HH_SGF.zip

I get this error:

Traceback (most recent call last):
  File "E:\JTeulade\repositories\stac\scripts\test.py", line 24, in <module>
    func()
  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\test.py", line 16, 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\sar\sar_product.py", line 200, in __init__
    super().__init__(product_path, archive_path, output_path, remove_tmp, **kwargs)
  File "e:\jteulade\repositories\eoreader\eoreader\products\product.py", line 274, in __init__
    self._set_pixel_size()
  File "e:\jteulade\repositories\eoreader\eoreader\products\sar\rs2_product.py", line 355, in _set_pixel_size
    raise InvalidProductError(
eoreader.exceptions.InvalidProductError: There has been an error when setting pixel size or the resolution to your data! Please write an issue on Github.

Exception asks to write an issue. Done ! :)