Skip to content

Commit

Permalink
Merge branch 'main' into rrfs_lightning_with_precip
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian-Jamison committed Aug 6, 2024
2 parents c22b2ba + 980ba75 commit b0a2ec6
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 6 deletions.
19 changes: 13 additions & 6 deletions adb_graphics/default_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -800,10 +800,11 @@ gh: # Geopotential height
ua:
<<: *ua_gh
ghtfl: # Ground Heat Flux
sfc: &heat_flux
clevs: !!python/object/apply:numpy.arange [-100, 401, 25]
cmap: Carbone42
colors: heat_flux_colors
sfc:
cmap: magma_r
clevs: [-200, -150, -100, -50, -25, 0, 25, 50, 100, 150, 200, 300]
cmap: PuOr
colors: heat_flux_colors_g
ncl_name: GFLUX_P0_L1_{grid}
ticks: 0
title: Ground Heat Flux
Expand Down Expand Up @@ -1060,7 +1061,10 @@ lcl: # Lifted condensation level
unit: m
lhtfl: # Latent Heat Net Flux
sfc:
<<: *heat_flux
cmap: magma_r
clevs: [-100, -50, -25, -10, 0, 10, 25, 50, 100, 150, 200, 250, 300, 400, 500, 750]
cmap: BrBG
colors: heat_flux_colors_l
ncl_name: LHTFL_P0_L1_{grid}
ticks: 0
title: Latent Heat Net Flux
Expand Down Expand Up @@ -1459,7 +1463,10 @@ shear:
level: 06km
shtfl: # Sensible Heat Net Flux
sfc:
<<: *heat_flux
cmap: magma_r
clevs: [-100, -50, -25, -10, 0, 10, 25, 50, 100, 150, 200, 250, 300, 400, 500, 750]
cmap: RdYlBu_r
colors: heat_flux_colors_s
ncl_name: SHTFL_P0_L1_{grid}
ticks: 0
title: Sensible Heat Net Flux
Expand Down
27 changes: 27 additions & 0 deletions adb_graphics/specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,33 @@ def heat_flux_colors(self) -> np.ndarray:
(range(0, 33, 2))
return np.concatenate((grays, ctable))

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

''' Default color map for Latent/Sensible Heat Flux '''

colors = cm.get_cmap(self.vspec.get('cmap'), 128) \
(range(15, 112, 8))
return colors

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

''' Default color map for Latent/Sensible Heat Flux '''

colors = cm.get_cmap(self.vspec.get('cmap'), 128) \
(range(32, 129, 6))
return colors

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

''' Default color map for Latent/Sensible Heat Flux '''

colors = cm.get_cmap(self.vspec.get('cmap'), 128) \
(range(32, 129, 6))
return colors

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

Expand Down

0 comments on commit b0a2ec6

Please sign in to comment.