read_AEP_csv: Reads csv file produced by Alberta Environment and Parks

Description Usage Arguments Value Author(s) See Also Examples

View source: R/read_AEP_csv.R

Description

Reads csv file produced by Alberta Environment and Parks

Usage

1
read_AEP_csv(AEPfile = "", timezone = "", values_only = TRUE)

Arguments

AEPfile

Required. Name of AEP file to be read in.

timezone

Optional. The name of the timezone of the data as a character string. If the timezone is not specified, your default value (i.e. your time zone) will be used. This should be the timezone of your data, but omitting daylight savings time. Note that the timezone code is specific to your OS. To avoid problems, you should use a timezone without daylight savings time. Under Windows or OSX, you can use etc/GMT+6 or etc/GMT+7 for Central Standard and Mountain Standard time. Under Linux you should use Etc/GMT+6 or Etc/GMT+7.

values_only

optional. If TRUE (the default), only the time series values will be returned. If FALSE, the meta data will also be returned.

Value

Returns the time series data as a data frame, with the POSIXct variable datetime as the time stamp. Note that the time series interval may be irregular. If values_only = TRUE, then the returned value will be a list conisting of the time series data frame and the header meta data as a list, with the variables values and header_meta, respectively. The meta data are:

variable

type

station_site

character

station_name

character

station_number

character

parameter_name

character

parameter_type

character

parameter_type_name

character

time_series_name

character

time_series_unit

character

longitude

numeric

latitude

numeric

Author(s)

Kevin Shook

See Also

read_MESH_OutputTimeseries_csv

Examples

1
2
3
4
5
6
7
8
## Not run: 
precip <-  read_AEP_csv("05CA805 Skoki Lodge - PC - C.Merged - All.csv", 
values_only = FALSE)
# show values
head(precip$values)
# show latitude
precip$header_meta$latitude
## End(Not run)

CentreForHydrology/MESHr documentation built on Jan. 11, 2021, 8:34 p.m.