Description Usage Arguments Details Value See Also Examples
View source: R/cuttails_rast.R
the function allows to automatically set to NoData eventual outliers present in a
raster single- or multi-band object (or file). For each band, quantiles of the distribution
of pixel values are computed using raster::quantile
, and the values falling outside the
limits set with the tails
argument are set to NoData in the output
1 2 | cuttails_rast(in_rast, tails = c(0.02, 0.98), to_file = FALSE,
verbose = TRUE)
|
in_rast |
|
tails |
|
to_file |
DESCRIPTION |
verbose |
DESCRIPTION |
DETAILS
OUTPUT_DESCRIPTION
quantile
,getValues
,setValues
,brick
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
# on single band
in_rast <- raster::raster(ncol=100, nrow=100)
in_rast <- raster::setValues(r, 1:10000)
in_rast_cut <- cuttails_rast(in_rast)
in_rast_cut
# on multi band
in_brick <- raster::stack(in_rast,in_rast,in_rast)
in_brick
in_brick_cut <- cuttails_rast(in_brick)
in_brick_cut
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.