-
Notifications
You must be signed in to change notification settings - Fork 11
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
unable to download ERA5 data using dfmt.download_ERA5 #971
Comments
Yes, indeed the dummy dataset is called here: dfm_tools/dfm_tools/download.py Lines 125 to 129 in f6069de
I have implemented an exception there, but apparently the cdsapi has been changed so this is not catched anymore. Thanks for reporting this. As a temporary workaround, please do Todo:
|
commenting out the c.retrieve(dummy) seems to have "fixed" it. I did have to accept license terms to get it to work which seemed to involve making an random request on the ERA5 web data form thingy here: https://cds-beta.climate.copernicus.eu/datasets/reanalysis-era5-single-levels?tab=download This allows you to accept the licence and make API requests. |
Yes, I know, it is very inconvenient. It has been reported here, so feel free to comment this there: ecmwf/cdsapi#108. I also don't really know why they decided to move from a CDS account to a ECMWF account, but I have tried to accomodate dfm_tools as well as possible for it. FYI, the call to the dummy dataset is to check (and catch) whether the credenitals in your |
Yes I am having to add all this to my documentation/notes as its kinda confusing! I hope it becomes clearer out of beta. |
There is however a message when you supply your apikey to dfm_tools, which points to a useful article: dfm_tools/dfm_tools/download.py Lines 112 to 115 in 4ae7642
So to https://forum.ecmwf.int/t/3743. Maybe you already found this, but if not it might be helpful to not have to document everything yourself. |
As you might have seen the issue was fixed in the main branch. There is one fix pending (#962) before I will make a release, I will do this next week. |
Hello,
The API interface for the ERA5 datasets seems to have changed, it uses a cds-beta in its url and the existing auth token no longer works (despite still being in the online account). I had to do a weird dance with ECMWF and CMEMS ending up with a new auth token which seems to pass authentication but I now get an "dataset dummy not found" error.
I think the code at
File "/home/thopri/miniforge3/envs/mod_build/lib/python3.11/site-packages/dfm_tools/download.py", line 129, in cds_credentials
is calling a dummy dataset or call to check the auth and this is no longer valid. I will try commenting it out to see if the actual calls are still correct and update here.The text was updated successfully, but these errors were encountered: