water (version 0.5)

calcTOAr: Calculates Top of atmosphere reflectance

Description

This function calculates the TOA (Top Of Atmosphere) reflectance considering only the image metadata.

Usage

calcTOAr(image.DN, sat = "auto", ESPA = FALSE, aoi, incidence.rel, MTL)

Arguments

image.DN
raw image in digital numbers
sat
"L7" for Landsat 7, "L8" for Landsat 8 or "auto" to guess from filenames
ESPA
Logical. If TRUE will look for espa.usgs.gov related products on working folder
aoi
area of interest to crop images, if waterOptions("autoAoi") == TRUE will look for any object called aoi on .GlobalEnv
incidence.rel
solar incidence angle, considering the relief
MTL
Landsat Metadata File

References

R. G. Allen, M. Tasumi, and R. Trezza, "Satellite-based energy balance for mapping evapotranspiration with internalized calibration (METRIC) - Model" Journal of Irrigation and Drainage Engineering, vol. 133, p. 380, 2007

LPSO. (2004). Landsat 7 science data users handbook, Landsat Project Science Office, NASA Goddard Space Flight Center, Greenbelt, Md., (http://landsathandbook.gsfc.nasa.gov/) (Feb. 5, 2007)