Learn R Programming

satellite (version 1.0.5)

names: Get/set Satellite data layer names

Description

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

Usage

# S4 method for Satellite
names(x)

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

Value

Satellite data layer names as character vector.

Arguments

x

A Satellite object.

value

Band codes of the individual data layers.

Examples

Run this code
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

Run the code above in your browser using DataLab