CLIMADA-project / climada_python

Python (3.8+) version of CLIMADA
GNU General Public License v3.0
307 stars 120 forks source link

TCForecast.fetch_ecmwf() could not process the latest forecast. #231

Open manniepmkam opened 3 years ago

manniepmkam commented 3 years ago

I'm working with the method TCForecast.fetch_ecmwf() and currently it is not able to process the latest downloaded forecast. It gives error as shown in below.

I also tried fetching the forecast a few days back then and it works fine for forecast at May 10 00 UTC.

`Download: 100%|██████████| 53/53 [00:16<00:00, 3.22 files/s] Processing: 0%| | 0/53 [00:00<?, ?files/s]Fallback to default master table version 33 (35 not found) Processing: 0%| | 0/53 [00:00<?, ?files/s] Traceback (most recent call last):

File "", line 13, in fcast_all.fetch_ecmwf()

File "/Users/manniekam/Documents/git_repositories/climada/climada_python/climada/hazard/tc_tracks_forecast.py", line 115, in fetch_ecmwf self.read_one_bufr_tc(file, id_no=i)

File "/Users/manniekam/Documents/git_repositories/climada/climada_python/climada/hazard/tc_tracks_forecast.py", line 195, in read_one_bufr_tc bufr = decoder.process(file.read())

File "/opt/anaconda3/envs/climada_env/lib/python3.8/site-packages/pybufrkit/decoder.py", line 98, in process nbits_decoded += self.process_section(bufr_message, bit_reader, section)

File "/opt/anaconda3/envs/climada_env/lib/python3.8/site-packages/pybufrkit/decoder.py", line 125, in process_section parameter.value = self.process_template_data(bufr_message, bit_reader)

File "/opt/anaconda3/envs/climada_env/lib/python3.8/site-packages/pybufrkit/decoder.py", line 207, in process_template_data template_processing_func(state, bit_reader, template_to_process)

File "/opt/anaconda3/envs/climada_env/lib/python3.8/site-packages/pybufrkit/coder.py", line 288, in process_template self.process_members(state, bit_operator, template.members)

File "/opt/anaconda3/envs/climada_env/lib/python3.8/site-packages/pybufrkit/coder.py", line 350, in process_members raise UnknownDescriptor('Cannot process descriptor {} of type: {}'.format(

UnknownDescriptor: Error: Cannot process descriptor 316082 of type: UndefinedSequenceDescriptor`

manniepmkam commented 3 years ago

The issue is solve by pull request #249.

chahank commented 3 years ago

Please do not close the issue before the merge happened since it is not yet resolved.