General Utility Functions for the 'Agricultural Production Systems Simulator'

Contains functions designed to facilitate the loading and transformation of 'Agricultural Production Systems Simulator' output files <>. Input meteorological data (also known as "weather" or "met") files can also be generated from user supplied data.

A package containing general purpose utility functions for loading and manipulating APSIM output and met files.

Release Notes

  • loadApsim has new option: skipEmpty, which will skip output files with no data.
  • prepareMet now writes dates in AU format to handle Apsim 7.9 which can now read dates in addition to year/day


  • loadMet now allows met files to be streamed. Just pass it the complete url.
  • Updated loadMet documentation to point to metFile object description.


  • NEW: Added command to load APSIM Next Generation data files (GetApsimNGTable)
  • Optimised loadMet function; now loads much faster.
  • loadMet function now correctly reads constants in met files.


  • Multi-year met data that ends with an incomplete year is now processed correctly.
  • loadApsim now uses the current working directory if no directory is given.
  • Fixed bug where constants were including a leading space.
  • A vector of units is now required for prepareMet.


  • loadMet will now read existing constants.
  • metFile class has had a slot for constants added. Constants are a character vector of the format: variable=value.
  • prepareMet now correctly handles R Date formatted dates.


  • Fix for reading simulator output processed on a Condor cluster.


  • Initial Release.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.9.2 by Justin Fainges, 2 years ago

Browse source code at

Authors: Justin Fainges

Documentation:   PDF Manual  

GPL-3 license

Imports data.table, lubridate, stringr, plyr, sirad, methods, utils, RSQLite

Imported by nasapower.

See at CRAN