Learn R Programming

satellite (version 0.1.0)

convRad2BT: Convert a band's scaled counts to brightness temperature

Description

Convert a band's radiance values to brightness temperature without any kind of atmospheric correction etc.

Usage

## S3 method for class 'Satellite':
convRad2BT(x)

## S3 method for class 'RasterStack': convRad2BT(x, k1, k2)

## S3 method for class 'RasterLayer': convRad2BT(x, k1, k2)

Arguments

x
An object of class Satellite, raster::RasterStack or raster::RasterLayer providing radiance values.
k1,k2
Temperature correction parameters.

Value

  • If x is a Satellite object, a Satellite object with added converted layers; if x is a raster::Raster* object, a raster::Raster* object with converted layer(s).

Details

The conversion functions are taken from USGS' Landsat 8 manual which is available online at http://landsat.usgs.gov/Landsat8_Using_Product.php.

See Also

calcAtmosCorr for converions of scaled counts to physical units including a scene-based atmospheric correction.

Examples

Run this code
path <- system.file("extdata", package = "satellite")
files <- list.files(path, pattern = glob2rx("LC8*.tif"), full.names = TRUE)
sat <- satellite(files)
sat <- convRad2BT(sat)

Run the code above in your browser using DataLab