Operation
The APSIM report module creates a columnar output file to record data from an APSIM simulation. Output files contain data in columns with headers specifying variable names and units. There is an option to create the files in CSV (comma delimited) format, for direct spreadsheet application.
Parameter file settings
The APSIM report module can report the state of any variable available to the system, from any module. The user can specify various reporting parameters and the method for doing this is similar to the initialisation of parameters in any other module.
Instantiation of the Report module
Like all other APSIM modules the report module can be instantiated to allow any number of output files to be created. By specifying an instantiated report module in the control file, you are able to create more output files and populate them with output from your simulation. An example “con” file may appear as;
apsim.sample_report
Module=clock report.parsample%apsuite\apsim\clock\clock.inistandard
Module=report (report1) report.par sample
Module=report (report2) report.par sample
Module=met DALBY.MET weather
Module=manager report.par sample
This can be referenced in the “report.par” file as;
sample.report1.parameters
title = Report Instantiation Sample Simulation file 1
outputfile = report1.out
variable = clock.day
variable = clock.year
variable = met.rain
sample.report2.parameters
title = Report Instantiation Sample Simulation file 2
outputfile = report2.out
variable = clock.day
variable = clock.year
variable = wheat.yield
sample.manager.end_of_day
if days_since_last_report = 5 then
report1 do_output
report2 do_output
endif