as_apsim_met {apsimx} | R Documentation |
Conversion from data frame to met object
Description
It makes minimum assumptions about the data so it is recommended to change defaults
Usage
as_apsim_met(
x,
filename = "noname.met",
site = "nosite",
latitude = 0,
longitude = 0,
tav = NA,
amp = NA,
colnames = c("year", "day", "radn", "maxt", "mint", "rain"),
units = c("()", "()", "(MJ/m2/day)", "(oC)", "(oC)", "(mm)"),
constants = NA,
comments = NA,
check = TRUE
)
Arguments
x |
object of class ‘data frame’ |
filename |
default ‘noname.met’ |
site |
default ‘nosite’ |
latitude |
default is zero (0) |
longitude |
default is zero (0) |
tav |
average temperature (calculated if not supplied) |
amp |
temperature amplitude (calculated if not supplied) |
colnames |
default are “year”, “day”, “radn”, “maxt”, “mint”, “rain” |
units |
default are “()”, “()”, “(MJ/m2/day)”, “(oC)”, “(oC)”, “(mm)” |
constants |
default is “NA” |
comments |
default is “NA” |
check |
whether to check the resulting met file using |
Details
Simple utility for converting a data frame to an object of class met
Value
it returns an object of class ‘met’.
[Package apsimx version 2.7.7 Index]