Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to RRFS lwtp plot. #246

Merged
merged 5 commits into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading