I have cdsapi==0.7.3 installed and I have put my API key credentials in $HOME/.cdsapi. I get the following error code when trying to run the above:
HTTPError: 404 Client Error: Not Found for url: https://cds.climate.copernicus.eu/api/retrieve/v1/jobs/d3116eef-2144-4be6-be11-5f77a46f4733?log=True&request=True
job not found
job d3116eef-2144-4be6-be11-5f77a46f4733 not found
Despite this error, when I go to the web interface here: Atmosphere Data Store, I see the request and it downloads successfully. However, I wish to be able to download and treat the data through the API.
I hope you clever guys can figure this out! Thank you
The CDS and ADS endpoints are different, this causes the error. Sadly and confusingly so, they are set by the same file. Meaning you have to switch between them using session variables. A solution is provided here. Note that this exposes your key. I think you can just set the url, but you should cross reference the source code or ask the devs.
Reading along the source code of the python package here:
You see that you can set the url and key separate.
Keep you key in your .cdsapirc file only change the url using:
Aha, this is very clear, thank you! And I see that this approach (as specified in the other post) also does not disclose my key. It solved my problem, very smart