compFilePathLandsat: Get filename, bands and metadata file for Landsat 7 and 8...

Description Usage Arguments Value Functions Examples

View source: R/compFilePathLandsat.R

Description

The function compiles the sensor, band, filename and metadata filename information for standard level 1B/T Landsat files.

Usage

1
2
3

Arguments

files

Path and filename(s) of one or more Landsat band files or, alternatively, one or more Landsat metadata files.

id

logical, defaults to FALSE. Determines whether to return sorted band files (ie default) or sorting order.

Value

data.frame containing filepaths, band numbers and metadata filepaths.

If id = FALSE (default), sorted band files as character, else the corresponding sorting order as integer.

Functions

Examples

1
2
3
4
5
6
7
path <- system.file("extdata", package = "satellite")
files <- list.files(path, pattern = glob2rx("LC08*.TIF"), full.names = TRUE)

compFilePathLandsat(files)  

sortFilesLandsat(files)
sortFilesLandsat(files, id = TRUE) # indices

satellite documentation built on Oct. 12, 2021, 5:07 p.m.