Skip to content

Commit 05bbc41

Browse files
authored
Merge pull request #499 from sonofwatt84/patch-1
Update urma.py model template file
2 parents 8149f7d + 34cb3ee commit 05bbc41

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

src/herbie/models/urma.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,22 @@ def template(self):
2727
"anl": "Analysis",
2828
"err": "Analysis Forecast Error",
2929
"ges": "Forecasts",
30-
"pcp": "Precipitation Field",
30+
"pcp_01": "1 hr Precipitation Field",
3131
}
3232

33-
if self.product != "pcp":
33+
if self.product != "pcp_01":
3434
PATH = f"urma2p5.{self.date:%Y%m%d}/urma2p5.t{self.date:%H}z.2dvar{self.product}_ndfd.grb2_wexp"
3535
self.SOURCES = {
3636
"aws": f"https://noaa-urma-pds.s3.amazonaws.com/{PATH}",
3737
"nomads": f"https://nomads.ncep.noaa.gov/pub/data/nccf/com/urma/prod/{PATH}",
3838
}
39+
elif self.product == "pcp_01":
40+
PATH = f"urma2p5.{self.date:%Y%m%d}/urma2p5.{self.date:%Y%m%d%H}.{self.product}h.wexp.grb2"
41+
self.SOURCES = {
42+
"aws": f"https://noaa-urma-pds.s3.amazonaws.com/{PATH}",
43+
"nomads": f"https://nomads.ncep.noaa.gov/pub/data/nccf/com/urma/prod/{PATH}",
44+
}
45+
3946
else:
4047
raise NotImplementedError(
4148
"The URMA model template needs some work. Please edit open a pull request. https://github.com/blaylockbk/Herbie/blob/main/src/herbie/models/urma.py"

0 commit comments

Comments
 (0)