How to find the matched variable using misc information in the grib2 file #644
Replies: 3 comments 2 replies
-
Would it work for your development problem to match the correct line based on the index/val in the record description (as described here and exemplified in this METplus discussion)? Otherwise I'm not sure how to select based on the "aerosol_size" threshold in the record info (but would be curious to know!) |
Beta Was this translation helpful? Give feedback.
-
Maybe some options in here could help? Search "File-format specific settings for the “field” entry:". |
Beta Was this translation helpful? Give feedback.
-
Thanks to Marcel's suggestion. I found a way to differentiate two records that has a close grib2 encoding. Please read the links in Marcel's response for detail. My input fcst grib2 file is
I used the tool "degrib2" on the WCOSS2;
(b) find the template used in the grib2 file
You will find the line of "PRODUCT TEMPLATE" for GRIB MESSAGE 1 and GRIB MESSAGE 2. In my case
The first number "20" corresponds to index 0. You can find the only difference is index 5, i.e. 25 versus 100. In addition to the lines in configuration file
For MetPlus finding record 1, In Configuration file, use For MetPlus finding record 2, In Configuration file, use |
Beta Was this translation helpful? Give feedback.
-
I have a fcst output grib2 file with two record
1:4846132429:d=2023070206:MASSDEN:8 m above ground:20-21 hour ave fcst:aerosol=Missing:aerosol_size <1e-05
2:4844034447:d=2023070206:MASSDEN:8 m above ground:20-21 hour ave fcst:aerosol=Missing:aerosol_size <2.5e-06
How do I select the variable for PointStats/GridStats based on "aerosol_size <1e-05" and "aerosol_size <2.5e-06" in the config file in addition to
FCST_VAR1_NAME = MASSDEN
FCST_VAR1_LEVELS = Z8
Using
FCST_VAR1_OPTIONS = ??
Beta Was this translation helpful? Give feedback.
All reactions