Learn R Programming

nightmares (version 0.0.2)

rad_oli: Radiance Landsat OLI

Description

This function Convert Digital Numbers to TOA Radiance using the radiance rescaling factors in the MTL file.

Usage

rad_oli(x)

Arguments

x

A raster stack containing the first seven Landsat OLI bands.

Value

A raster layer object with the Top of atmosphere spectral radiance.

References

https://www.usgs.gov/core-science-systems/nli/landsat/using-usgs-landsat-level-1-data-product.

Examples

Run this code
# NOT RUN {
library(raster)
path_files <- system.file("extdata/", package="nightmares")
x <- stack(list.files(path_files,".tif", full.names=TRUE))
rad_oli(x)

# }

Run the code above in your browser using DataLab