Learn R Programming

ursa (version 3.10.4)

bandname: 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 ursaRaster names(x)

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

Value

For bandname and names, character vector.

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

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

Author

Nikita Platonov platonov@sevin.ru

Details

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

See Also

nband

Examples

Run this code
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))

Run the code above in your browser using DataLab