[R-sig-Geo] Can I read only a portion of a raster?

ben harrison harb at student.unimelb.edu.au
Thu Sep 26 06:49:09 CEST 2013


I thought I could do something like this:

library(raster)
my.ext <- extent(xmn, xmx, ymn, ymx)
my.r <- raster("raster.tif", ext=my.ext)

But it still reads in the entire file. How can I read in only the 
portion I need?



More information about the R-sig-Geo mailing list