Verifying instantaneous rather than max field #1151
-
Hi! I have a dataset than includes 10m MAX wind speed but does not include 10m instantaneous wind speed. wgrib2 -V -d 853 rrfs.t00z.bgdawpf006.tm00.grib2 But these fields are also available in that same file Is there a way to tell MET to ignore the max field and derive 10m wind using the 10m u/v components for the instantaneous values instead? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@jwolff-ncar thanks for moving this issue over to Discussions. As we discussed via email, the short answer is that adding the "GRIB2_pdt = 0;" option to the configuration string produces the desired result. With that option, when you request WIND (for wind speed), MET will find the U and V wind components and derive it for you on the fly. In general, when requesting wind speed (WIND) or direction (WDIR) from a GRIB file, MET first tries to find that field directly in the input file. If it's not found, MET automatically searches for the corresponding U and V wind components, rotates them from grid-to-earth relative, if necessary, and derives the requested field. Note though that this derivation logic has only been tested using GRIB1/2 files produced by NOAA/EMC. The logic depends on the U and V wind components being name "UGRD" and "VGRD" respectively. So it likely will not work well for non-GRIB and non-NOAA GRIB1/2 datasets. If needed, I'm sure we could find a more configurable general solution for this. For your sample file with hundreds of GRIB2 records, I ran wgrib2 to extract only the 3 GRIB records we're concerned about:
And here are those 3 records:
Note that the first 2 are instantaneous 6-hour forecasts while the 3rd is a 5-6 hour max. Running MET's plot_data_plane tool to plot the wind speed, as below, finds the variable named "WIND" in the 3rd record of that file:
Trying to diagnose the difference in "5-6 hour max fcst" vs "6 hour fcst" is harder than it should be. This info is in the GRIB Product Description Section, which is section number 4. Rerun wgrib2 using the "-Sec4" option:
Note that the 3rd record follows template number 4.8 instead of 4.0. In the MET documentation, search for GRIB2_pdt: Re-running plot_data_plane using "GRIB2_pdt = 0;", MET no longer finds the 3rd record (which has GRIB2_pdt = 8). Since it's not found, it derives wind speed from the U and V components in that file:
Here's the result... original on left and with "GRIB2_pdt = 0" on the right. |
Beta Was this translation helpful? Give feedback.
@jwolff-ncar thanks for moving this issue over to Discussions.
As we discussed via email, the short answer is that adding the "GRIB2_pdt = 0;" option to the configuration string produces the desired result. With that option, when you request WIND (for wind speed), MET will find the U and V wind components and derive it for you on the fly.
In general, when requesting wind speed (WIND) or direction (WDIR) from a GRIB file, MET first tries to find that field directly in the input file. If it's not found, MET automatically searches for the corresponding U and V wind components, rotates them from grid-to-earth relative, if necessary, and derives the requested field.
Note though that this deriv…