Description Usage Arguments Details Value Author(s) Examples
View source: R/compile_pixel_states.R
make_pixel_states takes a raster stack or brick to qualify pixel following scale either defined by the user or derived from the natural breaks of data following the following boxplot statistics and outliers.
1 2 3 4 |
x |
a raster stack or brick |
w |
matrix of weights (the moving window), e.g. a 3 by 3 matrix with values 1; see Details. The matrix does not need to be square, but the sides must be odd numbers. If you need even sides, you can add a column or row with weights of zero |
split_IQR |
logical. Should the inter-quartile range be split at the median to form different ranges? The default is TRUE |
custum_rclmat |
numeric vector indicating the limits based on which to reclassify x. |
sample |
Logical. Should the data be sampled? If TRUE, the result is based on a ramdon sampling of the original data. |
size |
Integer. Sample size (if sample is TRUE or if the data cannot be process in memory). |
ties |
character. Indicates how to treat ties. Either 'random', 'lowest', 'highest', 'first', or 'NA' |
op |
character string indicating the type of returned value: either raw states or their probabilities |
as_states |
Logical, are the states already made (e.g. x is an output of make_pixel_states function call)? If TRUE, the x is assumed to be a stack of ready made states and is directly processed. |
inparallel |
integer indicating the number of processes to run in parallel |
... |
Additional arguments as for writeRaster |
The ranges are bounded by the lower outlier (if any), extreme of the lower whisker, the lower ‘hinge’, the median, the upper ‘hinge’, the extreme of the upper whisker, and the upper outlier (if any).
A raster brick where each layers correspond to one of the states.
Issoufou Liman
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.