upstream_stations_from_delineation: Find Upstream Stations

Description Usage Arguments Value

Description

Finds all monitoring stations within a target basin

Usage

1
2
upstream_stations_from_delineation(basin, stations, target_station,
  station_number = "station_number")

Arguments

basin

Either a spatialpolygonsdataframe of the target basin, or the path to a shapefile of the target basin. If a path is provided, the function will attempt to use the sf package to hasten the shapefile read

stations

SpatialPointsDataFrame of all hydrometric stations

target_station

character, station number corresponding to the basin that is provided. If provided, prevents the target station from being included in the results as upstream of itself

station_number

character, name of column in stations SpatialPointsDataFrame which corresponds to the station number

Value

A character vector of station IDs


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