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.2.tar.gz (5.8 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.2-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: flood_monitoring-0.2.tar.gz
  • Upload date:
  • Size: 5.8 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.2.tar.gz
Algorithm Hash digest
SHA256 869e46bf44d3873c191e0e33446dff3135f9435a7c3e0036507eefcbe266c10a
MD5 b8177bb35da0052e8788f1ff7c8cda84
BLAKE2b-256 73d44a139459675b73f52c945f93502293aa6d7ed6df18e7b3fb5cf50ed85444

See more details on using hashes here.

File details

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

File metadata

  • Download URL: flood_monitoring-0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.0 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ed450145531acce40fc805e01ea11684dbb39981326ac579c11abe08036b9727
MD5 ab01233e59d929d2bffb4c08c6e2bcf7
BLAKE2b-256 c7d0f219ed9a3b94a559077bd0f9983ba4e8dd3179dc8f85a2a89f80fdf23367

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