Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

compFilePathLandsat

Get filename, bands and metadata file for Landsat 7 and 8 standard 1B/T format


Description

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

Usage

compFilePathLandsat(files)

sortFilesLandsat(files, id = FALSE)

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

  • sortFilesLandsat: Sort Landsat band files in ascending order.

Examples

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

Handling and Manipulating Remote Sensing Data

v1.0.2
MIT + file LICENSE
Authors
Thomas Nauss, Hanna Meyer, Tim Appelhans, Florian Detsch
Initial release
2019-12-06

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.