[gdal-dev] GRIB2 file produces None on opening
lran at unc.edu
Fri Aug 15 09:29:34 EDT 2008
I have the same problem. I just installed 1.5.2 version on Linux. When I do:
gdalinfo --formats | grep GRIB
Nothing came out. Also when I do:
gdalinfo abc.grb I got: not recognised as a supported file format
My grb file is GRIB2 format. Do we need to download the GRIB driver
before the installation?
Limei Ran, Research Associate
Center for Environmental Modeling for Policy Development
the Institute for the Environment University of North Carolina at Chapel Hill
Bank of American Plaza - CB#6116
137 E. Franklin, Room 661
Chapel Hill, NC 27599-6116
Email: lran at unc.edu
Quoting Lucena, Ivan:
> 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.:
> C:\Data\SpringDB\SP\SPaulo>gdalinfo I000355.grb
> 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 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?
>> Best regards,
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
More information about the gdal-dev