ch_get_wscstation: Reads station information from a data file produced by ECDE

View source: R/ch_get_wscstation.R

ch_get_wscstationR Documentation

Reads station information from a data file produced by ECDE

Description

Retrieves station information for an individual Water Survey of Canada site, based on stationID; adds a text string at position 21 that combines key elements for a title.

Usage

ch_get_wscstation(stnID, metadata = NULL)

Arguments

stnID

A Water Survey of Canada station number

metadata

a data frame of station information from ECDataExplorer. The data frame HYDAT_list is supplied with this package.

Value

Returns a line from a data frame with 21 variables

Station

StationID

StationName

Station Name

HYDStatus

Active or Discontinued

Prov

Province

Latitude
Longitude
DrainageArea

Area in km^2

Years

# of years with data

From

Start Year

To

End Year

Reg.

Regulated or natural

Flow

if TRUE/Yes flow data is available

Level

if TRUE/Yes water level data is available

Sed

if TRUE/Yes sediment data is available

OperSched

Current operation schedule- Continuous or Seasonal

RealTime

if TRUE/Yes real itme data exists

RHBN

if TRUE/Yes is in the reference hydrologic basin network

Region

WSC Region

Datum

Datum used

Operator

Agency responsible for collecting data

Station_lname

Added field combining StationID, StationName, Province and if station is RHBN an * is added

Author(s)

Paul Whitfield

Examples

data("HYDAT_list")
s_info <- ch_get_wscstation("05BB001", metadata = HYDAT_list)
title <- s_info[21]
print(title)


CSHS-hydRology/CSHShydRology documentation built on Aug. 18, 2022, 4:44 p.m.