// ETSOIL = ETSOIL*exp(-KDF *LAI);// exp(..) equals 1-SC, Soil without crop // <- This should not be scaled like this because the soil radiation should be scaled according to leaf area and the component not dependent on radiation should not be scaled
}else{
ETCROP=ETCROP*LAI;
//note that this split is afterwards. Theoretically we could split radiation energy, but the sum would not be 1 and the equation are not made for that.
doubleKDF,LAI;
extinctionCoef_->get(t,KDF);
leafAreaIndex_->get(t,LAI);
constdoublesplit=exp(-KDF*LAI);
ETSOIL*=(split);
ETCROP*=(1-split);
if(splitBySunStatus){
doubleLAIfrac;
splitLAI_->get(t,LAIfrac);
doublefrac=exp(-KDF*LAIfrac);
if(splitBySunStatus==1)frac=1-frac;
ETCROP*=LAIfrac/LAI;
}
switch(mode){
case1:
ET=ETSOIL;
@@ -197,6 +204,7 @@ void ETbaseclass::calculate(const Time &t, double& ET){
break;
default:
ET=ETCROP+ETSOIL;
//jp todo: is this correct? Where does the energy come from?