[gdal-dev] GRIB2 file produces None on opening
ivan.lucena at pmldnet.com
Fri Aug 15 07:58:18 EDT 2008
Just a comment: There are some grib files generated by SPRING that are
not compatible with the GRIB driver. It might be a version issue GRIB1,
GRIB2 or something. Ex.:
ERROR 4: `I000355.grb' not recognised as a supported file format.
gdalinfo failed - unable to open 'I000355.grb'.
Mateusz Loskot wrote:
> 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
> 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,
More information about the gdal-dev