ETperiod: Evapotranspiration of a period from the ETrF of several...

View source: R/water_ETperiod.R

ETperiodR Documentation

Evapotranspiration of a period from the ETrF of several images

Description

Seasonal or monthly ET from the reference ET fraction (ETrF) of several satellite dates, as in Allen et al. (2007), Eqs. 58 and 59: ETrF is interpolated for each day of the period, multiplied by the daily reference ET of the day and added up.

Usage

ETperiod(
  ETrF,
  dates,
  ETr.daily,
  period = NULL,
  C.rad = 1,
  method = c("linear", "spline"),
  fill.gaps = FALSE
)

Arguments

ETrF

SpatRaster with one layer per image date (the ETrF layer of ET24h of each image, on the same grid)

dates

Dates of the images (Date or "YYYY-MM-DD" text), one for each layer of ETrF

ETr.daily

Daily reference ET (mm/day) of every day of the period: a data.frame with the columns date and ET, as returned by dailyETseries

period

Start and end of the period (two dates, both included). Default: from the first to the last image date. Days before the first and after the last valid image of a pixel use its closest ETrF

C.rad

Correction for slope and aspect (Eq. 55): a number or a SpatRaster, e.g. the C.rad layer of ET24h; 1 on flat terrain. Only one value can be used for the period.

method

"linear" (default) or "spline" (natural spline, for pixels with 3 or more valid dates) interpolation of ETrF between dates

fill.gaps

If TRUE, days without ETr.daily (NA or missing) are filled by linear interpolation. If FALSE (default) they are an error.

Details

The ETrF of a pixel that is masked (NA, e.g. clouds) in one date is interpolated between the closest valid dates, and the number of valid dates is returned in layer n.valid. A pixel without any valid date is NA. ETrF is used as it comes from ET24h(): values below 0 or above 1.1 are not clipped; mask or clip them before if needed. A pixel with one valid date uses that ETrF for the whole period (n.valid = 1). The layers of ETrF must be on the same grid; their order does not matter (they are sorted by date). ET.period and ETrF.period both include C.rad.

Value

SpatRaster with layers ET.period (mm in the period), ETrF.period (Eq. 59, ET.period divided by the reference ET of the period, so it includes C.rad) and n.valid. On large scenes it can take minutes: the interpolation is done pixel by pixel

References

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

See Also

Other ET functions: Crad(), ET24h(), dailyET(), dailyETseries(), hourlyET()

Examples

# the ETrF of two images (a toy raster; in practice c(ET24h(EB1)$ETrF, ET24h(EB2)$ETrF))
f <- terra::rast(nrows = 2, ncols = 2, nlyrs = 2, vals = c(0.2, 0.4, 0.6, NA, 0.8, 0.6, 0.3, 0.5))
etr <- data.frame(date = as.Date("2013-02-01") + 0:9, ET = 6)
ETperiod(f, dates = c("2013-02-02", "2013-02-08"), ETr.daily = etr)
# with a weather station, dailyETseries() gives the daily reference ET:
# etr <- dailyETseries(WeatherStation)

water documentation built on Nov. 25, 2026, 5:08 p.m.