blaylockbk / Herbie

Download numerical weather prediction datasets (HRRR, RAP, GFS, IFS, etc.) from NOMADS, NODD partners (Amazon, Google, Microsoft), ECMWF open data, and the University of Utah Pando Archive System.
https://herbie.readthedocs.io/
MIT License
480 stars 72 forks source link

Unable to fetch recent ECMWF data #284

Closed cole-p closed 7 months ago

cole-p commented 7 months ago

According to the ECMWF Open Data docs, the file naming convention for forecast data has changed to include a new model field. This field can be one of two options: 1) ifs (Integrated Forecast System) - open data published before this change would fall under this category 2) aifs (Artificial Intelligence/Integrated Forecasting System) - a new ML-based model

We will need to update the ECMWF class to use a different post_root for forecasts run on/after 2024-02-28T06:00 UTC.

The new post_root should look something like:

self.model = "ifs"
...
post_root = f"{self.date:%Y%m%d/%Hz}/{self.model}/{version}/{self.product}/{self.date:%Y%m%d%H%M%S}-{self.fxx}h-{self.product}-{product_suffix}.grib2"

image

I should be able to work on a fix for this next week if nobody else gets to it first.

blaylockbk commented 7 months ago

Hi @cole-p! Take a look at #283 for an active pull request and feel free to offer any comments.

blaylockbk commented 7 months ago

283

cole-p commented 7 months ago

Great, thank you!