R/calculate_plant.R

Defines functions cal_WaterStressCoef

Documented in cal_WaterStressCoef

#'@title Calculating water stress coefficient
#'@param Dr root zone depletion(mm).
#'@param TAW total available soil water in the root zone(mm).
#'@param p fraction of TAW that a crop can extract from the root zone without
#'    suffering water stress.
#'@export
#'@return A value for water stress coefficient which is a dimensionless transpiration reduction factor
#'    dependent on available soil water

cal_WaterStressCoef<-function(Dr,TAW,p){
  RAW<-p*TAW
  if(Dr>RAW){
    WaterStressCoef<-(TAW-Dr)/((1-p)*TAW)
  }else{
    WaterStressCoef<-1
  }
  return(WaterStressCoef)
}

Try the simET package in your browser

Any scripts or data that you put into this service are public.

simET documentation built on Aug. 19, 2023, 5:09 p.m.