bandnames: Handling names of bands

View source: R/speclib_bandnames.R

bandnamesR Documentation

Handling names of bands

Description

Returning and setting names of bands in Speclib

Usage

bandnames(x)
bandnames(x) <- value

Arguments

x

Object of class Speclib.

value

Character vector of the same length as nbands(x), or NULL.

Value

For bandnames<-, the updated object. Otherwise a vector giving the name of each band in Speclib is returned.

Note

Bandnames are not mandatory in Speclibs. If not set, the default names are in the form V+index of bands.

Author(s)

Lukas Lehnert

See Also

Speclib

Examples

data(spectral_data)

## Return band names
bandnames(spectral_data)

## Change band names
bandnames(spectral_data) <- paste("Band", wavelength(spectral_data),
                                  sep = "_")

## Return new band names
bandnames(spectral_data)

hsdar documentation built on March 18, 2022, 6:35 p.m.