Description Usage Arguments Value References Examples
This function convert Digital Numbers to TOA Reflectance using the rescaling coefficients in the MTL file.
1 | ref_oli(x, sun.elev)
|
x |
A raster stack containing the first seven Landsat OLI bands. |
sun.elev |
Sun elevation angle in degrees. |
A raster layer object with the Top of atmosphere planetary reflectance.
https://www.usgs.gov/core-science-systems/nli/landsat/using-usgs-landsat-level-1-data-product.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.