[gradsusr] WPC 2.5km GRIB2 Files
Wesley Ebisuzaki - NOAA Federal
wesley.ebisuzaki at noaa.gov
Fri Apr 5 09:11:25 EDT 2019
Hi,
Many of the more unusual product definition templates are not supported
by g2ctl. The work around is to use alt_g2ctl and alt_gmp (for gribmap).
https://www.cpc.ncep.noaa.gov/products/wesley/alt_g2ctl_gmp.html
Once you start using aerosols, chemical tracers, probabilities, the
automatically
generated variable names become longer that the GrADS can handle without
aliasing. I use alt_g2ctl with the -short option. When the variable
listing gets
too long, I use the -match option to generate ctl files with a subset of the
variables.
In summary, g2ctl is still supported. However, when you start using
aerosols, chemical
tracers, probabilities, alt_g2ctl and alt_gmp are the preferred solutions,
I only use g2ctl
for files > 2GB or using the ensemble dimension. For large templated grib2
datasets,
alt_gmp is faster than gribmap. The former uses multiple threads to index
the data,
while the latter uses one thread.
Wesley
On Fri, Apr 5, 2019 at 4:12 AM Perry, Aaron <Aaron.Perry at lsc.vsc.edu> wrote:
> Thank you for passing along this update Kevin!
>
>
>
> *Aaron Perry*
> Class of 2016
> Lyndon State College
> Lyndonville, VT 05851
> Twitter: @AaronPerryWx <https://twitter.com/AaronPerryWx>
> <https://twitter.com/arnpry> <https://twitter.com/AaronPerryWx>
> Email: Aaron.Perry at lyndonstate.edu
> ------------------------------
> *From:* gradsusr <gradsusr-bounces at gradsusr.org> on behalf of Kevin Levey
> <klevey at customweather.com>
> *Sent:* Thursday, April 4, 2019 6:32:14 PM
> *To:* GrADS Users Forum
> *Subject:* Re: [gradsusr] WPC 2.5km GRIB2 Files
>
> *This message is from an external sender. Please be careful when clicking
> on links and attachments. *
>
> Hi Aaron,
>
> WPC changed their files recently and I ran into a similar issue with the
> regular QPF files.
>
> Here is my current CTL file to read in the QPF files: (note the slight
> differences in the various variable settings)
>
> weather:fweather1 /mnt/modeldata/domModel/WPC/grads_ctl > cat
> 2019040418_wpc_18_078_20km.ctl
> dset /mnt/modeldata/domModel/WPC/18Z/201904/2019040418_wpc_20km_078.grb2
> index /mnt/modeldata/domModel/WPC/grads_ctl/2019040418_wpc_18_078_20km.idx
> undef 9.999E+20
> title /mnt/modeldata/domModel/WPC/18Z/201904/2019040418_wpc_20km_078.grb2
> * produced by g2ctl v0.1.1
> * command line options:
> /mnt/modeldata/domModel/WPC/18Z/201904/2019040418_wpc_20km_078.grb2
> /mnt/modeldata/domModel/WPC/grads_ctl/2019040418_wpc_18_078_20km.idx
> * griddef=1:21:(2145 x 1597):grid_template=30:winds(grid): Lambert
> Conformal: (2145 x 1597) input WE:SN output WE:SN res 8 Lat1 20.191999 Lon1
> 238.445999 LoV 265.000000 LatD 25.000000 Latin1 25.000000 Latin2 25.000000
> LatSP -90.000000 LonSP 0.000000
> dtype grib2
> pdef 2145 *1597* lccr 20.191999 -121.554001 1 1 25.000000 25.000000 -95
> 2539.703000 2539.702000
> xdef *2966* linear -131.995167 0.0246001009814572
> ydef *1598* linear 20.196426 0.0230882
> tdef 1 linear 00Z07apr2019 1mo
> zdef 1 linear 1 1
> vars 1
> APCPl1_1 0,1,0,-1 0,1,8,1 ** surface - surface Total Precipitation
> [kg/m^2]
> ENDVARS
>
> Someone was gracious enough in this group to help me fix this issue for my
> purposes, so hopefully this resolves yours.
>
> Regards,
>
> Kevin M Levey, MSc in Oceans and Atmospheric Sciences (University of Cape
> Town)
> Vice President of Operations
> CustomWeather, Inc.
> San Francisco, California, USA
>
> "Taking the World by Storm!"
>
> http://www.customweather.com
> http://www.myforecast.com
> http://www.1stweather.com
>
> cell: 415-794-0411
> work: 415-777-3566
> email: klevey at customweather.com
>
> On Mar 1, 2019, at 6:42 AM, Perry, Aaron <Aaron.Perry at lsc.vsc.edu> wrote:
>
> Hi All,
>
> I am working with the WPC's 2.5km Winter Probability GRIB2 files and I'm
> having trouble generating index files and opening them in GrADS.
>
> Data:
> ftp://ftp.wpc.ncep.noaa.gov/pwpf/conus_2.5km/2.5kmpwpf_48hr/2.5kmprcntil_48hsnow_50pt_2019030100f048.grb
>
> *Control File*
>
> dset /home/weather/data/wpc/2.5kmprcntil_48hsnow_50pt_2019030112f048.grb
> index
> /home/weather/data/wpc/2.5kmprcntil_48hsnow_50pt_2019030112f048.grb.idx
> undef 9.999E+20
> title /home/weather/data/wpc/2.5kmprcntil_48hsnow_50pt_2019030112f048.grb
> * produced by g2ctl v0.1.4
> * command line options:
> /home/weather/data/wpc/2.5kmprcntil_48hsnow_50pt_2019030112f048.grb
> * griddef=1:21:(2145 x 1377):grid_template=30:winds(grid): Lambert
> Conformal: (2145 x 1377) input WE:SN output WE:SN res 8 Lat1 20.191999 Lon1
> 238.445999 LoV 265.000000 LatD 25.000000 Latin1 25.000000 Latin2 25.000000
> LatSP -90.000000 LonSP 0.000000
> dtype grib2
> pdef 2145 1377 lccr 20.191999 -121.554001 1 1 25.000000 25.000000 -95
> 2539.702000 2539.698000
> xdef 2814 linear -130.103416 0.0246000912952455
> ydef 1413 linear 20.196426 0.0230881636363636
> tdef 1 linear 12Z03mar2019 1mo
> zdef 1 linear 1 1
> vars 1
> ASNOW50PCsfc 0,1,0 a50 ** surface acc Total Snowfall [m]
> ENDVARS
>
> *GrADS Error*
>
> Open Error: Invalid variable record
> --> The invalid description file record is:
> --> ASNOW50PCsfc 0,1,0 a50 ** surface acc Total Snowfall [m]
> The data file was not opened.
>
> What's going on here? This should be rather cut-and-dry.
>
>
>
> *Aaron Perry*
> Class of 2016
> Lyndon State College
> Lyndonville, VT 05851
> Twitter: @AaronPerryWx <https://twitter.com/AaronPerryWx>
> <https://twitter.com/arnpry> <https://twitter.com/AaronPerryWx>
> Email: Aaron.Perry at lyndonstate.edu
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20190405/a57997a0/attachment-0001.html>
More information about the gradsusr
mailing list