|
|
|
|
@ -41,7 +41,10 @@ class Grib:
|
|
|
|
|
|
|
|
|
|
date_str = target_time.strftime("%Y%m%d")
|
|
|
|
|
hour_str = str((target_time.hour // 6) * 6).zfill(2)
|
|
|
|
|
target_url = f"https://nomads.ncep.noaa.gov/pub/data/nccf/com/gfs/prod/gfs.{date_str}/{hour_str}/{looking_at}/gfs.t{hour_str}z.pgrb2.0p25.f{prod_hour}"
|
|
|
|
|
target_url = (
|
|
|
|
|
GFS_BASE_URL
|
|
|
|
|
+ f".{date_str}/{hour_str}/{looking_at}/gfs.t{hour_str}z.pgrb2.0p25.f{prod_hour}"
|
|
|
|
|
)
|
|
|
|
|
return target_url
|
|
|
|
|
|
|
|
|
|
@staticmethod
|
|
|
|
|
@ -63,7 +66,10 @@ class Grib:
|
|
|
|
|
|
|
|
|
|
date_str = target_time.strftime("%Y%m%d")
|
|
|
|
|
hour_str = str((target_time.hour // 6) * 6).zfill(2)
|
|
|
|
|
target_url = f"https://nomads.ncep.noaa.gov/pub/data/nccf/com/gfs/prod/gfs.{date_str}/{hour_str}/{looking_at}/gridded/gfs{looking_at}.t{hour_str}z.global.0p25.f{prod_hour}.grib2"
|
|
|
|
|
target_url = (
|
|
|
|
|
GFS_BASE_URL
|
|
|
|
|
+ f".{date_str}/{hour_str}/{looking_at}/gridded/gfs{looking_at}.t{hour_str}z.global.0p25.f{prod_hour}.grib2"
|
|
|
|
|
)
|
|
|
|
|
return target_url
|
|
|
|
|
|
|
|
|
|
@staticmethod
|
|
|
|
|
|