-
Hi METplus support: I use metplus-5.1 docker/container and tried to do plot_data_plane with a GEFSv12 data file named as gep02.t00z.pgrb2.0p25 (zip file attached; also available at https://drive.google.com/drive/folders/1iVSAWBVb5Lsezf3A3dBZcFdDwx1Pt0EW), but got the error "failed to parse level string". root@ce35e181e596:/met/metplus-5.1/tutorial/regridding# plot_data_plane gep02.t00z.pgrb2.0p25.f006 TMP.gefs.ps 'name="TMAX"; level="(0,,,*)";' -v 4 ERROR : VarInfo::set_level_info_grib() - failed to parse level string '(0,,,*)' I checked https://dtcenter.org/book/export/html/1595 and #1245, but I wasn't able to find how to find a "level" value and "name" from the GEFSv12 grib2 file. I also tried following commands but all didn't work: plot_data_plane gep02.t00z.pgrb2.0p25.f006 TMP.gefs.ps 'name="TMP_2maboveground"; level="(0,,)"; file_type=NETCDF_NCCF;' -v 4 Below are the results from wgrib2: From the above, how can I know what is "name" and "level" to be used in plot_data_plane? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi: It looks like you are having trouble with the level string in MET in grib files. The level string specified with parentheses and stars such as the example below is what is used for netCDF files.
For grib1/grib2 files, the level needs to be specified a different way. Section 5.2.11 in the documentation explains the grib1/grib2 conventions. In this case, you have to scroll down a little bit to get to the grib specific settings, so it can be tricky to find. But, it's right under the "File-format specific settings for the “field” entry:" line. I'm guessing you want to plot the variable TMAX that is record number 2 from the wgrib2 output? If so, you will want to use the ZNNN setting for a vertical level. The temperature is listed at 2m, so the level should be Z2. I think your name and level should be set to the following:
Does this work on your end? Christina |
Beta Was this translation helpful? Give feedback.
Hi:
It looks like you are having trouble with the level string in MET in grib files. The level string specified with parentheses and stars such as the example below is what is used for netCDF files.
For grib1/grib2 files, the level needs to be specified a different way. Section 5.2.11 in the documentation explains the grib1/grib2 conventions. In this case, you have to scroll down a little bit to get to the grib specific settings, so it can be tricky to find. But, it's right under the "File-format specific settings for the “field” entry:" line.
I'm guessing you want to plot the variable TMAX that is record number 2 from the wgrib2 output? If so, you will want to use the ZN…