SILOLoad: Import multiple SILO files

View source: R/SILO.R

SILOLoadR Documentation

Import multiple SILO files

Description

Import multiple SILO files

Usage

SILOLoad(sites, path = getwd(), startdate, enddate)

Arguments

sites

a vector of Station numbers (e.g. c("24001","24002","24003")) to import. The function expects the file to be called "24001.txt".

path

Location where the file is located. Use "/" or "\\" for folders. Defaults to getwd() if not specified.

startdate

Start date of data to load, in format "YYYY-MM-DD". Defaults to start of the file if not provided

enddate

End date of data to load, in format "YYYY-MM-DD". Defaults to end of the file if not provided

Value

a list of data from the file, with members:

tsd

the raw data as a daily zoo object

Site

the name of the site

Station

the station number

Lon

Longitude

Lat

Latitude

start

the first date with good quality rainfall data

end

the last date with good quality rainfall data

goodpct

the percentage of good quality coded rainfall data between start and end

Examples

## Not run: 
X<-SILOLoad(c("24001","24002","24003"),path="./SWTools/extdata")

## End(Not run)

matt-s-gibbs/swtools documentation built on Feb. 3, 2024, 3:43 p.m.