[gdal-dev] GRIB2 file produces None on opening

Mateusz Loskot mateusz at loskot.net
Fri Aug 15 07:38:08 EDT 2008


Frank Peacock wrote:
> Hello
> 
> I have a GRIB2 file called "a" which I have tested and is correct.  I use
> the following code:
> 
> from osgeo import gdal
> src_ds = gdal.Open("a")
> print src_ds
> 
> The result of the print is None. 
> I have also run a test with a tif file and it works correctly producing
> <osgeo.gdal.Dataset; proxy of <Swig Object of type 'GDALDatasetShadow *' at
> 0x14381b8> >
> 
> Can anyone help to explain why the GRIB2 file is not being read correctly.

Frank,

What version of GDAL do you use?
What does the following command return:

$ gdalinfo --formats | grep GRIB

Have you tried to open your dataset using gdalinfo?

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org


More information about the gdal-dev mailing list