johntruckenbrodt / pyroSAR

framework for large-scale SAR satellite data processing
MIT License
494 stars 110 forks source link

CDSE zipfiles with implicit directories fail to identify #269

Closed tyler-c2s closed 9 months ago

tyler-c2s commented 9 months ago

As reported in https://github.com/johntruckenbrodt/spatialist/issues/36, newer CDSE zip files have issues matching the SAFE pattern, and result in a runtime error. This will have to be resolved in spatialist and update pyroSAR's requirement

from pyroSAR.drivers import SAFE

scene = "tmp/s1/S1A_IW_GRDH_1SDV_20231007T184542_20231007T184607_050663_061AA6_A057.zip"
driver = SAFE(scene)
driver.scene
RuntimeError: scene does not match SAFE naming convention