## Import example data
mtlFile <- system.file("external/landsat/LT52240631988227CUB02_MTL.txt", package="RStoolbox")
meta <- readMeta(mtlFile)
lsat_t <- stackMeta(mtlFile)
## Get integer scale factors
getMeta(lsat_t, metaData = meta, what = "SCALE_FACTOR")
## Conversion factors for brightness temperature
getMeta("B6_dn", metaData = meta, what = "CALBT")
## Conversion factors to top-of-atmosphere radiance
## Band order not corresponding to metaData order
getMeta(lsat_t[[5:1]], metaData = meta, what = "CALRAD")
## Get integer scale factors
getMeta(lsat_t, metaData = meta, what = "SCALE_FACTOR")
## Get file basenames
getMeta(lsat_t, metaData = meta, what = "FILES")
Run the code above in your browser using DataLab