[gdal-dev] Unable to open GRIB file

Etienne Tourigny etourigny.dev at gmail.com
Wed Feb 15 06:55:17 EST 2012


Try with debugging output, perhaps it explains the error?

$ gdalinfo --debug on /data/tmp/2011-01.grib
GRIB: Problems with ReadGrib1Record called by ReadGrib2Record
Inside ReadGrib1Record
GRIB1 GDS: Expect PV = 255 != 33

ERROR 4: /data/tmp/2011-01.grib is a grib file, but no raster dataset
was successfully identified.
gdalinfo failed - unable to open '/data/tmp/2011-01.grib'.


On Wed, Feb 15, 2012 at 6:08 AM, SupportLists <supportlists at qlands.com> wrote:
> As far as I know is a raster.
>
> You can get it from:
>
> http://www.qlands.com/other_files/2011-01.grib
>
> This grib is only one record from the whole file and it contains maximum
> temperature for the whole world.
>
> The following is the wgrib ./2011-01.grib -V  of the file
>
> rec 1:0:date 2011010100 MX2T kpds5=201 kpds6=1 kpds7=0 levels=(0,0) grid=255
> sfc ECext=1 class=14 type=9 stream=1025 Version=0001 valid 0-3hr:
>   MX2T=Maximum temperature at 2 metres since previous post-processing [K]
>   timerange 2 P1 0 P2 3 TimeU 1  nx -1 ny 256 GDS grid 4 num_in_ave 0
> missing 0
>   center 98 subcenter 0 process 128 Table 128 scan: WE:NS winds(N/S)
>   thinned gaussian: lat  89.462000 to -89.462000
>           long 0.000000 to 359.296000, 88838 grid pts   (-1 x 256) scan 0
> mode 0 bdsgrid 1
>       18   25   36   40   45   50   60   64   72   72   80   90   90  100
> 108
>      120  120  125  128  144  144  150  160  160  180  180  180  192  192
> 200
>      216  216  216  225  240  240  240  250  250  256  270  270  288  288
> 288
>      300  300  320  320  320  320  324  360  360  360  360  360  360  360
> 375
>      375  375  375  384  384  400  400  400  400  405  432  432  432  432
> 432
>      432  432  450  450  450  450  450  480  480  480  480  480  480  480
> 480
>      480  480  486  486  486  500  500  500  500  500  500  500  512  512
> 512
>      512  512  512  512  512  512  512  512  512  512  512  512  512  512
> 512
>      512  512  512  512  512  512  512  512  512  512  512  512  512  512
> 512
>      512  512  512  512  512  512  512  512  512  512  512  512  512  512
> 512
>      512  512  512  512  500  500  500  500  500  500  500  486  486  486
> 480
>      480  480  480  480  480  480  480  480  480  450  450  450  450  450
> 432
>      432  432  432  432  432  432  405  400  400  400  400  384  384  375
> 375
>      375  375  360  360  360  360  360  360  360  324  320  320  320  320
> 300
>      300  288  288  288  270  270  256  250  250  240  240  240  225  216
> 216
>      216  200  192  192  180  180  180  160  160  150  144  144  128  125
> 120
>      120  108  100   90   90   80   72   72   64   60   50   45   40   36
> 25
>       18
>   min/max data 223.996 316.531  num bits 16  BDS_Ref 223.996  DecScale 0
> BinScale -9
>
> Many thanks,
> Carlos
>
>
> On 02/15/2012 10:44 AM, Brian Case wrote:
>
> On Wed, 2012-02-15 at 09:10 +0300, SupportLists wrote:
>
> Carlos
>
> is it raster or vector data?
>
> can you make the file accessible some place?
>
> Brian
>
> Hi,
>
> I am trying to open a grib file (meteorological data) with GDAL 1.8.1
> but i get the following error:
>
> ./2011.grib is a grib file, but no raster dataset was successfully
> identified.
> gdalinfo failed - unable to open './2011.grib'
>
> Other tools like wgrib successfully opens the same file.
>
> Any idea what is wrong?
>
> Thanks,
> Carlos.
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
>
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev


More information about the gdal-dev mailing list