Skip to main content

A simple flood monitoring package

Project description

Flood Monitoring

This project uses the Real Time flood-monitoring API to monitor flood information at specific measurement stations.

Installation

In a new conda environment, you can install the package via pip:

pip install flood-monitoring

Example Usage

To select an individual measurement station, users can specify:

  1. The Town name,
  2. The River name,
  3. The specific measurement of interest (water level, water flow rate, wind direction and speed, or temperature).
  4. The specific latitude and longitude coordinates of the region of interest.
  5. A distance d (in kilometers) of all stations falling within d km of the specified latitude and longitude.

For further details on the available options, run:

python -m flood_monitoring.main --help

For example, running the following command:

python -m flood_monitoring.main --latitude 51.874767 --longitude -1.740083 --measurement 'Water Level'

gives the following output:

The selected station id is: http://environment.data.gov.uk/flood-monitoring/id/stations/1029TH

and displays the first five rows of readings from the particular station over the last 24 hours:

                Date     Value
0  2025-03-09T00:00:00Z -0.163
1  2025-03-09T00:15:00Z -0.163
2  2025-03-09T00:30:00Z -0.165
3  2025-03-09T00:45:00Z -0.163
4  2025-03-09T01:00:00Z -0.163

as well as a line graph of that station's readings over the last 24 hours:

line graph

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flood_monitoring-0.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flood_monitoring-0.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file flood_monitoring-0.1.tar.gz.

File metadata

  • Download URL: flood_monitoring-0.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for flood_monitoring-0.1.tar.gz
Algorithm Hash digest
SHA256 d068c7c383a85eb4841732b0532ee91e92d09385867e61ac5ffe4d7b1a2823c8
MD5 8297f1de621b87566d2625409ddd71ad
BLAKE2b-256 f2040624b5338154ca4619469ec1ef3cbda14403f4fe6cf32c310e8ae73b32cb

See more details on using hashes here.

File details

Details for the file flood_monitoring-0.1-py3-none-any.whl.

File metadata

  • Download URL: flood_monitoring-0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for flood_monitoring-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5333b910288bc7ff788fdefd1116ab4cf99a72cdd56174b36b28e90c76e2ca63
MD5 1b4b46a8441ae37fa2c2659a09315ec4
BLAKE2b-256 5433840f40c727c59748eed9d7c4aa2c929c176f1cefd35dc6a858ddbec97cff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page