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 |
ET0 |
A |
AWC |
A |
Drz |
A |
Kc |
A |
Irrig |
A |
MAD |
A |
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")