[R-sig-Geo] projectRaster error with netcdf
Robert Hijmans
r.hijmans at gmail.com
Fri May 13 18:16:43 CEST 2011
The second argument in projectRaster is another Raster* object, not a proj.4
string.
I expect this problem goes away if you do:
x <- projectRaster(r, crs="+proj=longlat +ellps=WGS84 +datum=WGS84
+no_defs")
Robert
>Having an error in getting library raster to read data from a netcdf
>file when reprojecting a raster.
>I'd appreciate any workarounds you can suggest.
>Here's the debug transcript:
>
>-----
>debug at NARR.R#142: r <- projectRaster(r, "+proj=longlat +ellps=WGS84
>+datum=WGS84 +no_defs")
>Browse[2]> n
>Error in .rasterObjectFromFile(x, band = band, objecttype =
>"RasterLayer", :
> Cannot create a RasterLayer object from this file. (file does not exist)
--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/projectRaster-error-with-netcdf-tp6359514p6359973.html
Sent from the R-sig-geo mailing list archive at Nabble.com.
More information about the R-sig-Geo
mailing list