read_apsim_met {apsimx} | R Documentation |
Read in an APSIM met file
Description
Read into R a met file and return an object of class ‘met’
Usage
read_apsim_met(file, src.dir = ".", verbose = TRUE)
Arguments
file |
path to met file |
src.dir |
optional source directory |
verbose |
whether to suppress all messages and warnings |
Details
Read a met file into R
This function uses S3 classes and stores the additional information as attributes
I use a more strict format than APSIM and reading and writing will not
preserve all the details. For example, at this moment comments are lost through
the process of read and write unless they are added back in manually.
Also, empty lines are ignored so these will be lost as well in the read and write process.
Value
an object of class ‘met’ with attributes
Examples
extd.dir <- system.file("extdata", package = "apsimx")
ames.met <- read_apsim_met("Ames.met", src.dir = extd.dir)
ames.met
[Package apsimx version 2.7.7 Index]