Learn R Programming

nightmares (version 0.0.2)

thermal_oli: Top of Atmosphere Brightness Temperature

Description

This function Convert Digital Numbers to Top of Atmosphere Brightness Temperature.

Usage

thermal_oli(x, band = c(10, 11), units = c(Celsius, Kelvin, Fahrenheit))

Arguments

x

A raster containing the Landsat OLI band 10 or 11.

band

Specify if your raster is the Landsat OLI band 10 or 11

units

specify if your desired units are Celsius, Kelvin, or Fahrenheit degrees

Value

A raster layer object with the Top of atmosphere brightness temperature.

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)
B10 <- raster(system.file("extdata/3047_20190517_B10.tif", package="nightmares"))
B11 <- raster(system.file("extdata/3047_20190517_B11.tif", package="nightmares"))
thermal_oli(B10, 10, "Celsius")
thermal_oli(B11, 11, "Fahrenheit")

# }

Run the code above in your browser using DataLab