textureVariables: Calculate selected Texture parameters from clouds based on...

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/textureVariables.R

Description

Calculate selected Texture parameters from clouds based on spectral properties

Usage

1
2
3
4
textureVariables(x, nrasters = 1:nlayers(x), filter = c(3),
  var = c("mean", "variance", "homogeneity", "contrast", "dissimilarity",
  "entropy", "second_moment"), parallel = TRUE, n_grey = 128,
  min_x = NULL, max_x = NULL)

Arguments

x

A rasterLayer or a rasterStack containing different channels where clouds are already masked

nrasters

A vector of channels to use from x. Default =nlayers(x)

filter

A vector of numbers indicating the environment sizes for which the textures are calculated

var

A string vector of parameters to be calculated. see glcm

parallel

A logical value indicating whether parameters are calculated parallely or not

n_grey

Number of grey values. see glcm

min_x

for each channel the minimum value which can occur. If NULL then the minimum value from the rasterLayer is used.

max_x

for each channel the maximum value which can occur. If NULL then the maximum value from the rasterLayer is used.

Details

This functions fills the glcm function with standard settings used for the rainfall retrieval

Value

A list of RasterStacks containing the texture parameters for each combination of channel and filter

Author(s)

Hanna Meyer

See Also

glcm

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## example on how to calculate texture from a list of msg channels

#'# stack the msg scenes:
msg_example <-getChannels(inpath=system.file("extdata/msg",package="Rainfall"))
 
#calculate texture
result <- textureVariables(msg_example,nrasters=1:3,
var=c("mean", "variance", "homogeneity"))

#plot the results from VIS0.6 channel:
plot(result$size_3$VIS0.6)

environmentalinformatics-marburg/Rainfall documentation built on May 13, 2017, 6:09 p.m.