Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

bandnames

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

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

Manage, Analyse and Simulate Hyperspectral Data

v1.0.3
GPL
Authors
Lukas W. Lehnert [cre, aut] (<https://orcid.org/0000-0002-5229-2282>), Hanna Meyer [ctb], Joerg Bendix [ctb]
Initial release
2020-08-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.