METRICtopo: Calculates surface model used in METRIC

View source: R/water_netRadiation.G.R

METRICtopoR Documentation

Calculates surface model used in METRIC

Description

The DEM is used to generate the surface representation of the image through aspect and slope maps. This procedure helps to avoid differences in the surface temperature (and finally evapotranspiration) caused by different incidence angles and/or elevations in mountainous areas. A constant DEM (plain = TRUE in METRIC.EB()) gives a flat surface everywhere, without an NA border.

Usage

METRICtopo(DEM)

Arguments

DEM

SpatRaster with a digital elevation model (m)

Value

SpatRaster with layers DEM (m), Slope and Aspect (radians; Aspect is shifted by -pi, as METRIC expects).

Author(s)

Guillermo Federico Olmedo

David Fonseca-Luengo

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

See Also

Other net radiation related functions: LAI(), SWtransmissivity(), albedo(), incLWradiation(), incSWradiation(), netRadiation(), outLWradiation(), soilHeatFlux(), solarAngles(), surfaceTemperature()

Examples

# a small window of the Landsat 7 example scene, to run quickly
MTL <- system.file("extdata", "L7.MTL.txt", package = "water")
WeatherStation <- read.WSdata(WSdata = system.file("extdata", "apples.csv", package = "water"),
  date.format = "%d/%m/%Y", lat = -35.42222, long = -71.38639, elev = 201, height = 2.2,
  cf = c(1, 0.2777778, 1), tz = "America/Santiago", MTL = MTL)
image.DN <- terra::rast(L7_Talca)[1:60, 1:80, drop = FALSE]
DEM <- terra::rast(DEM_Talca)[1:60, 1:80, drop = FALSE]
surface.model <- METRICtopo(DEM)
plot(surface.model)

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