Skip to content

Commit

Permalink
Merge pull request blaylockbk#342 from alcoat/main
Browse files Browse the repository at this point in the history
Add gdas_wave model
  • Loading branch information
blaylockbk authored Jul 22, 2024
2 parents ec6b28e + 372b7b5 commit 2c18932
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions herbie/models/gfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ def template(self):
self.IDX_SUFFIX = [".idx"]
self.LOCALFILE = f"{self.get_remoteFileName}"


class gfs_wave:
def template(self):
self.DESCRIPTION = "Global Forecast System - Wave Products"
Expand All @@ -89,9 +88,33 @@ def template(self):
}
self.SOURCES = {
"aws": f"https://noaa-gfs-bdp-pds.s3.amazonaws.com/gfs.{self.date:%Y%m%d/%H}/wave/gridded/gfswave.t{self.date:%H}z.{self.product}.f{self.fxx:03d}.grib2",
"ftpprd": f"https://ftpprd.ncep.noaa.gov/data/nccf/com/gfs/prod/gfs.{self.date:%Y%m%d/%H}/wave/gridder/gfswave.t{self.date:%H}z.{self.product}.f{self.fxx:03d}.grib2",
"ftpprd": f"https://ftpprd.ncep.noaa.gov/data/nccf/com/gfs/prod/gfs.{self.date:%Y%m%d/%H}/wave/gridded/gfswave.t{self.date:%H}z.{self.product}.f{self.fxx:03d}.grib2",
"nomads": f"https://nomads.ncep.noaa.gov/pub/data/nccf/com/gfs/prod/gfs.{self.date:%Y%m%d/%H}/wave/gridded/gfswave.t{self.date:%H}z.{self.product}.f{self.fxx:03d}.grib2",
"google": f"https://storage.googleapis.com/global-forecast-system/gfs.{self.date:%Y%m%d/%H}/wave/gridded/gfswave.t{self.date:%H}z.{self.product}.f{self.fxx:03d}.grib2",
"azure": f"https://noaahrrr.blob.core.windows.net/gfs/gfs.{self.date:%Y%m%d/%H}/wave/gridded/gfswave.t{self.date:%H}z.{self.product}.f{self.fxx:03d}.grib2",
}
self.LOCALFILE = f"{self.get_remoteFileName}"

class gdas_wave:
def template(self):
self.DESCRIPTION = "Global Data Assimilation System - Wave Products"
self.DETAILS = {
"nomads product description": "https://www.nco.ncep.noaa.gov/pmb/products/gfs/#GFSwave",
}
self.PRODUCTS = {
"arctic.9km": "Arctic; 9-km resolution",
"atlocn.0p16": "North Atlantic 0.16 deg resolution",
"epacif.0p16": "Eastern Pacific; .16 deg resolution",
"global.0p16": "Global; 0.16 deg resolution",
"global.0p25": "Global; 0.25 deg resolution",
"gsouth.0p25": "Global South; 0.25 deg resolution",
"wcoast.0p16": "West Coast; 0.16 deg resolution",
}
self.SOURCES = {
"aws": f"https://noaa-gfs-bdp-pds.s3.amazonaws.com/gdas.{self.date:%Y%m%d/%H}/wave/gridded/gdaswave.t{self.date:%H}z.{self.product}.f{self.fxx:03d}.grib2",
"ftpprd": f"https://ftpprd.ncep.noaa.gov/data/nccf/com/gfs/prod/gdas.{self.date:%Y%m%d/%H}/wave/gridded/gdaswave.t{self.date:%H}z.{self.product}.f{self.fxx:03d}.grib2",
"nomads": f"https://nomads.ncep.noaa.gov/pub/data/nccf/com/gfs/prod/gdas.{self.date:%Y%m%d/%H}/wave/gridded/gdaswave.t{self.date:%H}z.{self.product}.f{self.fxx:03d}.grib2",
"google": f"https://storage.googleapis.com/global-forecast-system/gdas.{self.date:%Y%m%d/%H}/wave/gridded/gdaswave.t{self.date:%H}z.{self.product}.f{self.fxx:03d}.grib2",
"azure": f"https://noaahrrr.blob.core.windows.net/gfs/gdas.{self.date:%Y%m%d/%H}/wave/gridded/gdaswave.t{self.date:%H}z.{self.product}.f{self.fxx:03d}.grib2",
}
self.LOCALFILE = f"{self.get_remoteFileName}"

0 comments on commit 2c18932

Please sign in to comment.