Description Usage Arguments Details Value Author(s) See Also Examples
Local operations (mean value, sum of values, median, minimum, maximum) of map algebra for multi-bands ursaRaster
object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | local_mean(x, cover = 0.5 - 1e-3, weight = NULL, verbose = FALSE, bandname = "mean")
local_sum(x, cover = 0.5 - 1e-3, weight = NULL, verbose = FALSE, bandname = "sum")
local_median(x, cover = 0.5 - 1e-3, verbose = FALSE)
local_min(x, cover = 0.5 - 1e-3, verbose = FALSE)
local_max(x, cover = 0.5 - 1e-3, verbose = FALSE)
local_sd(x, cover = 0.5 - 1e-3, verbose = FALSE)
local_var(x, cover = 0.5 - 1e-3, verbose = FALSE)
## S3 method for class 'ursaRaster'
mean(x, ...)
## S3 method for class 'ursaRaster'
median(x, ...)
# non public
.average(x, cover = 0.5 - 1e-3, weight = NULL, sum = FALSE, verbose = FALSE)
|
x |
|
cover |
Numeric. |
weight |
Positive numeric of length equal to number of bands. For |
sum |
Logical. For |
verbose |
Logical. If |
bandname |
Character. Band name for created single-band image. |
... |
Function |
If for valid output cell value it is requred to have at least m
values not marked as NA
, specify quota as cover=m/nband(x)
.
local_mean
and local_sum
are wrapper to non-public function .average
.
Generic functions mean
, median
, sd
for ursaRaster
class are implemented via local_mean
, local_median
, local_sd
, respectively.
Single-band ursaRaster
object.
Nikita Platonov platonov@sevin.ru
If bands are interpreted as time series, apply local_stat
Mean value for image brick global_mean
Mean value for each band band_mean
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.