An Innovative Approach to Vegetative Precipitation Partitioning
Project description
CanoPyHydro
The goal of this and future versions of CanoPyHydro is to provide a tool set that empowers researchers and practitioners to gain new perspectives on rainfall distribution in forested environments. A list of publications that have utilized this tool-and influenced its development- can be found at the bottom of this page.
CanoPyHydro provides users access to an innovative, bottom-up approach to estimation precipitation redistribution. By enriching QSM data with additional structure via graph based hydrological models, canoPyHydro allows for the percise delineation of:'
- Stemflow and throughfall generating areas of the canopy
- The 'drip points' to which throughfall is directed - complete with their relative volumes
- 'Divides' and 'confluences' within the canopy that dictate the flow of water through the canopy
The current tool set also boasts several different spacial analysis tools, several of which have been utilized in the study of non-hydrological environmental conditions within tree canopies. These include:
- Functionality for characterizing the level of obsfucation present at given canopy cross sections
- Tools for identifying, highlighting and isolating branch subnetworks meeting any arbitrary contition(s)
- i.e. only branches with a radius > 10cm, branches with a branch order of 0 within 100cm of the ground, ...
- 2D and 3D visualization functionality to interactively to explore the structure of tree canopies
Contents:
The interactive jupyter notebook under '.\Cylinders\cli.ipynb' displays the code written for the first draft of the above linked paper how it was run and reviewed. The functionality there-in has been formalized and expanded into the
Getting Started
-
Pre-requisites
- Python version 3.9 or higher
- A Virtual environment
- python -m venv
- Activate venv with
- source venv/bin/activate (zsh, terminal)
- source venv\Scripts\activate.ps1 (PowerShell)
- Install requirements
- pip install -r requirements.txt
Contributing
We welcome contributions to this project! Whether it's reporting a bug, proposing a new feature, or contributing code, we appreciate your help. Here's how you can contribute:
-
Install Aditional Dependencies: Some features (linting, git actions, etc.) may require additional dependencies. An additional 'requirements-dev.txt' file has been provided to install these dependencies.
pip install -r requirements-dev.txt
-
Install Pre-commit: This repository utilizes the ruff pre-commit hook to ensure that all code is linted before being committed. To install pre-commit, run the following commands:
pip3 install pre-commit pre-commit install
-
**Review the contributing Guidelines **: Check out the documentation, where you can find contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.
Thank you for your interest in contributing to our project!
Publications:
This repository houses python utilities described in 'A LiDAR-driven pruning algorithm to delineate canopy drainage areas of stemflow and throughfall drip points.' A LiDAR-driven pruning algorithm to delineate canopy drainage areas of stemflow and throughfall drip points. (https://www.researchgate.net/publication/375530854)
Packaging
This project was initially packaged with Flit using the the instructions found on the offical python website: https://packaging.python.org/en/latest/tutorials/packaging-projects/.
Wishlist
- Optimizing the alpha value for alphashapes
- Can be done locally for areas with different point densities
- Smoothing cylinders to eliminate false drip points -polygon.buffer
- Creating QSMs from point cloud data
- would almost certainly need to leverage c++
- Integrate Point cloud processing libraries like Tree tool
- pip install -U pytreedb
- A more robust meta manager that stores to a cloud based db
- Local (maybe also remote) caching
- 3d plotting
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
Built Distribution
File details
Details for the file canopyhydro-0.0.1.tar.gz
.
File metadata
- Download URL: canopyhydro-0.0.1.tar.gz
- Upload date:
- Size: 34.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3924a4357dc086ae922e1c769926e23f1e4e94d3af82398125a41acb2b67f04b |
|
MD5 | b99e0214eabbff282777b6bee06478fa |
|
BLAKE2b-256 | f7d44d762db5a6a9cd402375bf237c3fcbcf8d5edfc768aff389f05cd13dc60b |
File details
Details for the file canoPyHydro-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: canoPyHydro-0.0.1-py3-none-any.whl
- Upload date:
- Size: 28.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 452d6ae8f618509ddb5f1f9fa901344ac2f674f30631cc4be6c0be4d6afc6b43 |
|
MD5 | 89388c1d0fbc6f5f8352f918500e6166 |
|
BLAKE2b-256 | c366d1ec955c73db9f91eb0058342e5074e82a004ead56b7ffc02dfe0f476d06 |