| Title: | Crop-Specific Functions and Parameters for APSIM Next Generation Wheat Model |
|---|---|
| Description: | Provides wheat-specific functions, processes and parameter sets used by wheat model in the Agricultural Production Systems sIMulator ('APSIM') Next Generation. Includes tools for crop process calculations, parameter management and customisation, enabling users to explore, modify and apply wheat model components. |
| Authors: | Bangyou Zheng [aut, cre] |
| Maintainer: | Bangyou Zheng <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.1.0 |
| Built: | 2026-09-24 10:34:28 UTC |
| Source: | https://github.com/byzheng/rapsimng.wheat |
Calculate thermal time using cardinal temperatures
thermal_time( mint, maxt, x_temp = wheat$get("phenology.thermal_time.x"), y_temp = wheat$get("phenology.thermal_time.y"), method = wheat$get("phenology.thermal_time.method") )thermal_time( mint, maxt, x_temp = wheat$get("phenology.thermal_time.x"), y_temp = wheat$get("phenology.thermal_time.y"), method = wheat$get("phenology.thermal_time.method") )
mint |
The minimum temperature |
maxt |
The maximum temperature |
x_temp |
The cardinal temperatures using to calculate thermal time. The default values are c(0, 26, 37) defined in wheat$get("phenology.thermal_time.x"). |
y_temp |
The effective thermal time at the corresponding cardinal temperatures. The default values are c(0, 26, 0) defined in wheat$get("phenology.thermal_time.y"). |
method |
The method to calculate thermal time. The default method is "3hr", which uses the three hour temperature method. The other option is "default", which uses the default method ( maxt + mint ) / 2 - base. |
The daily thermal time is calculated by interpolating the effective thermal time at three hour intervals between the daily minimum and maximum temperatures, and then averaging these values to get the daily thermal time. For more information about the wheat phenology model, see the APSIM Next Generation Wheat Documentation.
The thermal time.
mint <- c(0, 10) maxt <- c(30, 40) thermal_time(mint, maxt)mint <- c(0, 10) maxt <- c(30, 40) thermal_time(mint, maxt)
An options manager for configuring wheat model parameters. This object provides methods to get and set wheat related parameters.
wheatwheat
An option manager object for configuring wheat model parameters.
Cardinal temperatures for thermal time calculation. Default: c(0, 26, 37)
Effective thermal time at corresponding cardinal temperatures. Default: c(0, 26, 0)
Method used for thermal time calculation. Supported values: "3hr" and "HourlySinPpAdjusted". Default: "3hr"
Retrieve the value of an option by its key (e.g., "phenology.thermal_time.x")
Set the value of an option by its key
Reset all options to their default values
# Get default thermal time cardinal temperatures wheat$get("phenology.thermal_time.x") # Set custom values wheat$set("phenology.thermal_time.x" = c(0, 26, 37)) wheat$set("phenology.thermal_time.y" = c(0, 26, 0)) # Reset to defaults wheat$reset()# Get default thermal time cardinal temperatures wheat$get("phenology.thermal_time.x") # Set custom values wheat$set("phenology.thermal_time.x" = c(0, 26, 37)) wheat$set("phenology.thermal_time.y" = c(0, 26, 0)) # Reset to defaults wheat$reset()