readMeta {RStoolbox} | R Documentation |
Read Landsat MTL metadata files
Description
Reads metadata and deals with legacy versions of Landsat metadata files and where possible adds missing information (radiometric gain and offset, earth-sun distance).
Usage
readMeta(file, raw = FALSE)
Arguments
file |
path to Landsat MTL file (...MTL.txt) |
raw |
Logical. If |
Value
Object of class ImageMetaData
Examples
## Example metadata file (MTL)
mtlFile <- system.file("external/landsat/LT52240631988227CUB02_MTL.txt", package="RStoolbox")
## Read metadata
metaData <- readMeta(mtlFile)
## Summary
summary(metaData)
[Package RStoolbox version 1.0.0 Index]