Skip to content
Prev 13421 / 29559 Next

inconsistencies between readGDAL and other software (GrADS) when reading GRIB1 files

On Thu, 17 Nov 2011, Ariel Ortiz-Bobea wrote:

            
The readGDAL() function in the rgdal package uses GDAL and its drivers, so 
see:

http://www.gdal.org/frmt_grib.html

for details. Note also:

https://stat.ethz.ch/pipermail/r-sig-geo/2011-January/010760.html
http://grass.osgeo.org/wiki/GRIB

for a bug in the GDAL driver and a workaround, and other GRIB threads on 
this list.
As far as I can see, band names are not supported in GDAL in:

http://www.gdal.org/classGDALDataset.html

or

http://www.gdal.org/classGDALRasterBand.html

but may be in http://www.gdal.org/classGDALRasterAttributeTable.html.

Could you please try running:

GDALinfo("mygrib.grb", returnRAT=TRUE)

to see if you get the band names?

Roger