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:
- The Town name,
- The River name,
- The specific measurement of interest (water level, water flow rate, wind direction and speed, or temperature).
- The specific latitude and longitude coordinates of the region of interest.
- 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:
Metadata
Release files for flood-monitoring 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| flood_monitoring-0.2.tar.gz | 5.8 kB | Without provenance | Details for flood_monitoring-0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flood_monitoring-0.2-py3-none-any.whl | Python 3 | none | any | Details for flood_monitoring-0.2-py3-none-any.whl |
Total release size: 12.8 kB
Release files / flood_monitoring-0.2.tar.gz
| Download URL | flood_monitoring-0.2.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
869e46bf44d3873c191e0e33446dff3135f9435a7c3e0036507eefcbe266c10a
|
|
BLAKE2b-256 checksum How to use checksums |
73d44a139459675b73f52c945f93502293aa6d7ed6df18e7b3fb5cf50ed85444
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.2
|
Release files / flood_monitoring-0.2-py3-none-any.whl
| Download URL | flood_monitoring-0.2-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ed450145531acce40fc805e01ea11684dbb39981326ac579c11abe08036b9727
|
|
BLAKE2b-256 checksum How to use checksums |
c7d0f219ed9a3b94a559077bd0f9983ba4e8dd3179dc8f85a2a89f80fdf23367
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.2
|
Security for flood-monitoring 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.