[gdal-dev] GRIB2 file produces None on opening
mateusz at loskot.net
Fri Aug 15 07:38:08 EDT 2008
Frank Peacock wrote:
> 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.
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?
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org
More information about the gdal-dev