This vignette presents the procedure to estimate the Land Surface Energy Balance (LSEB) using Landsat imagery and the water package. There are two versions of this vignette: a simple and an advanced one. In the first one the procedure is simpler and most of the parameters are selected automatically by the package. In the second approach the procedure is longer, because the user has more control over all input parameters and coefficients. Both vignettes follow the METRIC model methodology (Allen et al., 2007) to estimate the LSEB from Landsat images. The examples use Landsat 7 data; for Landsat 8 and 9 see the vignette “Landsat 8 and 9”.
Also, in the simple procedure we assume flat terrain, while in the
advanced procedure we use a digital elevation model (DEM). However, it
is possible to use a DEM in the simple procedure by setting the argument
plain to FALSE and providing a
DEM.
One of the most cited models to estimate land surface evapotranspiration from satellite-based energy balance is the Mapping EvapoTranspiration at high Resolution with Internalized Calibration (METRIC). This model was developed by Allen et al. (2007) based on the well-known SEBAL model (Bastiaanssen et al., 1998). It has been widely applied in many countries around the world to estimate crop evapotranspiration (ET) at field scale and over large areas using satellite images. The model has been applied to different vegetation and crop types, such as wheat, corn, soybean and alfalfa, with good results (3-20% error), and in recent years also over sparse woody canopies such as vineyards and olive orchards, in both flat and mountainous terrain. Thus, ET is estimated as a residual of the surface energy equation: \[\begin{equation} \label{eq:EB} LE = R_n - G - H \end{equation}\] where \(LE\) is the latent energy consumed by ET; \(R_n\) is the net radiation; \(G\) is the soil heat flux (sensible heat conducted into the ground); and \(H\) is the sensible heat flux convected to the air (all in \(W \cdot m^{-2}\)).
We estimate \(R_n\), \(G\) and \(H\) for each pixel of a Landsat scene, supported by one weather station. Then we estimate \(LE\) with the previous equation and, after that, the instantaneous evapotranspiration as:
\[\begin{equation} ET_{inst} = 3600 \cdot \frac{LE}{\lambda \rho_w} \end{equation}\]
where \(ET_{inst}\) is the instantaneous ET at the satellite overpass (\(mm \cdot h^{-1}\)); 3600 is the conversion factor from seconds to hours; \(\rho_w\) is the density of water = 1000 \(kg\cdot m^{-3}\); and \(\lambda\) is the latent heat of vaporization of water (\(J\cdot kg^{-1}\)).
Finally, the daily ET is computed pixel by pixel (30 x 30 m) as: \[\begin{equation} ET_{24} = \frac{ET_{inst}}{ET_r} ET_{r\_24} \label{eq:et24} \end{equation}\]
where \(ET_r\) is the hourly reference ET at the time of the satellite overpass and \(ET_{r\_24}\) is the daily reference ET.
To begin, load the water package:
To estimate crop evapotranspiration with METRIC, the water package and the simple procedure, we use three inputs:
With a full scene, crop an area of interest when loading the image,
loadImage(path, aoi = createAoi(...)) (see
?createAoi); the example image used here is already
cropped.
First, we load the weather station data with
read.WSdata(), which converts our .csv file into a
waterWeatherStation object. If we provide a Landsat
metadata (MTL) file, it also computes the weather conditions at the time
of the satellite overpass. Always set tz, the time zone of
the weather station clock, because the overpass time in the MTL file is
UTC.
csvfile <- system.file("extdata", "apples.csv", package="water")
MTLfile <- system.file("extdata", "L7.MTL.txt", package="water")
# the wind speed in apples.csv is in km/h: cf converts it to m/s
WeatherStation <- read.WSdata(WSdata = csvfile, date.format = "%d/%m/%Y",
lat=-35.42222, long= -71.38639, elev=201, height= 2.2,
columns=c("date" = 1, "time" = 2, "radiation" = 3,
"wind" = 4, "RH" = 6, "temp" = 7, "rain" = 8),
cf = c(1, 0.2777778, 1), MTL = MTLfile,
tz = "America/Santiago")We can visualize our weather station data with:
## Weather Station @ lat: -35.42 long: -71.39 elev: 201
## Summary:
## radiation wind RH ea
## Min. : 0.00 Min. :0.00000 Min. :17.39 Min. :0.7455
## 1st Qu.: 0.00 1st Qu.:0.05694 1st Qu.:40.65 1st Qu.:1.2288
## Median : 49.82 Median :0.44028 Median :64.83 Median :1.6472
## Mean :310.13 Mean :0.85295 Mean :60.78 Mean :1.5156
## 3rd Qu.:719.29 3rd Qu.:1.01528 3rd Qu.:82.34 3rd Qu.:1.7741
## Max. :998.29 Max. :4.01667 Max. :94.04 Max. :1.9672
## temp rain
## Min. :14.65 Min. :0
## 1st Qu.:17.74 1st Qu.:0
## Median :21.15 Median :0
## Mean :22.46 Mean :0
## 3rd Qu.:27.36 3rd Qu.:0
## Max. :32.53 Max. :0
##
## Conditions at satellite overpass:
## datetime radiation wind RH ea temp rain date
## 47 2013-02-15 11:30:40 752.92 0.31 68.86 1.89 22.59 0 2013-02-15
After that, we load the Landsat image. Usually we use
loadImage() to load a Landsat image from the
.TIF files downloaded from USGS EarthExplorer. In this
vignette we use the Landsat 7 example data included in
water, stored as a packed terra object, so we unpack it
with rast():
We use the function METRIC.EB() to estimate the land
surface energy balance. This function has many parameters to choose
among the different METRIC model equations. For example, you can
change:
When we run METRIC.EB(), the energy balance and the
surface temperature (Ts) are stored in the Energy.Balance
object (class waterLSEB). The function prints a one-line
summary of the calibration (anchor pixels, dT, wind speed used) and
warns about problems with the inputs. The hot and cold anchor pixels are
selected from percentiles of NDVI, albedo and surface temperature
(anchors.method = "percentile", see
?calcAnchors). With plots = TRUE it also plots
the anchors and the aerodynamic resistance during the iterative process;
the argument verbose controls how much information is
printed.
Energy.Balance <- METRIC.EB(image.DN = image.DN, plain=TRUE,
WeatherStation = WeatherStation,
MTL=MTLfile,
sat="L7", thermalband=image.DN$Thermal1)## The scene has 1% clouds (CLOUD_COVER in the MTL file) and the image was not masked with cfmask() (or its mark was lost, e.g. by selecting layers afterwards): clouds and their shadows can be taken as cold anchor pixels
## Calibration: anchors hot 313.5 K, cold 298.8 K (difference 14.7 K); ETrF > 1.1 on 5.5% of the pixels; u200 2 m/s; converged. See summary()
## Anchors: 2263 hot and 225 cold (from 11314 hot and 906 cold candidates)
## Ts of the anchors: hot 313.48 K, cold 298.78 K, difference 14.7 K
## dT = 0.2269 * Ts_datum + -65.32; u200 2 m/s; converged after 13 iterations
## ETrF at the overpass: 5% 0.27 median 0.83 95% 1.11 max 1.39
## Pixels with ETrF > 1.1: 5.5% ETrF < 0: 0.8% H > Rn - G: 0.8%
summary() lists the calibration so that you can check
it: the temperature at the anchor pixels, dT, the ETrF at the anchors
and the share of pixels with ETrF above 1.1. In this Landsat 7 example
about 5% of the pixels have ETrF above 1.1 (0.7% in the Landsat 8
vignette). Values slightly above 1.1 are common over well-watered crops;
a large share would point to a poor cold anchor.
Now we can plot the results using:
To estimate the daily crop evapotranspiration from the Landsat
scene we need the daily reference ET (ETr) at the weather station.
ET24h() calculates it for the day of the image (with
dailyET(), ASCE-EWRI 2005) and estimates the daily crop ET
pixel by pixel. It returns the layers ETinst,
ETrF, ET24 and HgtRnG:
## The record of 24:00 on 2013-02-15 (00:00 of the next day) is missing: the last hour (at night) is not included
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(4), 380-394. https://doi.org/10.1061/(ASCE)0733-9437(2007)133:4(380)
Bastiaanssen, W. G. M., Menenti, M., Feddes, R. A., & Holtslag, A. A. M. (1998). A remote sensing surface energy balance algorithm for land (SEBAL). 1. Formulation. Journal of Hydrology, 212-213, 198–212. https://doi.org/10.1016/S0022-1694(98)00253-4