From 433cc87398689d405cb0cd87067b73e250614332 Mon Sep 17 00:00:00 2001 From: Craig Hartsough Date: Fri, 22 Mar 2024 21:49:16 +0000 Subject: [PATCH 1/2] add run-max reflectivity and run-min pressure swath option for hurricanes. --- adb_graphics/default_specs.yml | 33 +++++++++++++++++++++++++++++++++ adb_graphics/figures/maps.py | 2 +- 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/adb_graphics/default_specs.yml b/adb_graphics/default_specs.yml index 30e5366..82820d5 100644 --- a/adb_graphics/default_specs.yml +++ b/adb_graphics/default_specs.yml @@ -587,6 +587,17 @@ cref: # Composite reflectivity ncl_name: REFC_P0_L{level_type}_{grid} title: Composite Reflectivity include_obs: True +crefmax: # Comp reflectivity (max over forecast) + sfc: + accumulate: True + clevs: !!python/object/apply:numpy.arange [5, 76, 5] + cmap: NWSReflectivity + colors: cref_colors + ncl_name: REFC_P0_L200_{grid} + ticks: 5 + title: Comp Reflectivity (max over forecast) + transform: run_max + unit: dBZ csnow: # Categorical Snow sfc: ncl_name: CSNOW_P0_L1_{grid} @@ -1166,6 +1177,28 @@ pres: wind: 10m ua: ncl_name: PRES_P0_L105_{grid} +presmin: + msl: + accumulate: True + annotate: True + clevs: !!python/object/apply:numpy.arange [860, 1001, 10] + cmap: NWSReflectivity + colors: cref_colors + ncl_name: + global: PRMSL_P0_L101_{grid} + globalAK: PRMSL_P0_L101_{grid} + globalCONUS: PRMSL_P0_L101_{grid} + globalNHemi: PRMSL_P0_L101_{grid} + globalSHemi: PRMSL_P0_L101_{grid} + hrrr: MSLMA_P0_L101_{grid} + hrrrhi: MSLMA_P0_L101_{grid} + hrrrcar: MSLMA_P0_L101_{grid} + rap: MSLMA_P0_L101_{grid} + rrfs: MSLET_P0_L101_{grid} + ticks: 0 + transform: [conversions.pa_to_hpa, run_min] + unit: hPa +# wind: 10m ptmp: # Potential temperature 2m: clevs: !!python/object/apply:numpy.arange [210, 350, 5] diff --git a/adb_graphics/figures/maps.py b/adb_graphics/figures/maps.py index 5f579a4..c50889d 100644 --- a/adb_graphics/figures/maps.py +++ b/adb_graphics/figures/maps.py @@ -59,6 +59,7 @@ 'GreatLakes': {'corners': [37, 50, -96, -70], 'stride': 10, 'length': 4}, 'HI': {'corners': [16.6, 24.6, -157.6, -157.5], 'stride': 1, 'length': 4}, 'HI-zoom': {'corners': None, 'width': 800000, 'height': 800000, 'stride': 4, 'length': 4}, + 'Hurr-Carr': {'corners': [21, 28, -96, -69], 'stride': 10, 'length': 4}, 'Juneau': {'corners': [55.741, 59.629, -140.247, -129.274], 'stride': 4, 'length': 4}, 'NW-large': {'corners': [29.5787, 52.6127, -121.666, -96.5617], 'stride': 15, 'length': 4}, 'NYC-BOS': {'corners': [39, 43.5, -77, -66.5], 'stride': 4, 'length': 4}, @@ -256,7 +257,6 @@ def load_airports(fn): data = f.readlines() return np.array([l.strip().split(',') for l in data], dtype=float) - class DataMap(): #pylint: disable=too-many-arguments From 629ef57005431fea267d1345de64289d3d27e9ba Mon Sep 17 00:00:00 2001 From: Craig Hartsough Date: Fri, 22 Mar 2024 21:58:54 +0000 Subject: [PATCH 2/2] change to maps subregion name, Hurr-Car. --- adb_graphics/figures/maps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adb_graphics/figures/maps.py b/adb_graphics/figures/maps.py index c50889d..3e29014 100644 --- a/adb_graphics/figures/maps.py +++ b/adb_graphics/figures/maps.py @@ -59,7 +59,7 @@ 'GreatLakes': {'corners': [37, 50, -96, -70], 'stride': 10, 'length': 4}, 'HI': {'corners': [16.6, 24.6, -157.6, -157.5], 'stride': 1, 'length': 4}, 'HI-zoom': {'corners': None, 'width': 800000, 'height': 800000, 'stride': 4, 'length': 4}, - 'Hurr-Carr': {'corners': [21, 28, -96, -69], 'stride': 10, 'length': 4}, + 'Hurr-Car': {'corners': [21, 28, -96, -69], 'stride': 10, 'length': 4}, 'Juneau': {'corners': [55.741, 59.629, -140.247, -129.274], 'stride': 4, 'length': 4}, 'NW-large': {'corners': [29.5787, 52.6127, -121.666, -96.5617], 'stride': 15, 'length': 4}, 'NYC-BOS': {'corners': [39, 43.5, -77, -66.5], 'stride': 4, 'length': 4},