constant | cDroughtCriticalPeriod | Time span in days after sowing drought days are considered for possible resowing | INT | d | - | - | 30 |
constant | cMaximumDroughtDays | If number of drought days is bigger than MaximumDroughtDays, then resowing is required. | INT | d | - | - | 7 |
constant | cMinimumPrecipitationSum | Minimum amount of precipitation that has been acumulated during last cPrecipitationDays | DOUBLE | mm | - | - | 30.0 |
constant | cPrecipitationDays | Number of days where precipitation is acumulated to decide about sowing | INT | d | - | - | 5 |
constant | cPrecipitationThreshold | If daily precipitation is below this threshold, the day is counted as a drought day | DOUBLE | mm | 0.0 | 1.0 | 0.1 |
constant | cSowingWindowDays | Time span in days after start where (re)sowing is possible | INT | d | - | - | 60 |
input | iDoReset | Boolean that triggers resetting of all counts (except TotalDays) and states | BOOLEAN | 1 | - | - | false |
input | iPrecipitation | Daily precipitation | DOUBLE | mm | - | - | 0.0 |
input | iStartSowingPhase | Boolean that triggers the start of sowing period. | BOOLEAN | 1 | - | - | false |
input | iTRANRF | Daily stress factor due to transpiration reduction | DOUBLE | 1 | - | - | 1.0 |
out | DaysSinceSowing | Days since last DoSow was triggered | INT | d | - | - | 0 |
out | DaysSinceStart | Days since start of sowing period phase | INT | d | - | - | 0 |
out | DoSow | Is set to true, when sowing is required and possible. | BOOLEAN | 1 | - | - | false |
out | DroughtDays | Number of days where TRANRF is below the threshold | INT | d | - | - | 0 |
out | HasSown | Is true, when sowing has been triggered. | BOOLEAN | 1 | - | - | false |
out | HasStarted | Is set to true, when start of sowing period is triggered. | BOOLEAN | 1 | - | - | false |
out | NeedsReSowing | Is true, when number of drought days exceeds the maximum and simulation is still in the sowing window. | BOOLEAN | 1 | - | - | false |
out | PreviousDaysPrecipitation | Array that holds the precipitation of the last Precipitation days. Values are cyclically updated. | DOUBLEARRAY | mm | - | - | - |
out | PreviousDaysPrecipitationSum | Sum of the previous days precipitation | DOUBLE | mm | - | - | 0.0 |
out | SowingAttempts | Number of sowing attempts | INT | 1 | - | - | 0 |
out | SowingDOY | DOY when DoSow occurs | INT | 1 | - | - | 0 |
out | TotalDays | Counts total running days. Used to cyclically populate PreviousDaysPrecipitation with the last precipitation values. | INT | d | - | - | 0 |