generated from CambridgeEngineering/PartIA-Flood-Warning-System
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTask1D.py
More file actions
24 lines (20 loc) · 702 Bytes
/
Task1D.py
File metadata and controls
24 lines (20 loc) · 702 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from floodsystem.geo import stations_by_river, rivers_with_station
from floodsystem.stationdata import build_station_list
def run():
"""Requirements for Task 1D"""
# Build list of stations
stations = build_station_list()
#part a
river_list = rivers_with_station(stations)
river_list.sort()
print(len(river_list))
print(river_list[:10])
#part b
station_list = stations_by_river(stations)
print(station_list["River Aire"])
print(station_list["River Cam"])
print(station_list["River Thames"])
#need to print specific rivers by referencing the
if __name__ == "__main__":
print("*** Task 1D: CUED Part IA Flood Warning System ***")
run()