extractSubRaster:

Usage Arguments Examples

View source: R/extractSubRaster.R

Usage

1

Arguments

file
r
c
size
factor

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (file, r, c, size, factor) 
{
    raw <- raster(file)
    return(data.frame(simplifyBlock(getValuesBlock(raw, row = r, 
        nrows = size, col = c, ncols = size), factor, size)/100))
  }

JusteRaimbault/r-spatialmorphology documentation built on May 22, 2019, 5:07 p.m.