Re: [R] using grib files in R

2010-08-06 Thread Roger Bivand
In addition to Paul's advice, you may find it useful to know that *.grb files may be read by GDAL drivers in the rgdal package, so that for http://gribs.ocens.net/NorthEurope.wind.grb.bz2, after downloading and uncompressing, GDALinfo("NorthEurope.wind.grb") shows the 122 bands in the file, and re

Re: [R] using grib files in R

2010-08-06 Thread Paul Hiemstra
Hi Janet, This question would probably be more suited for the r-sig-geo mailing list. In my view, the best option is to use a tool like wgrib to dump the layer you want from the grib file to text and then read it into R using e.g. read.table. See also the spatial data classes provided to R th

[R] using grib files in R

2010-08-05 Thread Janet Nye
I am not new to R, but I am new to .grib files. I am downloading some climate data and I would like to analyze it in R. R has a nice netcdf package, but I don’t see any package available to deal specifically with grib files. I see a few posts from other people using grib files in R. However, I