Learn R Programming

SWTools (version 1.1.0)

SILOWriteforSource: Write a SILO time series to a csv file in the format expected by eWater Source

Description

Write a SILO time series to a csv file in the format expected by eWater Source

Usage

SILOWriteforSource(SILO, col, filename, scalefactor = 1)

Value

Nothing to the R environment. SILO data is written to "filename".

Arguments

SILO

a list of sites with SILO data, as created by SILOLoad()

col

Name of a column in a silo file to write out, e.g. Rain

filename

file to write to.

scalefactor

factor to scale the data by. Defaults to 1. Useful for Pan evap or rainfall scaling. Could also be a vector, with a value for each station in SILO

Examples

Run this code
 
if (FALSE) {
X<-SILOLoad(c("24001","24002","24003"),path="./SWTools/extdata")
SILOWriteforSource(X,"Rain",tempfile("Rainfall",fileext=".csv"))
}

Run the code above in your browser using DataLab