This function applies the scale factors provided by Hansen et al. to rescale the first and last TOA reflectance images from integer to floating point. The following scale factors are used: band 3, 508; band 4, 254; band 5, 363; band 7, 423. The output datatype is FLT4S.
scale_toar(x, ...)
RasterStack
of TOA reflectance values
the "first" or "last" image for a given aoi as a RasterStack
(see stack
option for extract_gfc
).
additional arguments as for writeRaster
, such as
filename
, or overwrite
.
extract_gfc