Skip to content

Commit

Permalink
use ecmwf opendata words
Browse files Browse the repository at this point in the history
  • Loading branch information
alcoat committed Feb 29, 2024
1 parent 7a5cedd commit cc5f426
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions herbie/models/ecmwf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@
class ecmwf:
def template(self):
# TODO: This will need to be updated someday
#version = "0p4-beta"
version = '0p25'
# version = "0p4-beta"
model = "ifs"
resol = "0p25"

self.DESCRIPTION = "ECMWF open data"
self.DETAILS = {
Expand All @@ -47,7 +48,10 @@ def template(self):
else:
product_suffix = "fc"

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

# If user asks for 'oper' or 'wave', still look for data in scda and waef for the short cut-off high resolution forecast.
self.SOURCES = {
Expand Down

0 comments on commit cc5f426

Please sign in to comment.