johntruckenbrodt / pyroSAR

framework for large-scale SAR satellite data processing
MIT License
513 stars 112 forks source link

about ASAR data #314

Open GaotTian opened 5 months ago

GaotTian commented 5 months ago

file_name = 'ASA_WSM_1PNDSI20120309_155143_000003363112_00270_52439_0000.N1' from pyroSAR.drivers import ESA n = ESA(file_name)

this is a error :Traceback (most recent call last): File "D:\Python_code\sea_ice_drift-master\MODIS_convert.py", line 31, in n = ESA(file_name) File "C:\software\anoconda3\envs\nansat3.8\lib\site-packages\pyroSAR\drivers.py", line 1519, in init self.meta = self.scanMetadata() File "C:\software\anoconda3\envs\nansat3.8\lib\site-packages\pyroSAR\drivers.py", line 1579, in scanMetadata gcps = obj.read(size * n) UnboundLocalError: local variable 'size' referenced before assignment