Skip to content

Commit 3dfb60d

Browse files
committed
use IFS_50R1_DATE
replace product names
1 parent dc7c74a commit 3dfb60d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/herbie/models/ecmwf.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ def template(self):
4545
# example file
4646
# https://data.ecmwf.int/forecasts/20240229/00z/ifs/0p25/oper/20240229000000-0h-oper-fc.grib2
4747

48+
# IFS_50R1_DATE
49+
if self.date >= datetime(2026, 5, 12, tzinfo=self.date.tzinfo):
50+
if self.product == "scda":
51+
self.product = "oper"
52+
if self.product == "scwv":
53+
self.product = "wave"
54+
4855
# product suffix
4956
if self.product in ["enfo", "waef"]:
5057
product_suffix = "ef"

0 commit comments

Comments
 (0)