R Pipeline for Calculation of APSIM Parameters and Generating the XML File

Listed in Datasets

By Kai-Wei Yang1, Scott Chapman2, Mitchell Tuinstra1

1. Purdue University 2. University of Queensland

A pipeline to generate the XML parameter file for APSIM was developed in R. The files and R codes are reported in "R Pipeline for Calculation of APSIM Parameters and Generating the XML File".

Version 1.0 - published on 15 Dec 2020 doi:10.4231/69H7-CV75 - cite this Archived on 15 Jan 2021

Licensed under CC0 1.0 Universal

Description

##### Run RStudio as administrator #####

A pipeline for APSIM parameters calculation was developed to process the 2018 dataset.

The R script "Pipeline" is used to generate the XML parameter file. Other R scripts are functions created separately that can be called into the Pipeline when needed. R script "conf" defines the input files and output files. The working directory is set in Pipeline to read in the weather file and parameter file using the function "MetFile" and "ParameterParse". Thermal time is calculated using the function "ThermalTime" and accumulated thermal time from emergence is calculated using the function "LeafNumber".

After calculating the accumulated thermal time for different leaf numbers, leaf appearance rate (LAR) is determined using the Function "phyllochronDE". This function uses DE optimization, so slightly different results are obtained each time you run this function. The LAR output is used to calculate the dynamic Leaf Area Index (LAI) using the function "LeafSizes" based on the calculated leaf number using LAR and the input data such as leaf size distribution parameters, final tiller number, and observed final leaf number.

The next step is calculating k using the function "K" based on the calculated LAI and observed canopy cover data. With the calculated k and LAI, we can derive the dynamic canopy cover curve and estimate the radiation interception accumulation.

Radiation Use Efficiency (RUE) is calculated using the radiation interception accumulation and observed biomass.

After getting all of the parameters, the genotype file and XML file can be written through function "utils" and "GenotypeBuilder".   

The parameter file is "SorghumXMLOutput".

Cite this work

Researchers should cite this work as follows:

Tags

The Purdue University Research Repository (PURR) is a university core research facility provided by the Purdue University Libraries and the Office of the Executive Vice President for Research and Partnerships, with support from additional campus partners.