from floodsystem.stationdata import build_station_list
from floodsystem.geo import stations_by_distance
print("*** Task 1B: CUED Part IA Flood Warning System ***")
stations = build_station_list() 
#list of stations generated
print(stations_by_distance(stations, (52.2053, 0.1218))[0:10])
#1st (0) to 10th (10) station, taking the stations closest in distance
print(stations_by_distance(stations, (52.2053, 0.1218))[-11:-1])
#10th to last (-11) to last (-1) station, taking the stations now furthest in distance
from floodsystem.stationdata import build_station_list
from floodsystem.geo import stations_by_distance
print("*** Task 1B: CUED Part IA Flood Warning System ***")
stations = build_station_list() 
#list of stations generated
print(stations_by_distance(stations, (52.2053, 0.1218))[0:10])
#1st (0) to 10th (10) station, taking the stations closest in distance
print(stations_by_distance(stations, (52.2053, 0.1218))[-11:-1])
#10th to last (-11) to last (-1) station, taking the stations now furthest in distance
#list of stations generated #1st (0) to 10th (10) station, taking the stations closest in distance #10th to last (-11) to last (-1) station, taking the stations now furthest in distance