getValuesBlock(x, row, ...)
getValuesExtent(x, e, ...)
nrows
Integer. How many rows? Default is 1
col
Integer. Start column. Default is 1
ncols
Integer. How many columns? Default is the number of colums left after the start column
}
There are no additional arguments for readValuesExtentr <- raster(system.file("external/test.grd", package="raster"))
b <- getValuesBlock(r, row=100, nrows=3, col=10, ncols=5)
b
dim(b) = c(3,5)
b
e = extent(180078, 180251, 330247, 330433)
getValuesExtent(r, e)
Run the code above in your browser using DataLab