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

Change of file paths - Client.Retrive does not work anymore #43

Open
CalipsoAdara opened this issue Apr 26, 2024 · 2 comments
Open

Change of file paths - Client.Retrive does not work anymore #43

CalipsoAdara opened this issue Apr 26, 2024 · 2 comments

Comments

@CalipsoAdara
Copy link

Hello, it appears that ECMWF recently changed the file paths by adding new folders, so the "client.retrieve" function is not able to find the correct files.

Previous path (example)
https://data.ecmwf.int/forecasts/20240425/00z/0p4-beta/enfo/20240425000000-174h-enfo-ef.index

New path: (with new IFS folder)
https://data.ecmwf.int/forecasts/20240425/00z/ifs/0p4-beta/enfo/20240425000000-174h-enfo-ef.index

This change was made around the 23 of April, 2024.

@malmistry
Copy link

malmistry commented Jul 12, 2024

Any update on this? I am also not able to re-run my earlier script that was working fine.

from ecmwf.opendata import Client

client = Client(source="ecmwf")

print(client.latest(
type="fc",
step=24,
param=["2t", "msl"],
target="data.grib2",
))

gives an error

ValueError: Cannot establish latest date for {'date': ['2024-07-11 18:00:00'], 'resol': ['0p4-beta'], 'stream': ['oper'], 'type': ['fc'], 'step': ['24'], '_url': ['https://data.ecmwf.int/forecasts']}

@malmistry
Copy link

malmistry commented Jul 15, 2024

The above error is resolved by updating the ecmwf-opendata package to the latest version. I had to uninstall and install using pip. The file paths are automatically handled correctly by source = 'ecmwf'

client = Client(source="ecmwf")

print(client.latest(
type="fc",
step=24,
param=["2t", "msl"],
target="data.grib2",
))

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