nansencenter / sentinel1denoised

Thermal noise subtraction, scalloping correction, angular correction
GNU General Public License v3.0
42 stars 14 forks source link

IndexError: models is not found in gcmd_platform #91

Closed hlkong98 closed 2 years ago

hlkong98 commented 2 years ago

When I try to run the code:

from s1denoise import Sentinel1Image input_zip_path = 'F:/SAR_data/S1A_EW_GRDM_1SDH_20181221T181147_20181221T181247_025127_02C64C_942D.zip' s1 = Sentinel1Image(input_zip_path)

Then the result raise Exceptions like: 06:31:25|40|nansat|_get_dataset_metadata|GDAL could not open F:/SAR_data/S1A_EW_GRDM_1SDH_20181221T181147_20181221T181247_025127_02C64C_942D.zip, trying to read with Nansat mappers... Traceback (most recent call last): File "", line 1, in File "D:\Users\82671\Anaconda3\envs\s1denoise\lib\site-packages\s1denoise\S1_TOPS_GRD_NoiseCorrection.py", line 174, in init Nansat.init( self, filename, File "D:\Users\82671\Anaconda3\envs\s1denoise\lib\site-packages\nansat\nansat.py", line 159, in init self.vrt = self._get_mapper(mapper, kwargs) File "D:\Users\82671\Anaconda3\envs\s1denoise\lib\site-packages\nansat\nansat.py", line 1164, in _get_mapper tmp_vrt = nansatMappers[iMapper](self.filename, gdal_dataset, metadata, kwargs) File "D:\Users\82671\Anaconda3\envs\s1denoise\lib\site-packages\nansat\mappers\mapper_cmems.py", line 38, in init gcmd_keywords_mapping = get_gcmd_keywords_mapping() File "D:\Users\82671\Anaconda3\envs\s1denoise\lib\site-packages\nansat\mappers\mapper_cmems.py", line 17, in get_gcmd_keywords_mapping 'platform': json.dumps(pti.get_gcmd_platform('models')), File "D:\Users\82671\Anaconda3\envs\s1denoise\lib\site-packages\pythesint\vocabulary.py", line 66, in find_keyword raise IndexError('%s is not found in %s!' % (item, self.name)) IndexError: models is not found in gcmd_platform!

How can I solve this problem?

akorosov commented 2 years ago

Try updating pythesint pip install --update pythesint and run python -c 'import pythesint;pythesint.update_all_vocabularies()'