Skip to content

Commit

Permalink
Changes to RRFS lwtp plot. (#246)
Browse files Browse the repository at this point in the history
* Changing AKRange subdomain for Alaska.

* Adding a new plot, which is an amalgamation of a new field (lightning) and 1h total precip.

* Some changes made for lwtp plot: removed lower precip contour levels.
  • Loading branch information
Brian-Jamison authored Sep 10, 2024
1 parent 4c7358c commit 4fb9ddf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adb_graphics/default_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1115,9 +1115,9 @@ ltng: # Lightning
unit: strikes / hr
lwtp: # Lightning with total precip
sfc:
clevs: [0.002, 0.01, 0.05, 0.1, 0.25, 0.50, 0.75, 1.0, 2.0]
clevs: [0.25, 0.50, 0.75, 1.0, 2.0]
cmap: gist_ncar
colors: pcp_colors
colors: pcp_colors_high
contours:
ltng_sfc:
colors: black
Expand Down
10 changes: 10 additions & 0 deletions adb_graphics/specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,16 @@ def pcp_colors(self) -> np.ndarray:
([25, 50, 60, 70, 80, 85, 90, 115])
return np.concatenate((grays, ncar))

@property
def pcp_colors_high(self) -> np.ndarray:

''' High values color map for Hourly Precipitation '''

grays = cm.get_cmap('Greys', 2)([0])
ncar = cm.get_cmap(self.vspec.get('cmap'), 128) \
([70, 80, 85, 90, 115])
return np.concatenate((grays, ncar))

@property
def pmsl_colors(self) -> np.ndarray:

Expand Down

0 comments on commit 4fb9ddf

Please sign in to comment.