Re: PyNIO doesn't like this grib file ..

From: David Ian Brown <dbrown_at_nyahnyahspammersnyahnyah>
Date: Tue, 20 Feb 2007 14:17:32 -0700

Yes, I see. PyNIO has never been taught to recognize 'probability
threshold' as a dimension.
I will have to study this concept a bit to see what can be done about
it.
  -dave

On Feb 20, 2007, at 1:33 PM, Jeff Whitaker wrote:

>
> Hi Dave: I've found that PyNIO doesn't like the grib files at
>
> ftp://ftpprd.ncep.noaa.gov/pub/data/nccf/com/gens/prod/gefs.20070220/
> 00/ensstat
>
> (the ones with the 'pqpf' in the name).
>
> The contain probabilities of precip for multiple thresholds, but PyNIO
> doesn't recognize the thresholds. wgrib gives me:
>
> 1:0:d=07022000:PROB:kpds5=191:kpds6=1:kpds7=0:TR=4:P1=0:P2=2:TimeU=12:
> sfc:0-24hr
> acc:prob(APCP>254000.000000):NAve=0
> 2:0:d=07022000:PROB:kpds5=191:kpds6=1:kpds7=0:TR=4:P1=0:P2=2:TimeU=12:
> sfc:0-24hr
> acc:prob(APCP>2540000.000000):NAve=0
> 3:0:d=07022000:PROB:kpds5=191:kpds6=1:kpds7=0:TR=4:P1=0:P2=2:TimeU=12:
> sfc:0-24hr
> acc:prob(APCP>6350000.000000):NAve=0
> 4:0:d=07022000:PROB:kpds5=191:kpds6=1:kpds7=0:TR=4:P1=0:P2=2:TimeU=12:
> sfc:0-24hr
> acc:prob(APCP>12700000.000000):NAve=0
>
> but nio gives me
>
> >>> f = nio.open_file('ensstat.t00z.pqpf_24hbc.grb')
> >>> print f.variables
> {'lon_2': <NioVariable object at 0x514ef0>, 'lat_2': <NioVariable
> object at 0x514ec0>, 'PROB_2_SFC_acc24h': <NioVariable object at
> 0x514d70>, 'forecast_time0': <NioVariable object at 0x514f20>}
> >>> print f.dimensions
> {'forecast_time0': 31, 'lat_2': 73, 'lon_2': 144}
>
>
> Note that there is only one variable, and no dimension corresponding
> the precip threshold.
>
> -Jeff
>
> --
> Jeffrey S. Whitaker Phone : (303)497-6313
> Meteorologist FAX : (303)497-6449
> NOAA/OAR/PSD R/PSD1 Email : Jeffrey.S.Whitaker_at_noaa.gov
> 325 Broadway Office : Skaggs Research Cntr 1D-124
> Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg
>

_______________________________________________
pyngl-talk mailing list
pyngl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
Received on Tue Feb 20 2007 - 14:17:32 MST

This archive was generated by hypermail 2.2.0 : Sun Apr 01 2007 - 11:53:11 MDT