Skip to content

An error was encountered after the API update #12

@hato-hhu

Description

@hato-hhu

Hello @trondkr sorry for the bother.

New API is designed to be backward compatible which means that once your .cdsapirc is updated and your CDS API package upgraded, your API script may run successfully immediately, downloading data from CDS-Beta.
But after I download good data, when I use ECMWF_convert_to_ROMS.py, I have a problem.

and I am getting the following:

024-09-19 16:14:46,433 INFO status has been updated to successful | 13.0M/121M [00:02<00:10, 10.9MB/s]
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/THL8/home/watermelon/anaconda3/envs/py38/lib/python3.8/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/THL8/home/watermelon/anaconda3/envs/py38/lib/python3.8/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "ECMWF_tools.py", line 173, in submit_request
converter.convert_to_ROMS_units_standards(
File "/THL8/home/watermelon/ERA5ROMS/2024ERA5toROMS/ERA5-ROMS-master/ECMWF_convert_to_ROMS.py", line 36, in convert_to_ROMS_units_standards
dimid = dset.variables[metadata['short_name']].dimensions.index("expver")
ValueError: tuple.index(x): x not in tuple
"""

The same code was working very well before the update.
Any help and suggestion you could provide?

Thank you very much in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions