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
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to