- Notifications
You must be signed in to change notification settings - Fork0
tayerthiaggo/irivermetrics
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
iRiverMetrics is an open-source Python toolkit designed for analysing the surface water dynamics of intermittent rivers. It offers a set of modules to help researchers and environmental professionals to detect water and compute ecohydrological metrics from multispectral satellite imagery efficiently.
- Modular Design: Divided into two modules, each serving a specific purpose. This modular approach allows you to use only the components relevant to your project.
- Remote Sensing Integration: Leverages multispectral and multitemporal satellite imagery, enabling you to analyse surface water features and assess river characteristics. It supports common satellite sensors and data formats.
- Efficient Processing: Employs Dask for distributed computing, ensuring local processing of large-scale datasets.
- User-Friendly: Suitable for users with varying levels of expertise. It includes detailed documentation and code comments to guide you through the process.
iRiverMetrics consists of two main modules:
- Water Detection (
waterdetect_batch)): Generate water masks from multispectral imagery using the Water Detect package. It integrates spectral water indices and clustering techniques to delineate and map aquatic bodies accurately. - Calculate Metrics (
calculate_metrics)): Utilises the water masks to compute a range of metrics comprising various aspects of river surface water, such as morphological characteristics, water persistence, and fragmentation.
To get started with iRiverMetrics, follow these steps:
- Clone the Repository: Clone the iRiverMetrics repository from GitHub to your local machine.
cd paste/your/directory/heregit clone https://github.com/tayerthiaggo/irivermetrics.git- Requirements: Ensure Python 3.x is installed. Set up the environment and install dependencies using:(install GDAL with conda for less headache)
conda create -n irivermetrics python=3.xconda activate irivermetricsconda install conda-forge::gdalpip install -r paste/clone/directory/requirements.txt
Explore the Modules: Dive into the documentation for each module to understand their functionality and usage.
Example Usage: Reviewexample use cases and code snippets in the documentation of each module (waterdetect_batch andcalculate_metrics) apply iRiverMetrics effectively to your projects.
Contribute: Contributions are welcome! If you have enhancements or additional features, please consider contributing back to the project via GitHub.
# Add cloned directory to pathimportsyssys.path.append(r'path\to\clone\irivermetrics')# Import modulesfromsrc.irm_mainimportwaterdetect_batch,calculate_metrics## Module 1# Path to a directory containing multispectral images (e.g., TIFF files)input_img="path/to/images"# Path to the river corridor extent shapefile (.shp)r_lines="path/to/rcor_extent.shp"# Generate a DataArray containing water masks based on the specified parametersda_wmask=waterdetect_batch(input_img,r_lines)## Module 2# Path to a directory containing water masks or use a defined DataArrayda_wmask="path/to/water masks"# Path to the river corridor extent (sections) shapefile (.shp)rcor_extent="path/to/rcor_extent.shp"# Calculate river metricsmetrics=calculate_metrics(da_wmask,rcor_extent)
If you use iRiverMetrics in your research or projects, please consider citing the original paper:
Tayer T.C., Beesley L.S., Douglas M.M., Bourke S.A., Meredith K., McFarlane D. (2023) Ecohydrological metrics derived from multispectral images to characterize surface water in an intermittent river, Journal of Hydrology, Volume 617, Part C, DOI:10.1016/j.jhydrol.2023.129087
and
Tayer T.C., Beesley L.S., Douglas M.M., Bourke S.A., Meredith K., McFarlane D. (2023) Identifying intermittent river sections with similar hydrology using remotely sensed metrics, Journal of Hydrology, Volume 626, Part A, DOI:10.1016/j.jhydrol.2023.130266
About
An open-source Python toolkit for identifying surface water and analyzing intermittent river patterns using remote sensing data.
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.