classRaster_names: Band names for raster image.

bandnameR Documentation

Band names for raster image.

Description

bandname (names) returns names of bands for object of class ursaRaster or existing ENVI labelled *.hdr file. bandname<- (names<-) sets names of bands for object of class ursaRaster.

Usage

bandname(x)
bandname(x) <- value

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

## S3 replacement method for class 'ursaRaster'
names(x) <- value

Arguments

x

Object of class ursaRaster. In the bandname function it is allowed to specify character ‘ENVI labelled *.hdr’ file name.

value

Character of length the same length of number of bands of x

Details

names is a synonym for bandname. names<- is a synonym for bandname<-

Value

For bandname and names, character vector.

For bandname<- and names<-, updated object of class ursaRaster.

Author(s)

Nikita Platonov platonov@sevin.ru

See Also

nband

Examples

session_grid(NULL)
a1 <- pixelsize()
a2 <- c("Band 1"=a1,Band2=a1/2,sqrt=sqrt(a1),NA)
print(a2)
print(bandname(a2))
bandname(a2)[1:2] <- c("Original","Half")
print(a2)
print(bandname(a2))

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