Skip to contents

Merge BOM axf weather data

Usage

merge_axf_weather(
  File_compressed,
  File_axf = "IDQ60910.99123.axf",
  File_formatted = "NTamborine.csv",
  base_dir = getwd(),
  verbose = FALSE
)

Arguments

File_compressed

character, file path of compressed weather file "tgz"

File_axf

character, uncompressed axf BOM file containing 10 minute weather observations, default is North Tamborine.

File_formatted

character, file name and path to the formatted file for which to store formatted data and which previously stored data will be merged with.

base_dir

character file path giving the base directory for file_formatted

verbose

logical print extra messages to assist debugging

Value

data.table, of merged dataset

Details

This function takes new BOM axf files which hold 72 hours of weather observations in 10-30 minute intervals and an old formatted weather data file, row binds them, then saves them back as the File_formatted csv. File_axf uncompressed axf BOM file containing 10 minute weather observations, default is North Tamborine. File_formatted previously read axf files with removed headers and saved as a csv file base_dir weather directory which contains folders where weather data are saved, and where formatted data is saved. data_dir Directory with compressed and uncompressed data