R: Get/set Satellite data layer names

names {satellite} | R 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

[Package satellite version 1.0.1 Index]