Writes a text file in the ADMS format to a location of the user's choosing,
with optional interpolation of missing values. At present this function only
works with data from import_isd_hourly(); it will later be expanded to work
with import_ghcn_hourly() also.
Arguments
- x
A data frame imported by
import_isd_hourly().- file
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
TRUElinear interpolation is carried out for gaps of up to and includingmax_gap.- max_gap
The maximum gap in hours that should be interpolated where there are missing data when
interp = TRUE.Data with gaps more thanmax_gapare left as missing.
See also
Other Met writing functions:
write_met()
Examples
if (FALSE) { # \dontrun{
# import some data then export it
dat <- import_isd_hourly(year = 2012)
write_adms(dat, file = "~/adms_met.MET")
} # }
