Re: [gdal-dev] question about reading grib2 file

2011-01-20 Thread Matt Funk
oint within the > >file. > > To answer your other question about wgrib2 -spreadwgrib2 calculates the > lat-lon coordinates on the fly and does not store these explicitly in the > file...Unless they are put there as a wgrib2 data segment which most people > don&#x

RE: [gdal-dev] question about reading grib2 file

2011-01-20 Thread Cassanova, Bill
her question about wgrib2 -spreadwgrib2 calculates the lat-lon coordinates on the fly and does not store these explicitly in the file...Unless they are put there as a wgrib2 data segment which most people don't do. Hope this helps, Bill -Original Message- From: gdal-dev-boun...@list

Re: [gdal-dev] question about reading grib2 file

2011-01-20 Thread Matt Funk
One more comment, when i use the wgrib2 with the -spread flag i get lat/lon/elevation. When i use the -text flag instead i only get the elevation (which is the same data i get through python/gdal). One thing that did occur to me is that it is possible that the wgrib2 utility computes the lat/lon

[gdal-dev] question about reading grib2 file

2011-01-20 Thread Matt Funk
Hi, i am somewhat new to gdal and the grib format. I need to read in a grib2 file which contains latitude longitude and elevation. So i do: ds = gdal.Open(filename) and print "ds.GetRasterCount(): %s" % ds.GetRasterCount() gives: 1 I can proceed to read in this band, but all the data that i get i