| METRIC.EB | R Documentation |
Estimates the instantaneous land surface energy balance (Rn, G, H and LE) with the METRIC model (Allen et al., 2007). For Landsat 8 and 9 use Collection 2 Level-2 surface reflectance (image.SR) and, optionally, surface temperature (surf.temp), both from loadImageSR().
METRIC.EB(
image.DN,
image.SR,
WeatherStation,
MTL,
sat = "auto",
thermalband,
plain = TRUE,
DEM,
aoi,
G.method = "Tasumi",
alb.coeff = "auto",
LST.method = "auto",
LAI.method = "metric2010",
L = 0.1,
Zom.method = "short.crops",
anchors.method = "percentile",
anchors,
n = 1,
ETp.coef = 1.05,
Z.om.ws = 0.015,
verbose = FALSE,
extraParameters = vector(),
surf.temp,
Kt = 1,
anchors.control = NULL,
calcH.control = NULL,
plots = interactive(),
crop.height = NULL
)
image.DN |
Raw image in digital counts. Optional if image.SR is supplied. If supplied (L7/L8/L9) it is used for TOA reflectance (LAI and anchors) and for surface temperature; if missing, image.SR is used instead. Needed for LAI.method = "vineyard" and, without surf.temp, for MODIS (LST layer). |
image.SR |
Surface reflectance image with layers B, G, R, NIR, SWIR1 and SWIR2, e.g. from loadImageSR(). If supplied it is used directly; if missing it is computed from image.DN (L7 via calcSR(), MODIS uses image.DN). Required for L8 and L9. Layers are selected by name; a stack without the standard names is used by position, with a warning, and a stack with these names that lacks a needed layer is an error. |
WeatherStation |
waterWeatherStation object with the conditions at the satellite overpass (from read.WSdata() with the MTL file) |
MTL |
path to the Landsat metadata (*_MTL.txt) file. Required |
sat |
Satellite: "L7", "L8", "L9", "MODIS" or "auto" to detect it from the MTL file |
thermalband |
Thermal band in digital numbers (L7: band 6 low gain; L8/L9: band 10). If missing, image.DN$Thermal1 is used. Not needed if surf.temp is supplied |
plain |
Logical. If TRUE (default) the surface is assumed flat: DEM is replaced by a constant raster at the weather station elevation |
DEM |
SpatRaster with a digital elevation model (m) of the study area, on the same grid as the image. Not needed if plain = TRUE |
aoi |
Optional sf polygon or SpatVector. If given, the inputs are cropped to it |
G.method |
method used for the G estimation: "Tasumi" (Tasumi,
2003; default) or "Bastiaanssen" (Bastiaanssen, 2000). See |
alb.coeff |
coefficient to transform narrow to broad band albedo: "auto" (default; "Olmedo" for L8 and L9, "Tasumi" for L7 and MODIS), "Tasumi", "Olmedo" or "Liang". See Details. |
LST.method |
Land surface temperature when surf.temp is not
supplied: "auto" (default) uses the Level-2 surface temperature
(image.SR$Band_10 from loadImageSR()) for L8 and L9 when present (also
when image.DN is given), and the
METRIC equations (Allen et al., 2007, Eqs. 20-21) with image.DN otherwise;
"L2" requires Band_10; "METRIC" uses the thermal band of image.DN; "SW"
(split window, L8 and L9) is deprecated. For a per-pixel atmospheric
correction, compute Ts with surfaceTemperature(atmosphere = ) and pass it as
surf.temp. See |
LAI.method |
Method used to estimate LAI from spectral data. See Details. |
L |
L value for SAVI calculation. See |
Zom.method |
method selected to calculate momentum roughness length. Use "short.crops" for short crops methods from Allen et al (2007); "custom" for custom method also in Allen et al (2007); Or "Perrier" to use Perrier equation as in Santos et al (2012) and Pocas et al (2014). |
anchors.method |
method for the automatic selection of the anchor
pixels: "percentile" (default), "flexible", "best" or "random". See
|
anchors |
data.frame with X, Y (coordinates in the CRS of the image) and type ("hot" or "cold") columns, e.g. from calcAnchors(), or an sf POINT object with a type column. If missing, the anchors are selected automatically with calcAnchors(). They are checked by calcH(): type "hot" or "cold" (case ignored), inside the image, inputs not NA there, and the hot anchors at least 5 K warmer than the cold ones |
n |
number of pairs of anchor pixels to select (not used by anchors.method = "percentile") |
ETp.coef |
ratio of the ET of the cold pixels to the instantaneous alfalfa reference ET (ETr) at the satellite overpass. Allen et al. (2007) use 1.05, the default. It can be updated with anchors.method = "flexible", or for every method with calcH.control(cold.NDVI.rule = TRUE) (see Details) |
Z.om.ws |
momentum roughness length (m) of the weather station surface, used to extrapolate the wind speed to 200 m (Allen et al., 2007, Eq. 32). It is about 0.123 times the height of the vegetation around the station (Allen et al., 1998): 0.015 m (the default) for a standard station over clipped grass 0.12 m tall, 0.03 m for vegetation about 0.25 m tall |
verbose |
Logical. If TRUE, the anchors and other details are shown (as messages) |
extraParameters |
named numeric vector with extra parameters for the
non default methods, e.g. c(fLAI = 0.5, h = 1.8) for Zom.method =
"Perrier". See |
surf.temp |
Optional. Surface temperature raster in Kelvin, on the same grid as image.SR (e.g. image.SR$Band_10 from loadImageSR()). If supplied it is used as Ts and surfaceTemperature() is not called. Must be in Kelvin: values that look like Celsius, or more than 1% of the cells below 200 K (unmasked fill or clouds), stop; fewer cells below 200 K give a warning. |
Kt |
clearness (turbidity) coefficient of the atmosphere,
0 < Kt <= 1: 1 (default) for clean air, 0.5 for extremely turbid, dusty or
polluted air (Allen et al., 2007). See |
anchors.control |
parameters of the automatic selection of anchor
pixels: a list from |
calcH.control |
parameters of the iteration of H: a list from
|
plots |
Logical. If TRUE the anchors and the iteration of H are plotted (default: only in interactive sessions) |
crop.height |
Only for Zom.method = "Perrier": crop height in m, a number or a SpatRaster on the grid of the image (e.g. rasterized from a field map), instead of h in extraParameters. Cells with 0 or NA (bare soil, roads) get the minimum Z.om of 0.005 m. Default NULL. |
There are different models to convert narrowband data to broadband albedo.
With alb.coeff = "auto" (default) the coefficients are Olmedo for Landsat 8
and 9, Tasumi for Landsat 7 and MODIS.
You can choose alb.coeff = "Tasumi" to use Tasumi et al. (2008)
coefficients, calculated for Landsat 7; alb.coeff = "Liang" to use Liang
(2001) Landsat 7 coefficients or alb.coeff = "Olmedo" to use Olmedo
coefficients for Landsat 8 and 9. See albedo.
LAI.method can be "metric2010" (default), "metric", "MCB", "turner" or
"vineyard". See LAI. Without image.DN, the leaf area index is
computed and the anchor pixels are selected from the surface reflectance
(image.SR), although the "metric", "metric2010" and "MCB" LAI equations were
described for top-of-atmosphere reflectance.
The ET of the cold pixels is ETp.coef times the instantaneous alfalfa reference ET
(ETr, ASCE standardized equation) at the satellite overpass (see calcH),
the same reference used by ET24h() and dailyET(), as in Allen et al. (2007).
With anchors.method = "flexible", if the cold-pixel criteria had to be
relaxed and the mean NDVI of the cold pixels is below 0.8, ETp.coef is
replaced by Kc * ETo / ETr, where Kc = 2.11 * NDVI - 0.4989 is a crop
coefficient on a grass reference basis (Reyes-González et al., 2015) and ETo / ETr
is the ratio of the grass and alfalfa reference ET at the overpass. With
calcH.control(cold.NDVI.rule = TRUE), automatic cold anchors with mean NDVI
below 0.8 get min(ETp.coef, Kc * ETo / ETr) for every anchors.method,
instead of the "flexible" rule.
METRIC.EB() gives a message when the scene has clouds (CLOUD_COVER in the MTL file) and the image was not masked with cfmask(), and a warning when the weather station recorded more than 5 mm of rain in the 3 days before the image (the hot anchors may not be dry; see calcH.control(ETrF.hot = )).
Method arguments (sat, alb.coeff, LAI.method, LST.method and, where they apply, G.method, Zom.method and anchors.method) must be one of the listed names, exactly (case included): an unknown name stops before any computation, with a hint for typos.
An object of class waterLSEB, a list with the elements
below. A message summarises the calibration, and a warning is given when
ETrF is above 1.1 on more than 10% of the pixels (cold anchors too warm):
SpatRaster with layers NetRadiation, SoilHeat, SensibleHeat and LatentHeat (W/m2), and surfaceTemperature (K).
the weather station data used.
sf POINT object with the hot and cold anchor pixels.
list with a and b (dT = a * Ts_datum + b), converged,
iterations and u200 (wind speed at 200 m used, m/s), from calcH(); for
automatic anchors, the number of candidates and the relaxation of the
criteria, from calcAnchors(); and quality checks: Ts.hot and Ts.cold
(mean Ts of the anchors, K, referred to the station elevation with
plain = FALSE), dT.anchors (their difference), ETrF (5%, 50% and
95% quantiles and maximum of the reference ET fraction at the
overpass, before LE is set to 0), ETrF.above.1.1, ETrF.below.0 and
H.above.Rn.G (shares of the pixels). See summary.waterLSEB.
with plain = FALSE, SpatRaster with the surface model and
the solar angles, for the slope correction of daily ET (see
Crad and ET24h).
named character vector with the methods and parameters used.
extraParameters must be a named numeric vector with these names (unknown names stop). a and b are required for Zom.method = "custom", and fLAI and h for "Perrier":
for momentumRoughnessLength() when Zom.method = "Perrier": fLAI, h (numbers or SpatRasters);
for momentumRoughnessLength() when Zom.method = "custom": a, b;
deprecated: minDist, WSbuffer and deltaTemp for calcAnchors(); use anchors.control = anchors.control(...) instead.
Guillermo Federico Olmedo
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
Allen, R. G., Pereira, L. S., Raes, D., & Smith, M. (1998). Crop evapotranspiration: guidelines for computing crop water requirements. FAO Irrigation and Drainage Paper 56. FAO, Rome.
Reyes-González, A., Hay, C., Kjaersgaard, J., & Neale, C. M. U. (2015). Use of remote sensing to generate crop coefficient and estimate actual crop evapotranspiration. 2015 ASABE Annual International Meeting, New Orleans, Louisiana. https://doi.org/10.13031/aim.20152190105
Other METRIC model functions:
METRIC.G(),
METRIC.Rn(),
anchors.control(),
calcH.control()
### Data preparation: Landsat 8 Collection 2 Level-2 example crop
library(water)
scene_folder <- system.file("extdata", "L8_C2", package = "water")
image.SR <- loadImageSR(path = scene_folder)
image.SR <- cfmask(path = scene_folder, image = image.SR)
MTLfile <- list.files(scene_folder, pattern = "MTL.txt$", full.names = TRUE)
csvfile <- system.file("extdata", "INTA.csv", package = "water")
WeatherStation <- read.WSdata(WSdata = csvfile, datetime.format = "%Y/%m/%d %H:%M",
columns = c("date" = 1, "time" = 1, "radiation" = 5,
"wind" = 6, "RH" = 3, "temp" = 2, "rain" = 4),
lat = -33.00513, long = -68.86469, elev = 927, height = 2,
tz = "America/Argentina/Mendoza", MTL = MTLfile)
### LSEB with surface reflectance and surface temperature
Energy.Balance <- METRIC.EB(image.SR = image.SR, surf.temp = image.SR$Band_10,
WeatherStation = WeatherStation, MTL = MTLfile,
alb.coeff = "Olmedo", n = 5, Z.om.ws = 0.03)
### LSEB with "Perrier" method for Zom and extra parameters
Energy.Balance <- METRIC.EB(image.SR = image.SR, surf.temp = image.SR$Band_10,
WeatherStation = WeatherStation, MTL = MTLfile,
alb.coeff = "Olmedo", n = 5, Z.om.ws = 0.03,
Zom.method = "Perrier",
extraParameters = c(fLAI = 0.5, h = 1.8))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.