Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
blaylockbk committed Jun 12, 2024
1 parent 859adfa commit 132935b
Show file tree
Hide file tree
Showing 11 changed files with 6,711 additions and 4,660 deletions.
3,214 changes: 2,639 additions & 575 deletions docs/gallery/ecmwf_models/ecmwf.ipynb

Large diffs are not rendered by default.

3,587 changes: 3,587 additions & 0 deletions docs/gallery/noaa_models/rtma-urma.ipynb

Large diffs are not rendered by default.

3,563 changes: 0 additions & 3,563 deletions docs/gallery/noaa_models/rtma.ipynb

This file was deleted.

543 changes: 275 additions & 268 deletions docs/gallery/usnavy_models/navgem.ipynb

Large diffs are not rendered by default.

226 changes: 93 additions & 133 deletions docs/gallery/usnavy_models/nogaps.ipynb

Large diffs are not rendered by default.

65 changes: 31 additions & 34 deletions docs/user_guide/tutorial/paint_figures.ipynb

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions herbie/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,13 @@
from .hrdps import *
from .hrrr import *
from .nam import *
from .navgem import *
from .nbm import *
from .nexrad import *
from .nogaps import *
from .rap import *
from .rdps import *
from .rrfs import *
from .rtma import *
from .usnavy import *
from .urma import *

# ======================================================================
Expand Down
56 changes: 0 additions & 56 deletions herbie/models/navgem.py

This file was deleted.

26 changes: 0 additions & 26 deletions herbie/models/nogaps.py

This file was deleted.

82 changes: 82 additions & 0 deletions herbie/models/usnavy.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
## Added by Brian Blaylock
## July 28, 2021


class navgem_godae:
"""
NAVGEM and NOGAPS on GODAE.
TODO: Needs work. Study the file naming convention and map to something more sensible.
https://usgodae.org/docs/layout/mdllayout.pns.html
- NOGAPS: 2004-2013
- NAVGEM: 2013-2024
File examples:
https://usgodae.org/ftp/outgoing/fnmoc/models/navgem_0.5/2023/2023021312/US058GMET-GR1mdl.0018_0056_00000F0RL2023021312_0105_000020-000000air_temp
https://usgodae.org/ftp/outgoing/fnmoc/models/nogaps/2004/2004010400/US058GMET-GR1mdl.0058_0240_00000F0RL2004010400_0100_000100-000000air_temp
https://usgodae.org/ftp/outgoing/fnmoc/models/nogaps/2009/2009033012/US058GMET-GR1mdl.0058_0240_00000F0RL2009033012_0105_000100-000000wnd_ucmp
"""

def template(self):
self.DESCRIPTION = "Navy Global Environment Model (NAVGEM, 2013-2024) and Navy Operational Global Atmospheric Prediction (NOGAPS, 2004-2013)."
self.DETAILS = {
"godae": "https://usgodae.org/",
"filename_description": "https://usgodae.org/docs/layout/mdllayout.pns.html",
}
self.PRODUCTS = {
"GMET": "",
"GLND": "",
"GCOM": "",
}

# Please review https://usgodae.org/docs/layout/mdllayout.pns.html
self.SOURCES = {
"navgem": f"https://usgodae.org/ftp/outgoing/fnmoc/models/navgem_0.5/{self.date:%Y/%Y%m%d%H}/US058{self.product}-GR1mdl.0018_0056_{self.fxx:03d}00F0RL{self.date:%Y%m%d%H}_{self.level}{self.variable}",
"nogaps": f"https://usgodae.org/ftp/outgoing/fnmoc/models/nogaps/{self.date:%Y/%Y%m%d%H}/US058{self.product}-GR1mdl.0058_0240_{self.fxx:03d}00F0RL{self.date:%Y%m%d%H}_{self.level}{self.variable}",
}
self.LOCALFILE = f"{self.get_remoteFileName}"


class navgem_nomads:
"""NAVGEM data from NOMADS (last two days)."""

def template(self):
self.DESCRIPTION = "Navy Global Environment Model (NAVGEM) from NOMADS."
self.DETAILS = {
"NRL description": "https://www.nrlmry.navy.mil/metoc/nogaps/navgem.html",
"NOMADS": "https://nomads.ncep.noaa.gov/pub/data/nccf/com/fnmoc/prod/",
}
self.PRODUCTS = {
"none": "",
}
self.SOURCES = {
"nomads": f"https://nomads.ncep.noaa.gov/pub/data/nccf/com/fnmoc/prod/navgem.{self.date:%Y%m%d}/navgem_{self.date:%Y%m%d%H}f{self.fxx:03d}.grib2",
}
self.LOCALFILE = f"{self.get_remoteFileName}"


class nogaps_ncei:
"""Historical NOGAPS data from NCEI."""

def template(self):
self.DESCRIPTION = (
"Navy Operational Global Atmospheric Prediction System (1997-2008; GRIB1)"
)
self.DETAILS = {
"NCEI description": "https://www.ncei.noaa.gov/products/weather-climate-models/navy-operational-global-atmospheric-prediction?msclkid=ee48a0e7cdb911eca49b9d0ed06548f8",
}
self.PRODUCTS = {
"058_240": "?",
"058_056": "?",
"008_240": "?",
"028_240": "?",
"041_240": "?",
"078_240": "?",
"110_240": "?",
}
self.SOURCES = {
"ncei": f"https://www.ncei.noaa.gov/data/navy-operational-atmostpheric-prediction-system/access/{self.date:%Y%m}/{self.date:%Y%m%d}/nogaps-{self.product}_{self.date:%Y%m%d_%H%M}_000.grb",
}
self.LOCALFILE = f"{self.get_remoteFileName}"
self.IDX_SUFFIX = [".inv"]
6 changes: 3 additions & 3 deletions herbie/paint/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -933,23 +933,23 @@ class USGS24:

class HerbieWhite:
name = "herbie.white"
colors = [red, white, blue]
colors = [blue, white, red]
make_custom_cmaps(name, colors, N=7)
cmap = plt.get_cmap(name)
cmap2 = plt.get_cmap(name + "2")


class HerbieTan:
name = "herbie.tan"
colors = [red, tan, blue]
colors = [blue, tan, red]
make_custom_cmaps(name, colors, N=7)
cmap = plt.get_cmap(name)
cmap2 = plt.get_cmap(name + "2")


class HerbieBlack:
name = "herbie.black"
colors = [red, black, blue]
colors = [blue, black, red]
make_custom_cmaps(name, colors, N=7)
cmap = plt.get_cmap(name)
cmap2 = plt.get_cmap(name + "2")

0 comments on commit 132935b

Please sign in to comment.