classRaster_length: Get number of bands of raster image.

nbandR Documentation

Get number of bands of raster image.

Description

nband (length) returns number of bands (layers, if appropriate in terminology) of ursaRaster object.

Usage

nband(x)

## S3 method for class 'ursaRaster'
length(x)

Arguments

x

Object of class ursaRaster

Details

length for ursaRaster object is a synonym for nband.

Value

Positive integer of length 1.

Author(s)

Nikita Platonov platonov@sevin.ru

See Also

bandname (names for ursaRaster object).

Examples

session_grid(NULL)
a1 <- pixelsize()
print(a1)
print(nband(a1))
a2 <- c("Band 1"=a1,Band2=a1/2,sqrt=sqrt(a1),NA)
print(a2)
print(nband(a2))

ursa documentation built on March 18, 2022, 6:23 p.m.