Ops.band_group: Extract certain statistics of each band.

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

Description

Function from this band.* list returns required statistics for each band.

Usage

1
2
3
4
5
6
7
band_mean(obj)
band_sd(obj)
band_sum(obj)
band_min(obj)
band_max(obj)
band_n(obj)
band_nNA(obj)

Arguments

obj

Object of class ursaRaster.

Details

Value

Named vector of numerical or integer values. Band names are used for naming.

Note

Currently, implementation is not optimal, because firstly bundle of statistics is computed using band_stat function, and then required statistics is extracted.

Author(s)

Nikita Platonov platonov@sevin.ru

See Also

band_stat

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
session_grid(NULL)
a <- ursa_dummy()
print(a)
print(a<80)
print(class(a))
a[a<80]
a[a<80] <- NA
b1 <- band_stat(a)
print(b1)
b2.n <- band_n(a)
str(b2.n)
b2.mean <- band_mean(a)
print(b1$mean)
print(b2.mean)
print(b1$mean-b2.mean)

ursa documentation built on May 23, 2021, 1:06 a.m.