Dear All,
I'm getting an error when I try to write a raster to file. Please see more
details below.
This example works:
r - raster(ncol=10, nrow=10)
vals - 1:ncell(r)
r - setValues(r, vals)
writeRaster(r, filename=teste.tif)
This one also works, using only one layer from MODIS temperature
Paulo,
The first error message is perhaps ambiguous, but the last one is very
clear: No such file or directory. It suggests that either the path does
not exist, or you are not allowed to write to it (from R).
Error in .local(.Object, ...) : Dataset copy failed
Error in file(filename, w) :