[R] How to read a grib2 file

Debasish Pai Mazumder pai1981 at gmail.com
Fri Sep 9 23:11:31 CEST 2016


Hi
I am trying to read a grib2 file in R.

Here is my script

library(rgdal)
library(sp)
library(rNOMADS)
gribfile<-"tmax.01.2011040100.daily.grb2"
grib <- readGDAL(gribfile)

I am getting following error :

dec_jpeg2000: Unable to open JPEG2000 image within GRIB file.
Is the JPEG2000 driver available?tmax.01.2011040100.daily.grb2 has GDAL
driver GRIB
and has 190 rows and 384 columns
dec_jpeg2000: Unable to open JPEG2000 image within GRIB file.
Is the JPEG2000 driver available?dec_jpeg2000: Unable to open JPEG2000
image within GRIB file.

Cheers
-Deb

	[[alternative HTML version deleted]]



More information about the R-help mailing list