exportADMS: Export a meteorological data frame in ADMS format

Description Usage Arguments Value Examples

View source: R/exportADMS.R

Description

Export a meteorological data frame in ADMS format

Usage

1
exportADMS(dat, out = "./ADMS_met.MET", interp = FALSE, maxgap = 2)

Arguments

dat

A data frame imported by importNOAA.

out

A file name for the ADMS file. The file is written to the working directory by default.

interp

Should interpolation of missing values be undertaken? If TRUE linear interpolation is carried out for gaps of up to and including maxgap.

maxgap

The maximum gap in hours that should be interpolated where there are missing data when interp = TRUE. Data with gaps more than maxgap are left as missing.

Value

Writes a text file to a location of the user's choosing.

Examples

1
2
3
4
5
6
## Not run: 
## import some data then export it
dat <- importNOAA(year = 2012)
exportADMS(dat, file = "~/temp/adms_met.MET")

## End(Not run)

davidcarslaw/worldmet documentation built on April 8, 2021, 5:50 a.m.