as_apsim_met: Conversion from data frame to met object

View source: R/apsim_met.R

as_apsim_metR 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 check_apsim_met. default is TRUE.

Details

Simple utility for converting a data frame to an object of class met

Value

it returns an object of class ‘met’.


apsimx documentation built on Sept. 11, 2024, 5:42 p.m.