@@ -64,7 +64,7 @@ class GFS(HerbieModel):
6464 "valid" : ["pgrb2" , "pgrb2b" ],
6565 "aliases" : {"common" : "pgrb2" , "uncommon" : "pgrb2b" },
6666 "descriptions" : {
67- "pgrb2" : "Common pressure-level fields; 0.25° resolution" ,
67+ "pgrb2" : "Common pressure-level fields; 0.25° resolution" ,
6868 "pgrb2b" : "Supplemental pressure-level fields; 0.25° resolution" ,
6969 },
7070 },
@@ -73,11 +73,10 @@ class GFS(HerbieModel):
7373 "valid" : [0.25 , 0.5 , 1.0 ],
7474 "descriptions" : {
7575 0.25 : "Quarter-degree (~28 km)" ,
76- 0.5 : "Half-degree (~56 km)" ,
77- 1.0 : "One-degree (~111 km)" ,
76+ 0.5 : "Half-degree (~56 km)" ,
77+ 1.0 : "One-degree (~111 km)" ,
7878 },
7979 },
80-
8180 }
8281
8382 def _build_sources (self ) -> dict :
@@ -91,14 +90,22 @@ def _build_sources(self) -> dict:
9190 if d < datetime (2021 , 3 , 23 ):
9291 path = f"gfs.{ d :%Y%m%d/%H} /gfs.t{ d :%H} z.{ product } .{ res_str } .f{ fxx :03d} "
9392 else :
94- path = f"gfs.{ d :%Y%m%d/%H} /atmos/gfs.t{ d :%H} z.{ product } .{ res_str } .f{ fxx :03d} "
93+ path = (
94+ f"gfs.{ d :%Y%m%d/%H} /atmos/gfs.t{ d :%H} z.{ product } .{ res_str } .f{ fxx :03d} "
95+ )
9596
9697 idx = [".idx" , ".grb2.inv" ]
9798 return {
98- "aws" : GribSource (f"https://noaa-gfs-bdp-pds.s3.amazonaws.com/{ path } " , idx ),
99- "google" : GribSource (f"https://storage.googleapis.com/global-forecast-system/{ path } " , idx ),
100- "nomads" : GribSource (f"https://nomads.ncep.noaa.gov/pub/data/nccf/com/gfs/prod/{ path } " , idx ),
101- "azure" : GribSource (f"https://noaagfs.blob.core.windows.net/gfs/{ path } " , idx ),
99+ "aws" : GribSource (f"https://noaa-gfs-bdp-pds.s3.amazonaws.com/{ path } " , idx ),
100+ "google" : GribSource (
101+ f"https://storage.googleapis.com/global-forecast-system/{ path } " , idx
102+ ),
103+ "nomads" : GribSource (
104+ f"https://nomads.ncep.noaa.gov/pub/data/nccf/com/gfs/prod/{ path } " , idx
105+ ),
106+ "azure" : GribSource (
107+ f"https://noaagfs.blob.core.windows.net/gfs/{ path } " , idx
108+ ),
102109 "ncar_rda" : GribSource (
103110 f"https://data.rda.ucar.edu/d084001/{ d :%Y/%Y%m%d} "
104111 f"/gfs.0p25.{ d :%Y%m%d%H} .f{ fxx :03d} .grib2" ,
@@ -139,7 +146,6 @@ class GDAS(HerbieModel):
139146 "default" : "pgrb2.0p25" ,
140147 "valid" : ["pgrb2.0p25" , "pgrb2.1p00" ],
141148 },
142-
143149 }
144150
145151 def _build_sources (self ) -> dict :
@@ -154,10 +160,16 @@ def _build_sources(self) -> dict:
154160
155161 idx = [".idx" ]
156162 return {
157- "aws" : GribSource (f"https://noaa-gfs-bdp-pds.s3.amazonaws.com/{ path } " , idx ),
158- "google" : GribSource (f"https://storage.googleapis.com/global-forecast-system/{ path } " , idx ),
159- "nomads" : GribSource (f"https://nomads.ncep.noaa.gov/pub/data/nccf/com/gfs/prod/{ path } " , idx ),
160- "azure" : GribSource (f"https://noaagfs.blob.core.windows.net/gfs/{ path } " , idx ),
163+ "aws" : GribSource (f"https://noaa-gfs-bdp-pds.s3.amazonaws.com/{ path } " , idx ),
164+ "google" : GribSource (
165+ f"https://storage.googleapis.com/global-forecast-system/{ path } " , idx
166+ ),
167+ "nomads" : GribSource (
168+ f"https://nomads.ncep.noaa.gov/pub/data/nccf/com/gfs/prod/{ path } " , idx
169+ ),
170+ "azure" : GribSource (
171+ f"https://noaagfs.blob.core.windows.net/gfs/{ path } " , idx
172+ ),
161173 }
162174
163175
@@ -189,11 +201,15 @@ class GFSWave(HerbieModel):
189201 "product" : {
190202 "default" : "global.0p25" ,
191203 "valid" : [
192- "arctic.9km" , "atlocn.0p16" , "epacif.0p16" ,
193- "global.0p16" , "global.0p25" , "gsouth.0p25" , "wcoast.0p16" ,
204+ "arctic.9km" ,
205+ "atlocn.0p16" ,
206+ "epacif.0p16" ,
207+ "global.0p16" ,
208+ "global.0p25" ,
209+ "gsouth.0p25" ,
210+ "wcoast.0p16" ,
194211 ],
195212 },
196-
197213 }
198214
199215 def _build_sources (self ) -> dict :
@@ -207,7 +223,11 @@ def _build_sources(self) -> dict:
207223 )
208224 idx = [".idx" ]
209225 return {
210- "aws" : GribSource (f"https://noaa-gfs-bdp-pds.s3.amazonaws.com/{ path } " , idx ),
211- "nomads" : GribSource (f"https://nomads.ncep.noaa.gov/pub/data/nccf/com/gfs/prod/{ path } " , idx ),
212- "google" : GribSource (f"https://storage.googleapis.com/global-forecast-system/{ path } " , idx ),
226+ "aws" : GribSource (f"https://noaa-gfs-bdp-pds.s3.amazonaws.com/{ path } " , idx ),
227+ "nomads" : GribSource (
228+ f"https://nomads.ncep.noaa.gov/pub/data/nccf/com/gfs/prod/{ path } " , idx
229+ ),
230+ "google" : GribSource (
231+ f"https://storage.googleapis.com/global-forecast-system/{ path } " , idx
232+ ),
213233 }
0 commit comments