Nothing
#'@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)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.