View source: R/water_LSEBclass.R
| plotAnchors | R Documentation |
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.
plotAnchors(x, image.SR, ...)
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(). |
No return value, called for its side effect (a plot).
Guillermo Federico Olmedo
Other LSEB objects related functions:
plot.waterLSEB(),
print.waterLSEB(),
summary.waterLSEB(),
writeRaster.waterLSEB
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.