bandname {ursa} | R 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 |
value |
Character of length the same length of number of bands of |
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
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))
[Package ursa version 3.10.4 Index]