[Met_help] AFWA grib codes in METv2
John Halley Gotway
johnhg at rap.ucar.edu
Fri Mar 19 09:10:47 MDT 2010
Mike,
Thanks for sending along the details. I actually won't be able to take a
look at this until next week. I've been out of the office all week while
my son recovers from a burst appendix. But it's looking like I should be
back on Monday.
Here's some details on where you'd make code changes:
For GRIB parameter table versions, you make changes to:
METv2.0/lib/vx_grib_classes/grib_strings.h and .cc
For the time range indicators, look at the read_pds function in:
METv2.0/lib/vx_met_util/read_grib.cc
If you do make changes to get MET working they way you need, please pass
the changes back to us. We'll take a look and consider them for inclusion
in the next release.
Also, I do want to mention that you can tell MET to use particular record
numbers. For example, "TMP/R123" tells MET to use the temperature
information in GRIB record number 123.
Thanks,
John
> Thanks John.
>
> In the end, it'd be nice if MET could just take a GRIB record number,
> e.g.,
> and be forced to work with it with some config options or command line
> flags
> (to tell MET what the TR's mean, what the grib code and variable are,
> units
> maybe, etc for example).
>
> Attached are the grib codes we use. A few of us are especially interested
> in the subcenter 2 ones most immediately (for "specialized models"). I
> think Bob Craig here has also talked with you about the unusual TR=7 and
> TR=1 (average of timestep of file from timestep of file minus P1 to
> timestep
> of file plus P2 of grib file is TR=7, TR=1 is the timestep's instantaneous
> value). Not sure how this can be handled from within MET, but needs to be
> as it stumbles on that for any variable with TR=7. As if that's not
> hassle
> enough, there are also some TR=132 and TR=133 etc TR's that MET seems to
> have trouble with.
>
> If this'll take much more than part of today for you (which I'd assume it
> might), can you also point me to where in the code I might look to make
> some
> changes to do myself for the time being?
>
> Thanks!
>
> -Mike
>
> ______________________________________________
> Michael Shaw, Contractor
> SAIC/NASA Support Scientist
> michael.shaw.ctr at offutt.af.mil
> 16WS Environmental Characterization
> HQ AFWA-SAIC
> 101 Nelson Drive
> Offutt AFB, NE 68113-1023
> 402-232-7690 Comm * 402-272-7690 DSN * 402-294-8230 Fax
>
>
> -----Original Message-----
> From: John Halley Gotway [mailto:johnhg at rap.ucar.edu]
> Sent: Thursday, March 18, 2010 9:29 PM
> To: Shaw, Michael J CTR USAF AFWA 16 WS/WXE
> Cc: met_help at ucar.edu
> Subject: Re: [Met_help] AFWA grib codes in METv2
>
> Mike,
>
> Below is an excerpt from the Point-Stat configuration file. When you run
> the MET tools you can specify the GRIB parameter table version number to
> use. The default is 2:
>
> //
> // Specify the GRIB Table 2 parameter table version number to be used
> // for interpreting GRIB codes.
> // http://www.nco.ncep.noaa.gov/pmb/docs/on388/table2.html
> //
> grib_ptv = 2;
>
> I believe the GRIB codes for numbers 1 through 127 are pre-defined and
> common to all tables. However the usage for codes 128 through 255 can
> vary by center. We've only implemented the table versions listed on the
> website in the comment above because that's all we were aware of.
>
> However, if those parameter table versions don't match what AFWA uses,
> we'd be happy to add the AFWA table as well. We'd just need a table
> listing the information for each GRIB code that's listed at that website.
>
> Please take a look at the existing tables and let us know if you have an
> additional table you'd like added to the software. It'd wouldn't take
> very long.
>
> Thanks,
> John Halley Gotway
> met_help at ucar.edu
>
>
>> Hi.
>>
>>
>>
>> Is there an AFWA grib code parameter table option? If not, how can I
>> specify grib codes or variables/parameters that do not jibe with what
>> MET
>> expects for it's assumed grib codes?
>>
>>
>>
>> Thanks,
>>
>> Mike
>>
>>
>>
>> ______________________________________________
>>
>> Michael Shaw, Contractor
>>
>> SAIC/NASA Support Scientist
>>
>> michael.shaw.ctr at offutt.af.mil
>>
>> 16WS Environmental Characterization
>>
>> HQ AFWA-SAIC
>>
>> 101 Nelson Drive
>>
>> Offutt AFB, NE 68113-1023
>>
>> 402-232-7690 Comm * 402-272-7690 DSN * 402-294-8230 Fax
>>
>>
>>
>> _______________________________________________
>> Met_help mailing list
>> Met_help at mailman.ucar.edu
>> http://mailman.ucar.edu/mailman/listinfo/met_help
>>
>
>
>
More information about the Met_help
mailing list