-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementNew feature or requestNew feature or request
Description
I tried
>>> import safe_s1
>>> s = safe_s1.Sentinel1Reader("/home/datawork-cersat-public/cache/project/mpc-sentinel1/data/esa/sentinel-1a/L2/IW/S1A_IW_OCN__2S/2023/001/S1A_IW_OCN__2SDV_20230101T005639_20230101T005702_046583_059524_F6EC.SAFE")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home1/datahome/tcevaer/micromamba/envs/ocn_inversion/lib/python3.10/site-packages/safe_s1/reader.py", line 66, in __init__
raise Exception('case not handled')
Exception: case not handled
Which fails because
if "SLC" in self.path or "GRD" in self.path:
self.manifest_attrs = self.xml_parser.get_compound_var(
self.manifest, "safe_attributes_slcgrd"
)
elif "SL2" in self.path:
self.manifest_attrs = self.xml_parser.get_compound_var(
self.manifest, "safe_attributes_sl2"
)
else:
raise Exception("case not handled")
But a manifest.safe is available at the specified path.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request