plotAnchors: Plot the anchor pixels of a METRIC energy balance

View source: R/water_LSEBclass.R

plotAnchorsR Documentation

Plot the anchor pixels of a METRIC energy balance

Description

Plots the hot (red) and cold (blue) anchor pixels of a METRIC.EB() result, and the weather station (black), over a false-colour composite of the image (NIR, R, G) or over the surface temperature.

Usage

plotAnchors(x, image.SR, ...)

Arguments

x

waterLSEB object, from METRIC.EB().

image.SR

Optional. Reflectance image with layers NIR, R and G, e.g. from loadImageSR(). If missing, the surface temperature is plotted.

...

further arguments passed to terra::plotRGB() or plot().

Value

No return value, called for its side effect (a plot).

Author(s)

Guillermo Federico Olmedo

See Also

Other LSEB objects related functions: plot.waterLSEB(), print.waterLSEB(), summary.waterLSEB(), writeRaster.waterLSEB

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]
Energy.Balance <- METRIC.EB(image.DN = image.DN, WeatherStation = WeatherStation, MTL = MTL,
                            sat = "L7", thermalband = image.DN$Thermal1, plain = TRUE)
plotAnchors(Energy.Balance)

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