flood module¶
This module contains a collection of functions related to flooding.
-
flood.
stations_highest_rel_level
(stations, N)¶ Function that returns the N number of most at risk stations.
Parameters: - stations (list) – List of stations (MonitoringStation).
- N (int) – Length of the desired list
Returns: List of stations (MonitoringStation).
Return type: list
-
flood.
stations_level_over_threshold
(stations, tol)¶ Function that returns stations whose latest relative water level is over some threshold.
Parameters: - stations (list) – List of stations (MonitoringStation).
- tol (float) – The threshold relative water level.
Returns: List of tuples in the format (station (MonitoringStation), relative water level) sorted by the relative level in descending order.
Return type: list