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

problem when downloading era5 data. #7

Closed
Akhilauppala2056 opened this issue Feb 21, 2020 · 8 comments
Closed

problem when downloading era5 data. #7

Akhilauppala2056 opened this issue Feb 21, 2020 · 8 comments

Comments

@Akhilauppala2056
Copy link

MissingSchema: Invalid URL '{api-url}/resources/reanalysis-era5-pressure-levels': No schema supplied. Perhaps you meant http://{api-url}/resources/reanalysis-era5-pressure-levels?
This is the error i am getting

@amcz
Copy link
Owner

amcz commented Feb 21, 2020

Could you provide the command that you are using to get this error?

@Akhilauppala2056
Copy link
Author

Akhilauppala2056 commented Feb 21, 2020 via email

@amcz
Copy link
Owner

amcz commented Feb 21, 2020

The following is what I get when I run the script. Do you get any of this?
Check that your .cdsapirc file in $HOME is correct possibly.
It looks like it is not reading the URL correctly.
The first line should be the following.
url: https://cds.climate.copernicus.eu/api/v2

RETRIEVING month 01 day 1
Retrieve for: 2017-01-01 00:00/01:00/02:00/03:00/04:00/05:00/06:00/07:00/08:00/09:00/10:00/11:00/12:00/13:00/14:00/15:00/16:00/17:00/18:00/19:00/20:00/21:00/22:00/23:00
RETRIEVING 3d plTEMP UWND VWND WWND RELH HGTS
Retrieve levels ['1000', '975', '950', '925', '900', '875', '850', '825', '800', '775', '750', '700', '650', '600', '550', '500', '450', '400', '350', '300', '250', '225', '200', '175', '150', '125', '100', '70', '50', '30', '20', '10', '7', '5', '3', '2', '1']
2020-02-21 13:02:24,701 INFO Sending request to https://cds.climate.copernicus.eu/api/v2/resources/reanalysis-era5-pressure-levels
2020-02-21 13:02:25,103 INFO Request is completed
2020-02-21 13:02:25,103 INFO Downloading http://136.156.132.105/cache-compute-0000/cache/data5/adaptor.mars.internal-1582307784.506145-20220-39-87d0d2f8-890b-48f9-90a1-9fed78ebab9e.grib to ./ERA5_2017.Jan01.3dpl.grib (51.2M)

@amcz
Copy link
Owner

amcz commented Feb 21, 2020

You can also run python interactively and try

import cdsapi
server = cdsapi.Client()

and then try some retrieve

@amcz amcz closed this as completed Feb 21, 2020
@Akhilauppala2056
Copy link
Author

Akhilauppala2056 commented Feb 22, 2020 via email

@amcz
Copy link
Owner

amcz commented Feb 23, 2020

I suggest you try to run some of the simple examples from the cdsapi page first.
https://cds.climate.copernicus.eu/api-how-to

scroll to the end and try the example they give there.

@Akhilauppala2056
Copy link
Author

Akhilauppala2056 commented Feb 24, 2020 via email

@Akhilauppala2056
Copy link
Author

Akhilauppala2056 commented Feb 24, 2020 via email

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

2 participants