Learn R Programming

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

Release Notes

0.9.3

  • TAV and AMP calculations have been incorrect (swapped)

0.9.2

  • 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

0.9.1

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

0.9.0

  • 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.

0.8.3

  • 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.

0.8.2

  • 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.

0.8.1

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

0.8.0

  • Initial Release.

Copy Link

Version

Install

install.packages('APSIM')

Monthly Downloads

99

Version

0.9.3

License

GPL-3

Maintainer

Last Published

May 22nd, 2019

Functions in APSIM (0.9.3)

writeMetFile

Write a metFile object to disk in APSIM met format.
metFile-class

An S4 class used to store all information about a met file.
insertTavAmp

Inserts Tav and Amp into a met object.
prepareMet

Convert raw data to the correct APSIM met format.
GetApsimNGTable

Read APSIM Next Generation output files.
met

A complete metFile example using data from Dalby, Queensland, Australia.
loadMet

Read an APSIM formatted met file.
kingsData

Weather data from Kingsthorpe, Queensland, Australia.
checkCont

Checks a single year for continuity. Called from prepareMet.
apsim

APSIM: A general utility package for the Agricultural Production Systems Simulator
getToken

Extract a token from a vector of strings.
checkMet

Check for met file errors.
loadApsim

Read APSIM .out files.