[gradsusr] Strange WGRIB2 output behaviour
mike at weatherwatch.net.au
mike at weatherwatch.net.au
Mon Feb 19 17:16:28 EST 2024
Hi guys, I hope all is well - I am using WGRIB2 v3.1.2 to extract data to a
spreadsheet format using the -spread as follows and I seem to be getting
incorrect output data - the starting/finishing lat/lon is incorrect which
messes up the entire grid. The data is GRIB2 data from the Australian Bureau
of Meteorology.
wgrib2 -d 2 -grid IDZ71000_AUS_T_SFC.grb -one_line -npts -set_ext_name 1
-end_FT -ext_name -lev -spread - | more
2:220192:grid_template=0:winds(N/S): lat-lon grid:(723 x 735) units 1e-06
input WE:SN output WE:SN res 48 lat -45.000000 to -8.299999 by 0.050000 lon
111.984664 to 155.034080 by 0.059625
#points=531405:npts=531405:end_FT=20240219200000:T
MP:surfacelon,lat,TMP surface d=2024021919 1 hour fcst
146.805798,-44.600000,288.86
146.865424,-44.600000,288.96
146.925049,-44.600000,288.96
146.984674,-44.600000,288.96
147.044299,-44.600000,288.86
147.103924,-44.600000,288.86
145.911420,-44.550000,288.56
145.971045,-44.550000,288.56
146.030670,-44.550000,288.66
146.090296,-44.550000,288.66
146.149921,-44.550000,288.76
146.209546,-44.550000,288.76
146.269171,-44.550000,288.76
146.328796,-44.550000,288.86
146.388422,-44.550000,288.86
146.448047,-44.550000,288.86
146.507672,-44.550000,288.86
146.567297,-44.550000,288.76
146.626923,-44.550000,288.76
146.686548,-44.550000,288.86
146.746173,-44.550000,288.86
146.805798,-44.550000,288.86
146.865424,-44.550000,288.96
146.925049,-44.550000,288.96
146.984674,-44.550000,288.96
147.044299,-44.550000,288.96
147.103924,-44.550000,288.96
147.163550,-44.550000,288.96
145.851795,-44.500000,288.56
When I do a wc -l on the output for the number of lines, I only see 300770
points, not the 531405 as reported in the header information. When I run
the exact same command on a GFS file, it seems to work fine and shows the
correct lat/lon grid:
root at ded106161:/home/ww/public_html/data/grib/gfs/aus/2024021918# wgrib2
gfs.t18z.pgrb2.0p25.f000 -spread - | more^C
root at ded106161:/home/ww/public_html/data/grib/gfs/aus/2024021918# wgrib2 -d
2 -grid gfs.t18z.pgrb2.0p25.f000 -one_line -npts -set_ext_name 1 -end_FT
-ext_name -lev -spread - | more
2:149769:grid_template=0:winds(N/S): lat-lon grid:(361 x 221) units 1e-06
input WE:SN output WE:SN res 48 lat -55.000000 to 0.000000 by 0.250000 lon
90.000000 to 180.000000 by 0.250000
#points=79781:npts=79781:end_FT=20240219180000:CLMR:
1 hybrid levellon,lat,CLMR 1 hybrid level d=2024021918 anl
90.000000,-55.000000,0
90.250000,-55.000000,0
90.500000,-55.000000,0
90.750000,-55.000000,0
91.000000,-55.000000,0
91.250000,-55.000000,0
91.500000,-55.000000,0
91.750000,-55.000000,0
92.000000,-55.000000,0
92.250000,-55.000000,0
92.500000,-55.000000,0
92.750000,-55.000000,0
93.000000,-55.000000,0
93.250000,-55.000000,0
93.500000,-55.000000,0
93.750000,-55.000000,0
94.000000,-55.000000,0
94.250000,-55.000000,0
94.500000,-55.000000,0
94.750000,-55.000000,0
95.000000,-55.000000,0
95.250000,-55.000000,0
95.500000,-55.000000,0
95.750000,-55.000000,0
96.000000,-55.000000,0
96.250000,-55.000000,0
96.500000,-55.000000,0
96.750000,-55.000000,0
97.000000,-55.000000,0
97.250000,-55.000000,0
97.500000,-55.000000,0
97.750000,-55.000000,0
98.000000,-55.000000,0
98.250000,-55.000000,0
98.500000,-55.000000,0
98.750000,-55.000000,0
99.000000,-55.000000,0
99.250000,-55.000000,0
99.500000,-55.000000,0
99.750000,-55.000000,0
100.000000,-55.000000,0
100.250000,-55.000000,0
100.500000,-55.000000,0
100.750000,-55.000000,0
101.000000,-55.000000,0
101.250000,-55.000000,0
101.500000,-55.000000,0
101.750000,-55.000000,0
102.000000,-55.000000,0
102.250000,-55.000000,0
102.500000,-55.000000,0
102.750000,-55.000000,0
103.000000,-55.000000,0
103.250000,-55.000000,0
103.500000,-55.000000,0
103.750000,-55.000000,0
104.000000,-55.000000,0
104.250000,-55.000000,0
104.500000,-55.000000,0
104.750000,-55.000000,0
105.000000,-55.000000,0
105.250000,-55.000000,0
105.500000,-55.000000,0
105.750000,-55.000000,0
106.000000,-55.000000,0
106.250000,-55.000000,0
106.500000,-55.000000,0
106.750000,-55.000000,0
107.000000,-55.000000,0
107.250000,-55.000000,0
107.500000,-55.000000,0
107.750000,-55.000000,0
108.000000,-55.000000,0
108.250000,-55.000000,0
Cheers, Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20240220/9a614016/attachment.html>
More information about the gradsusr
mailing list