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))

nplatonov/ursa documentation built on May 8, 2024, 6:02 p.m.