In fact, it performs water balance in a day
cal_Dei_for_DualKc(Dei_start, P, I, E, Dep, TEW)
A value for the depletion in the topsoil layer at the end of the day
Depletion in the topsoil layer
Precipitation
Irrigation
Evaporation on day i, mm
Deep percolation loss from the topsoil layer on day i if soil water content exceeds field capacity, mm
Maximum cumulative depth of evaporation (depletion) from the topsoil layer