Description Usage Arguments Examples
Computes potential or water-limited production on freely draining soils without water table.
1 2 3 4 |
w |
WeatherObject. Object of class CropObject containing the climatic driving variables. See ?WeatherObject. |
crop |
CorpObject. Object of class CropObject containing the specific crop parameters. See ?CropObject. To specify a crop sequence (rotation) use "manager". |
soil |
SoilObject. Object of class SoilObject containing the soil parameters. See ?SoilObject. |
manager |
Optional ManagerObject. If present "startType" and "finishType will be ignored". |
waterLimited |
Logial. Wether to simulate potential production ("= FALSE", default), or water limited production ("= TRUE") |
startType |
Development stage at which the simulation is started. Either "sowing" or "emergence". Ignored if "manager" is specified. |
finishType |
Variable describing the conditionst triggering the end of the simulation. Can be either "maturity" -The model is terminated 7 days after maturity is reached - or an integer [1:365] -Maximum number of days for which the model is run. Ignored if "manager" is specified. |
activate.verndvs |
Logical. If TRUE, allows the use of variable "VERNDVS". A critical development stage (VERNDVS) is used to stop the effect of vernalisation when this DVS is reached. This is done to improve model stability in order to avoid that Anthesis is never reached due to a somewhat too high VERNSAT. Nevertheless, a warning is written to the log file, if this happens. |
activate.stopInSeven |
Logical. If TRUE, the simulation stops seven days after maturity is reached. If FALSE, the simulation terminates when maturity is reached. Ignored if "finishType" is numeric. |
cropDir |
Character vector containing the directory where crop files are stored as .yaml files. If not specified and a CropObject is not assigned to parameter "crop", crop files will be downloaded from "https://github.com/ajwdewit/WOFOST_crop_parameters". |
varReturn |
Character vector specifying which variables to output. Potentially, any of the variables produced inside the Wofost function can be returned. However the use of carReturn = NULL (default) is encouraged. By default returning variables described in "Returns". |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # Run Potential Production
cr <- dwn.crop()
outPP <- Wofost(crop = cr, w = randomWeather)
plot(outPP)
# Run Water-Limited Production
cr <- dwn.crop()
outFD <- Wofost(crop = cr, w = randomWeather, soil = randomSoil,
waterLimited = TRUE)
plot(outFD)
# Run crop rotation with ManagerObject
outMN <- Wofost(w = randomWeatherLong, manager = exampleManager)
plot(outMN)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.