Specifying oddly named GRIB2 field for MET tools #3261
Replies: 1 comment
-
|
@Jeff-Duda thanks for sharing your experiences using the data masking option in Gen-Vx-Mask! I read through your steps and am glad you landed on your desired result... defining a In this call to Gen-Vx-Mask: By default, Gen-Vx-Mask will name the output variable as But I'd recommend using the That way, when you use this to define a masking region in other MET tools (like Grid-Stat, Point-Stat, and Ensemble-Stat), the And after this call to Gen-Vx-Mask, you have an RQI mask defined on the 7000 x 3500 MRMS grid.
Honestly though, I didn't find this detail clearly described in the MET User's Guide.
And that'll produce the RQI mask on your desired HRRR domain. Hope that helps! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am attempting to generate a verification mask using gen_vx_mask. My chosen method of masking is to use values from a GRIB2 data file. The data file is from MRMS. In fact, it is an MRMS file containing the MRMS product called RadarQualityIndex, a scalar ranging from 0.0 to 1.0. My goal is to create a mask on the HRRR grid using thresholded values of this "RQI".
I tried doing all of this in a single command using:
[Jeffrey.Duda@ufe01 PMP]$ gen_vx_mask "lambert 1799 1059 21.138123 -122.719528 -97.5 3.0 6371.2 38.5 N" /scratch4/BMC/zrtrr/jdduda/MRMS/2025/MRMS_RQI_to_use_2025.grib2 HRRRv4_RQI_mask.nc -type data -mask_field 'name="RadarQualityIndex"; level="Z0";' -thresh ">=0.7"But it gave me the error below.
Oh, okay. This grid error message implies I'm going to have to do this in two steps instead of one. So let me create the first mask on the MRMS grid, as follows;
[Jeffrey.Duda@ufe01 PMP]$ gen_vx_mask "latlon 7000 3500 20.005 -129.995 0.01 0.01" /scratch4/BMC/zrtrr/jdduda/MRMS/2025/MRMS_RQI_to_use_2025.grib2 MRMS_RQI_mask.nc -type data -mask_field 'name="RadarQualityIndex"; level="Z0";' -thresh ">=0.7"No problem! The data looks plenty good (see image)

Now for applying that data to the HRRR grid to create the final mask. I'm not exactly sure how to do this, but all of the below attempts have failed to get the result I want:

[Jeffrey.Duda@ufe01 PMP]$ gen_vx_mask "lambert 1799 1059 21.138123 -122.719528 -97.5 3.0 6371.2 38.5 N" MRMS_RQI_mask.nc HRRRv4_RQI_mask.nc -type gridThis actually completed successfully but gave me an undesired result:
This is just the portion of the HRRR grid that is within the MRMS domain No, I want the RQI mask above interpolated to HRRR grid points.
This doesn't work; it just gives me the mismatched grid error again:
[Jeffrey.Duda@ufe01 PMP]$ gen_vx_mask gen_vx_mask "lambert 1799 1059 21.138123 -122.719528 -97.5 3.0 6371.2 38.5 N" MRMS_RQI_mask.nc HRRRv4_RQI_mask.nc -type data -mask_field 'name="data_mask"; level="(*,*)";' -thresh "eq1.0"It seems like from the examples in the documentation on gen_vx_mask that I may have to spatially interpolate the MRMS radar quality index file to the HRRR grid before doing step 1. Is that correct? If so, it seems strange that you can create a grid file based on an input grid and a polygon mask (ASCII) but not on a different grid (MRMS -> HRRR). Am I missing the point of gen_vx_mask?
For SnGs, I went ahead with regridding the MRMS file first and tried to create the mask I wanted, with success:
wgrib2 MRMS_RQI_to_use_2025.grib2 -new_grid_interpolation neighbor -new_grid lambert:262.5:38.5:38.5:38.5 237.280472:1799:3000.0 21.138123:1059:3000.0 MRMS_RQI_2025_on_HRRR.grib2gen_vx_mask "lambert 1799 1059 21.138123 -122.719528 -97.5 3.0 6371.2 38.5 N" MRMS_RQI_2025_on_HRRR.grib2 HRRRv4_RQI_mask_ge0p5.nc -type data -mask_field 'name="RadarQualityIndex"; level="Z0";' -thresh ">=0.5"Beta Was this translation helpful? Give feedback.
All reactions