Skip to contents

Returns the band names of the multi-band raster that make up the object.

Usage

get_spectral_band_names(sr, res)

# S3 method for class 'satres'
get_spectral_band_names(sr, res = NULL)

Arguments

sr

A satres object.

res

A string, spatial resolution.

Value

A vector of strings.

Details

We can indicate the name of a certain spatial resolution to obtain only its band names.

See also

sat_untarzip

Other satellite definition: get_band_names(), get_spatial_resolution(), satres()

Examples


esa <- system.file("extdata", "esa", package = "satres")
sr <- satres(dir = esa, only_spectral_bands = FALSE)
r <- sr |>
     get_spectral_band_names()