ref_oli: Reflectance Landsat OLI

Description Usage Arguments Value References Examples

Description

This function convert Digital Numbers to TOA Reflectance using the rescaling coefficients in the MTL file.

Usage

1
ref_oli(x, sun.elev)

Arguments

x

A raster stack containing the first seven Landsat OLI bands.

sun.elev

Sun elevation angle in degrees.

Value

A raster layer object with the Top of atmosphere planetary reflectance.

References

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

Examples

1
2
3
4
5
library(raster)
path_files <- system.file("extdata/", package="nightmares")
x <- stack(list.files(path_files,".tif", full.names=TRUE))
ref_oli(x, 67.97)
ref_oli(x, sun.elev=67.97)

nightmares documentation built on Oct. 23, 2020, 7:15 p.m.