SILOImport: Import a SILO file

View source: R/SILO.R

SILOImportR Documentation

Import a SILO file

Description

Import a SILO file

Usage

SILOImport(station, path, startdate, enddate)

Arguments

station

Station number (e.g. "24001") 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


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