flood module¶
Methods to determine risk of flood at stations.
-
flood.
stations_highest_rel_level
(stations, N)¶ Return the N stations with the highest relative water levels.
Only N values are returned regarless of any tie conditions. Fewer than N may be returned if len(stations) < N
- Parameters
stations (list[MonitoringStation]) – generated using build_station_list..
N (int) – Number of stations to returns.
- Returns
List of MonitoringStation objects with the highest relative water levels.
- Return type
list[MonitoringStation]
-
flood.
stations_level_over_threshold
(stations, tol)¶ Return the stations whose relative water level exceed a threshold.
The stations are listed in order of decreasing relative water level.
- Parameters
stations (list[MonitoringStation]) –
tol (float) – threshold for relative water level
- Returns
A list of tuples containing the MonitoringStation object and its relative water level.
- Return type
list[(MonitoringStation, float)]