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

An error was encountered after the API update #12

Open
hato-hhu opened this issue Sep 19, 2024 · 0 comments
Open

An error was encountered after the API update #12

hato-hhu opened this issue Sep 19, 2024 · 0 comments

Comments

@hato-hhu
Copy link

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.

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

1 participant