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

Exception: Resource cams-global-reanalysis-eac4 not found #43

Closed
Rich2020 opened this issue Jul 10, 2021 · 2 comments
Closed

Exception: Resource cams-global-reanalysis-eac4 not found #43

Rich2020 opened this issue Jul 10, 2021 · 2 comments

Comments

@Rich2020
Copy link

Rich2020 commented Jul 10, 2021

Trying to retrieve data via API results in an exception (see title).
The code used was generated by the CAMS UI located here: https://ads.atmosphere.copernicus.eu/cdsapp#!/dataset/cams-global-reanalysis-eac4?tab=form

Code generated:

import cdsapi

c = cdsapi.Client()

c.retrieve(
    'cams-global-reanalysis-eac4',
    {
        'variable': 'temperature',
        'pressure_level': '1',
        'model_level': '1',
        'date': '2003-01-01/2020-12-31',
        'time': [
            '00:00', '03:00', '06:00',
            '09:00', '12:00', '15:00',
            '18:00', '21:00',
        ],
        'format': 'grib',
    },
    'download.grib')

All terms/conditions accepted and .cdsapirc set according to instructions laid out here (for Mac): https://ads.atmosphere.copernicus.eu/api-how-to

UPDATE: that error is very misleading. The issue was that I need to use the ADS URL and key (rather than the CDS version), as provided here: https://ads.atmosphere.copernicus.eu/api-how-to
It's also very confusing that the instructions on that ADS page explicitly refer to CDS...

@alexbnlee
Copy link

Thanks so much. It solves my issues, too.

@yuzhangtu
Copy link

Thanks! This informataion is very helpful.
The ADS url and key are needed in .cdsapirc file to access the cams-global-reanalysis data.
I also have a test on downloading the ERA5 file. Then it is necessary to update the URL and key to ADS.

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

3 participants