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

a error of the ASAR *N1 format data #551

Open
GaotTian opened this issue Jun 9, 2024 · 4 comments
Open

a error of the ASAR *N1 format data #551

GaotTian opened this issue Jun 9, 2024 · 4 comments

Comments

@GaotTian
Copy link

GaotTian commented Jun 9, 2024

Traceback (most recent call last):
File "D:\Python_code\sea_ice_drift-master\cartopy_show_ASAR.py", line 17, in
n = Nansat(filename,mapper='ASAR')
File "C:\software\anoconda3\envs\nansat3.9\lib\site-packages\nansat\nansat.py", line 156, in init
self.vrt = self._get_mapper(mapper, **kwargs)
File "C:\software\anoconda3\envs\nansat3.9\lib\site-packages\nansat\nansat.py", line 1135, in _get_mapper
tmp_vrt = nansatMappers[mappername](self.filename, gdal_dataset, metadata, **kwargs)
File "C:\software\anoconda3\envs\nansat3.9\lib\site-packages\nansat\mappers\mapper_asar.py", line 49, in init
self.setup_ads_parameters(filename, gdalMetadata)
File "C:\software\anoconda3\envs\nansat3.9\lib\site-packages\nansat\mappers\envisat.py", line 212, in setup_ads_parameters
raise WrongMapperError
nansat.exceptions.WrongMapperError
Exception ignored in: <function VRT.del at 0x000002E7D795B700>
Traceback (most recent call last):
File "C:\software\anoconda3\envs\nansat3.9\lib\site-packages\nansat\vrt.py", line 469, in del
gdal.Unlink(self.filename)
File "C:\software\anoconda3\envs\nansat3.9\lib\site-packages\osgeo\gdal.py", line 3360, in Unlink
return _gdal.Unlink(*args)
RuntimeError: unknown error occurred

@GaotTian
Copy link
Author

GaotTian commented Jun 9, 2024

example :ASA_WSM_1PNDSI20120309_155143_000003363112_00270_52439_0000.N1

@jwLuo6413
Copy link

I think maybe you can test whether your "osgeo gdal" package is normal first. Try "from osgeo import gdal" to see if it can be imported properly.

@LooperzZ
Copy link

LooperzZ commented Jun 9, 2024

this is a new error: Traceback (most recent call last):
File "D:\Python_code\sea_ice_drift-master\MODIS_convert.py", line 11, in
n = Nansat(filename,mapper='asar')
File "C:\software\anoconda3\envs\nansat3.8\lib\site-packages\nansat\nansat.py", line 156, in init
self.vrt = self._get_mapper(mapper, **kwargs)
File "C:\software\anoconda3\envs\nansat3.8\lib\site-packages\nansat\nansat.py", line 1135, in _get_mapper
tmp_vrt = nansatMappers[mappername](self.filename, gdal_dataset, metadata, **kwargs)
File "C:\software\anoconda3\envs\nansat3.8\lib\site-packages\nansat\mappers\mapper_asar.py", line 49, in init
self.setup_ads_parameters(filename, gdalMetadata)
File "C:\software\anoconda3\envs\nansat3.8\lib\site-packages\nansat\mappers\envisat.py", line 212, in setup_ads_parameters
raise WrongMapperError
nansat.exceptions.WrongMapperError
can you help me ?Thank you!

@jwLuo6413
Copy link

@LooperzZ , your input "ASAR" filename is?

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

No branches or pull requests

3 participants