otbLocalStat: Calculates local statistics for a given kernel size

Description Usage Arguments Note Author(s) Examples

Description

Calculate local statistics using OTB functions.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## S4 method for signature 'RasterBrick'
otbLocalStat(x, output_name = "locstat", radius = 3,
  path_output = NULL, return_raster = TRUE, channel = NULL,
  verbose = FALSE, ram = "8192")

## S4 method for signature 'RasterLayer'
otbLocalStat(x, output_name = "locstat", radius = 3,
  path_output = NULL, return_raster = TRUE, channel = NULL,
  verbose = FALSE, ram = "8192")

## S4 method for signature 'RasterStack'
otbLocalStat(x, output_name = "locstat", radius = 3,
  path_output = NULL, return_raster = TRUE, channel = NULL,
  verbose = FALSE, ram = "8192")

## S4 method for signature 'character'
otbLocalStat(x, output_name = "locstat", radius = 3,
  path_output = NULL, return_raster = FALSE, channel = NULL,
  verbose = FALSE, ram = "8192")

Arguments

x

A Raster* object or a GeoTiff containing 1 or more gray value bands

output_name

string pattern for individual naming of the output file(s)

radius

computational window in pixel

return_raster

boolean if TRUE a raster stack is returned

channel

sequence of bands to be processed

verbose

switch for system messages default is FALSE

ram

reserved memory in MB

Note

the otb is used for the calculation of the statistics. Please provide a GeoTiff file

Author(s)

Chris Reudenbach, Thomas Nauss

Examples

1
2
3
4
5
6
7
## Not run: 
url<-"http://www.ldbv.bayern.de/file/zip/5619/DOP%2040_CIR.zip"
res <- curl::curl_download(url, "testdata.zip")
unzip(res,junkpaths = TRUE,overwrite = TRUE)
otbLocalStat(input=paste0(getwd(),"4490600_5321400.tif"),radius=5)

## End(Not run)

environmentalinformatics-marburg/satelliteTools documentation built on May 16, 2019, 8:16 a.m.