Package: water 1.0

water: Actual Evapotranspiration with Energy Balance Models

Tools and functions to estimate actual evapotranspiration with surface energy balance models. Implements the METRIC model (Allen et al., 2007, <doi:10.1061/(ASCE)0733-9437(2007)133:4(380)>) 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).

Authors:Guillermo Federico Olmedo [cre, aut], 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]

water_1.0.tar.gz
water_1.0.zip(r-4.7-any)water_1.0.zip(r-4.6-any)water_1.0.zip(r-4.5-any)
water_1.0.tgz(r-4.6-any)water_1.0.tgz(r-4.5-any)
water_1.0.tar.gz(r-4.7-any)water_1.0.tar.gz(r-4.6-any)
water_1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
water/json (API)

# Install 'water' in R:
install.packages('water', repos = c('https://midraed.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/midraed/water/issues

Datasets:
  • DEM_Talca - SRTM DEM from east of Talca, Chile
  • L7_Talca - Landsat 7 scene from east of Talca, Chile

On CRAN:

Conda:

7.46 score 26 stars 61 scripts 44 downloads 42 exports 12 dependencies

Last updated from:3c9463037e. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK269
source / vignettesOK238
linux-releaseOK294
macos-releaseOK304
macos-oldrelOK355
windows-develOK281
windows-releaseOK189
windows-oldrelOK336
wasm-releaseOK116

Exports:albedoanchors.controlcalcAnchorscalcHcalcH.controlcalcRadiancecalcSRcalcTOArcfmaskcheckSRTMgridsCradcreateAoidailyETdailyETseriesET24hETperiodgetDataWSgetDEMhourlyETincLWradiationincSWradiationLAIloadImageloadImageSRMETRIC.EBMETRIC.GMETRIC.RnMETRICtopomomentumRoughnessLengthnetRadiationoutLWradiationplotAnchorsprepareSRTMdataread.WSdataread.WSdata2soilHeatFluxsolarAnglessurfaceTemperatureSWtransmissivitySWtrasmisivitywaterOptionswriteRaster

Dependencies:classclassIntDBIe1071KernSmoothproxyRcpps2sfterraunitswk

Landsat 8 and 9 data with METRIC and the water package
Getting Collection 2 Level-2 data | Loading the data | Weather station data | Energy balance | Daily evapotranspiration | Using Level-1 digital numbers

Last update: 2026-10-19
Started: 2017-03-29

Surface Energy Balance using METRIC model and water package: 1. simple procedure
Introduction | Base data preparation | Surface Energy Balance estimation | Daily Crop Evapotranspiration (ET_24) estimation | References

Last update: 2026-10-19
Started: 2015-10-03

Surface Energy Balance using METRIC model and water package: 2. advanced procedure
Introduction | Base data preparation | Net Radiation (R_n) estimation | Soil Heat Flux (G) estimation | Sensible Heat Flux (H) estimation | Daily Crop Evapotranspiration (ET_24) estimation | References

Last update: 2026-10-19
Started: 2015-10-03

Readme and manuals

Help Manual

Help pageTopics
Calculates Broadband Albedo from Landsat dataalbedo
Parameters for the selection of anchor pixelsanchors.control
Select anchor pixels for the H functioncalcAnchors
Iterative function to estimate H and R.ahcalcH
Parameters for the iteration of H and the aerodynamic resistancecalcH.control
Calculates at-sensor radiancecalcRadiance
Calculates surface reflectance for Landsat 7calcSR
Calculates top-of-atmosphere reflectancecalcTOAr
Mask clouds using a quality bandcfmask
Check needed SRTM grids from image extentcheckSRTMgrids
Correction of daily ET for sloping terrainCrad
Create aoi polygon from topleft and bottomright coordinatescreateAoi
Calculates daily reference ET as the sum of hourly Penman-Monteith valuesdailyET
Daily reference ET for each day of a weather station seriesdailyETseries
SRTM DEM from east of Talca, ChileDEM_Talca
Calculates daily ET from a surface energy balance and Weather StationET24h
Evapotranspiration of a period from the ETrF of several imagesETperiod
Export data.frame from waterWeatherStation ObjectgetDataWS
Download a digital elevation model for an imagegetDEM
Calculates hourly reference ET with the ASCE Penman-Monteith equationhourlyET
Calculates incoming long-wave radiationincLWradiation
Calculates Incoming Solar RadiationincSWradiation
Landsat 7 scene from east of Talca, ChileL7_Talca
Estimate LAI from Landsat DataLAI
Load Landsat data from a folderloadImage
Load Landsat 8/9 surface reflectance (and surface temperature) from a folderloadImageSR
Estimates Energy Balance using METRIC2010 ModelMETRIC.EB
Estimates Soil Heat Flux as in METRIC ModelMETRIC.G
Estimates Net Radiation as in METRIC ModelMETRIC.Rn
Calculates surface model used in METRICMETRICtopo
Calculates Momentum Roughness LengthmomentumRoughnessLength
Estimates net radiationnetRadiation
Calculates outgoing long-wave radiationoutLWradiation
Plot method for waterLSEB S3 classplot.waterLSEB
Plot method for waterWeatherStation S3 classplot.waterWeatherStation
Plot the anchor pixels of a METRIC energy balanceplotAnchors
Create a DEM mosaic from SRTM grids for the image extentprepareSRTMdata
Print method for waterLSEB S3 classprint.waterLSEB
Print method for waterWeatherStation S3 classprint.waterWeatherStation
Prepares weather station dataread.WSdata
Prepares weather station data from csv2 filesread.WSdata2
Estimates Soil Heat FluxsoilHeatFlux
Calculates solar anglessolarAngles
Summary of the calibration of a METRIC energy balancesummary.waterLSEB
Estimates Land Surface Temperature from Landsat DatasurfaceTemperature
Calculates broadband short-wave transmissivitySWtransmissivity SWtrasmisivity
Example files of the water packageapples.csv extdata INTA.csv water-extdata
Global options for water packagewaterOptions
writeRaster method for waterLSEB objectswriteRaster,waterLSEB,character-method writeRaster.waterLSEB