diff --git a/adb_graphics/default_specs.yml b/adb_graphics/default_specs.yml index e352fc5..6ebdc77 100644 --- a/adb_graphics/default_specs.yml +++ b/adb_graphics/default_specs.yml @@ -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 @@ -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 @@ -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 diff --git a/adb_graphics/specs.py b/adb_graphics/specs.py index e0386a1..f0abd3b 100644 --- a/adb_graphics/specs.py +++ b/adb_graphics/specs.py @@ -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: