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).
See Also
calcAtmosCorr for conversions of scaled counts
to physical units including a scene-based atmospheric correction.
Examples
path <- system.file("extdata", package = "satellite")
files <- list.files(path, pattern = glob2rx("LC8*.tif"), full.names = TRUE)
sat <- satellite(files)
sat <- convSC2Rad(sat)
# If you use a raster layer, supply required meta information
bcde <- "B002n"
convSC2Rad(x = getSatDataLayer(sat, bcde),
mult = getSatRADM(sat, bcde),
add = getSatRADA(sat, bcde))