Skip to content
Prev 5686 / 29559 Next

Define projection using Raster package

Tim,

"proj" is not a valid argument in raster(x, ... ) when x (the first
argument) is of class character (i.e. interpreted as a filename); but
I can add that argument. For now, what should work is:

r<-raster(paste(asc.in.dir, "\\", asc.in.files[i], sep=""))
projection(r) <- "+proj=tmerc +lat_0=0 +lon_0=0 +k=9996 +x_0=500000
+y_0=10000000"

Robert
On Fri, May 8, 2009 at 10:26 AM, Tim Sippel <tsippel at gmail.com> wrote: