Actual Evapotranspiration with Energy Balance Models

Estimates actual evapotranspiration with surface energy balance models. Implements the METRIC model (Allen et al. (2007) ) for Landsat 7, 8 and 9 images, including Collection 2 Level-2 surface reflectance and surface temperature products, together with weather station data processing and reference evapotranspiration (ASCE Penman-Monteith).


water

Actual Evapotranspiration with Energy Balance Models. Repository for the development version of the water package.

Install the released version from CRAN:

install.packages("water")

or the development version from GitHub:

install.packages("remotes")
remotes::install_github("midraed/water", build_vignettes = TRUE)

Building the vignettes needs pandoc (RStudio includes it). Without pandoc use remotes::install_github("midraed/water"); the vignettes are then not installed (they are in the CRAN version), but you can read their sources on GitHub: Landsat 8 and 9, METRIC simple and METRIC advanced.

On Windows, if the installation fails with "cannot open file" errors from a dependency, the path of your R library is probably too long: install into a short folder, e.g. remotes::install_github("midraed/water", lib = "C:/Rlib") (create it first and add it with .libPaths("C:/Rlib")).

Quick start (Landsat 8 and 9, Collection 2 Level-2)

library(water)
scene <- system.file("extdata", "L8_C2", package = "water")
MTL <- list.files(scene, pattern = "MTL.txt$", full.names = TRUE)
image.SR <- cfmask(path = scene, image = loadImageSR(scene))   # reflectance, Ts, clouds masked
WS <- read.WSdata(system.file("extdata", "INTA.csv", package = "water"),
                  datetime.format = "%Y/%m/%d %H:%M",
                  columns = c(datetime = 1, radiation = 5, wind = 6, RH = 3, temp = 2, rain = 4),
                  lat = -33.00513, long = -68.86469, elev = 927, height = 2,
                  tz = "America/Argentina/Mendoza", MTL = MTL)
EB <- METRIC.EB(image.SR = image.SR, WeatherStation = WS, MTL = MTL)
summary(EB)      # calibration checks
ET <- ET24h(EB)  # ETinst, ETrF, ET24 (mm/day)

You will see a warning if the radiation of the station at the overpass differs much from the clear-sky value (see the vignette). Start with the vignette "Landsat 8 and 9": vignette("Landsat8", package = "water"). Two guides show how to search and download Level-2 scenes: with the USGS M2M API and with Microsoft Planetary Computer.

Overview

water implements the METRIC surface energy balance model (Allen et al., 2007) for Landsat 7, 8 and 9 images, including Landsat 8/9 Collection 2 Level-2 surface reflectance and surface temperature products, together with weather station data processing and reference evapotranspiration (ASCE Penman-Monteith). It uses the terra and sf packages.

The vignettes show the workflow (vignette(package = "water")):

  • "Landsat 8 and 9": Collection 2 Level-2 example data. Start here.
  • "METRIC simple" and "METRIC advanced": step by step, with Landsat 7 example data (Level-1 digital numbers).

Authors: Guillermo Federico Olmedo, Samuel Ortega-Farías, David Fonseca-Luengo, Daniel de la Fuente-Sáiz and Fernando Fuentes-Peñailillo. Contributors: María Victoria Munafó and Francisco Martín Corvalán.

Maintainer: Guillermo Federico Olmedo [email protected]

License: GPL (>= 2)

Contributing

Contributions are accepted by fork and pull-request

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("water")

1.0 by Guillermo Federico Olmedo, 12 hours ago


https://midraed.github.io/water/


Report a bug at https://github.com/midraed/water/issues/


Browse source code at https://github.com/cran/water


Authors: Guillermo Federico Olmedo [cre, aut] (ORCID: , Samuel Ortega-Farías [aut] , David Fonseca-Luengo [aut] , Daniel de la Fuente-Sáiz [aut] , Fernando Fuentes-Peñailillo [aut] , María Victoria Munafó [ctb] , Francisco Martín Corvalán [ctb]


Documentation:   PDF Manual  


GPL (>= 2) license


Imports sf, methods, grDevices, graphics, stats, utils

Depends on terra

Suggests knitr, rmarkdown


See at CRAN