ParseStationName: Find waterbody name from HYDAT station name

Description Usage Arguments Details Value Examples

Description

Given a NHS / Hydat hydrometric station name, attempts to isolate the name of the waterbody on which the station resides.

Usage

1
ParseStationName(station_name)

Arguments

station_name

character string; station name from Hydat station

Details

The returned value can be used to query the canadian geographic names database to obtain a KML of the feature. The function relies on the regularity of the station naming pattern and may give unexpected results in certain circumstances such as: (*) when the branch of the river is specified (*) when there are multiple instances of parenthetical text in the name (*) when english and french are both used in the name .

Value

character string corresponding to the hydrographic feature associated with the station (i.e. the name of a lake, river, stream etc)

a character string of the waterbody name

Examples

1
2
3
4
5
6
7
ParseStationName("PEARSON CREEK NEAR PROCTER")
ParseStationName("SCHIAVON CREEK BELOW HIGHEST DIVERSION NEAR THRUMS")
ParseStationName("MADAWASKA (RIVIER) EN AVAL DU BARRAGE TEMISCOUATA")

# some problem stations
ParseStationName("ROMAINE (RIVIERE) BELOW LAC LAVOIE")
ParseStationName("ARNAUD (PAYNE)(RIVIERE) EN AMONT DE LA RIVIERE HAMELIN-1" )

ECCC-MSC/Basin-Delineation documentation built on June 9, 2019, 7:29 p.m.