CWB {CropWaterBalance}R Documentation

Crop Water Balance Accounting

Description

Calculates several parameters of the crop water balance. It also suggests when to irrigate.

Usage

CWB(
  Rain,
  ET0,
  AWC,
  Drz,
  Kc = NULL,
  Irrig = NULL,
  MAD = NULL,
  InitialD = 0,
  start.date
)

Arguments

Rain

A vector, 1-column matrix or data.frame with daily rainfall totals in millimetres.

ET0

A vector, 1-column matrix or data.frame with daily reference evapotranspiration in millimetres.

AWC

A vector, 1-column matrix or data.frame with the available water capacity of the soil, that is: the amount of water between field capacity and permanent wilting point in millimetre of water per metres of soil, must be greater than or equal to 0.

Drz

A vector, 1-column matrix or data.frame defining the root zone depth in metres.

Kc

A vector, 1-column matrix or data.frame defining the crop coefficient. If NULL its values are assumed to be 1.

Irrig

A vector, 1-column matrix or data.frame with net irrigation amount infiltrated into the soil for the current day in millimetres.

MAD

A vector, 1-column matrix or data.frame defining the management allowed depletion. Varies between 0 and 1.

InitialD

Single number defining in millimetres, the initial soil water deficit. It is used to start the water balance accounting. Default value is 0, which assumes the root zone is at the field capacity.

start.date

Date at which the accounting should start. Formats: “YYYY-MM-DD”, “YYYY/MM/DD”.

Value

A data.frame of water balance accounting, including the soil water deficit.

Examples

Tavg <- DataForCWB[,2]
Tmax <- DataForCWB[,3]
Tmin <- DataForCWB[,4]
Rn <- DataForCWB[,6]
WS <- DataForCWB[,7]
RH <- DataForCWB[,8]
G <- DataForCWB[,9]
ET0 <- ET0_PM(Tavg, Tmax, Tmin, Rn, RH, WS, G, Alt = 700)
Rain <- DataForCWB[,10]
Drz <- DataForCWB[,11]
AWC <- DataForCWB[,12]
MAD <- DataForCWB[,13]
Kc <- DataForCWB[,14]
Irrig <- DataForCWB[,15]
CWB(Rain = Rain, ET0 = ET0, AWC = AWC, Drz = Drz,
    Kc = Kc, Irrig = Irrig, MAD = MAD, start.date = "2023-11-23")

[Package CropWaterBalance version 0.2.0 Index]