Skip to content

Commit

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

self.DESCRIPTION = "ECMWF open data"
self.DETAILS = {
Expand All @@ -39,15 +39,15 @@ def template(self):
}

# example file
# https://data.ecmwf.int/forecasts/20220126/00z/0p4-beta/oper/20220126000000-0h-oper-fc.grib2
# https://data.ecmwf.int/forecasts/20240229/00z/ifs/0p25/oper/20240229000000-0h-oper-fc.grib2

# product suffix
if self.product in ["enfo", "waef"]:
product_suffix = "ef"
else:
product_suffix = "fc"

post_root = f"{self.date:%Y%m%d/%Hz}/{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}/ifs/{version}/{self.product}/{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 7a5cedd

Please sign in to comment.