Skip to content

Labeling new fields in UPP #1284

@Jeff-Duda

Description

@Jeff-Duda

I have added a few new fields to be output from MPAS to also be written to GRIB2 files from UPP. These new fields are

  1. hourly-maximum composite reflectivity
  2. hourly-maximum precipitation rate
  3. hourly-maximum 1-minute average precipitation rate
  4. hourly-maximum 5-minute average precipitation rate
  5. hourly-maximum 10-minute average precipitation rate

Item #2 in the list above already exists in the UPP, so outputting that is not a problem. I also have modified the code to read the remaining arrays and dump them into GRIB2 output as well. Since these fields are all fully calculated in MPAS, they are just passed through UPP.

The problem arrives in labeling these arrays so that they are easily distinguished when browsing the contents of GRIB2 files. I'm mainly referring to using wgrib2 to query the contents of a file.

For example, I processed a subset of fields from an MPASSIT output file that contains the fields above as well as instantaneous composite reflectivity and precipitation rate. Here's what the wgrib2 -v output looks like:

1:0:d=2025071400:REFC Composite reflectivity [dB]:entire atmosphere (considered as a single layer):1 hour fcst:
2:644383:d=2025071400:REFC Composite reflectivity [dB]:entire atmosphere (considered as a single layer):1 hour fcst:
3:1172847:d=2025071400:MAXREF Hourly Maximum of Simulated Reflectivity [dB]:1000 m above ground:0-1 hour max fcst:
4:1496560:d=2025071400:REFC Composite reflectivity [dB]:entire atmosphere (considered as a single layer):1 hour fcst:
5:1496748:d=2025071400:PRATE Precipitation Rate [kg/m^2/s]:surface:0-1 hour max fcst:
6:1496960:d=2025071400:PRATE Precipitation Rate [kg/m^2/s]:surface:0-1 hour max fcst:
7:1607268:d=2025071400:PRATE Precipitation Rate [kg/m^2/s]:surface:0-1 hour max fcst:
8:1666332:d=2025071400:PRATE Precipitation Rate [kg/m^2/s]:surface:0-1 hour max fcst:

You'll notice that there are several arrays with identical descriptors. Therefore the only way to determine which REFC record is the time-maximum or instantaneous is to plot them, which is less than ideal. I want to know how I should define the various GRIB2 attributes so as to easily distinguish between these arrays. I have visited with @jaymes-kenyon at GSL who has suggested that perhaps new GRIB2 table variable names should be created for these arrays. For time-max composite reflectivity it seems natural to consider MXREFC (akin to MXUPHL for time-max updraft helicity), whereas for the sub-hourly averaged precipitation rates, something like PRATE1, PRATE5, etc. may work.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions