Giter VIP home page Giter VIP logo

flood-warning-system's Introduction

Flood Warning System

An API and demo frontend for monitoring flood likelihood in England, UK. Built to extend the Part IA Lent Term computing activity at CUED. Run the files in the tasks directory to see the standard functionality, or by using

$ ./runtasks.sh

The tasks are documented here.

CI

Map Plotting

View the map by running python applications/MapViewer.py.

Map of stations across England:

map1map2

Hover over a dot to view basic info:

hover

Click on a dot to go to the official gov.uk site for the station:

gov.uk site

Forecasting

View some forecasts by running python applications/LevelPredictions.py. Forecasting can be done at each station by training and predicting from an LSTM RNN. Training and evaluation is done with tensorflow.keras and sklearn.

Example 1: forecast of a tidal stations:

forecast

Example 2: forecast of a river level shortly after a storm event (predicted the rise, but likely overestimates the future fall)

forecast

Installing

After (optionally) navigating to any directory using $ cd C:\path\to\download\location, use

git clone https://github.com/lorcan2440/Flood-Warning-System.git
cd Flood-Warning-System
pip install .

The floodsystem module will then be available for use. Alternatively, if git is unavailable, the package can be downloaded manually by using this tool. Unzip the folder, go inside and use pip install . when in the same folder as setup.py and the various other files.

Usage

Various uses of the API are given in the tasks folder. To get started,

from floodsystem.stationdata import build_station_list, update_water_levels

stations = build_station_list()
update_water_levels(stations)

Then the functions can be used, e.g.

from floodsystem.flood import stations_level_over_threshold
print(stations_level_over_threshold(stations, 1.0))

flood-warning-system's People

Contributors

lorcan2440 avatar github-classroom[bot] avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

kouji121

flood-warning-system's Issues

Create stations page

Stations page should have an interactive map of the stations, and clicking on one should give a graph of its recent levels

Create flood warnings page

The flood warnings page should have a heatmap of all likely areas at risk of flooding. For already issued warnings, the government-issued alert info should be used.

Create forecasts page

Forecasts should have the map of all stations and rainfall gauges together, and clicking on any of them should calculate a forecast of its future levels.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.