write_apsim_met: Write an APSIM met file

View source: R/apsim_met.R

write_apsim_metR Documentation

Write an APSIM met file

Description

Write an object of class ‘met’ to disk

Usage

write_apsim_met(met, wrt.dir = NULL, filename = NULL)

Arguments

met

object of class ‘met’

wrt.dir

directory where the file will be written

filename

optional alternative filename

Details

Write a met file to disk. It takes an object of class ‘met’

at the moment the read-write cycle will strip comments

Value

does not create an R object, it only writes to disk

Examples


extd.dir <- system.file("extdata", package = "apsimx")
ames.met <- read_apsim_met("Ames.met", src.dir = extd.dir)
ames.met
tmp.dir <- tempdir()
write_apsim_met(ames.met, wrt.dir = tmp.dir, filename = "Ames.met")
## Here I write to a temporary directory, but change this to where
## you want to write to



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