names: Get/set Satellite data layer names

namesR Documentation

Get/set Satellite data layer names

Description

Get/set Satellite data layer names, i.e. the BCDE id.

Usage

## S4 method for signature 'Satellite'
names(x)

## S4 replacement method for signature 'Satellite'
names(x) <- value

Arguments

x

A Satellite object.

value

Band codes of the individual data layers.

Value

Satellite data layer names as character vector.

Examples

path <- system.file("extdata", package = "satellite")
files <- list.files(path, pattern = glob2rx("LC08*.TIF"), full.names = TRUE)
sat <- satellite(files)
names(sat)
new_names <- paste0(names(sat), "_test")
names(sat) <- new_names

satellite documentation built on May 29, 2024, 6:16 a.m.