RivGraph
Extracting and quantifying graphical representations of river and delta channel networks from binary masks.
https://github.com/VeinsOfTheEarth/RivGraph
Category: Hydrosphere
Sub Category: Freshwater and Hydrology
Keywords
manuscript python
Keywords from Contributors
numerical-modeling particle research-compendium rivers
Last synced: about 19 hours ago
JSON representation
Repository metadata
Extracting and quantifying graphical representations of river and delta channel networks from binary masks
- Host: GitHub
- URL: https://github.com/VeinsOfTheEarth/RivGraph
- Owner: VeinsOfTheEarth
- License: other
- Created: 2019-03-05T19:17:19.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-08-21T15:21:35.000Z (8 months ago)
- Last Synced: 2025-04-10T06:04:29.039Z (18 days ago)
- Topics: manuscript, python
- Language: Python
- Homepage: https://veinsoftheearth.github.io/RivGraph/
- Size: 26.4 MB
- Stars: 86
- Watchers: 5
- Forks: 28
- Open Issues: 11
- Releases: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
README.md
About
RivGraph is a Python package that provides tools for converting a binary mask of a channel network into a directed, weighted graph (i.e. a set of connected links and nodes).
The figure above demonstrates the core components of RivGraph, but many other features are provided, including:
- Morphologic metrics (lengths, widths, branching angles, braiding indices)
- Algebraic representations of the channel network graph
- Topologic metrics (both topologic and dynamic such as alternative paths, flux sharing, entropies, mutual information, etc.)
- Tools for cleaning and preparing your binary channel network mask
- Island detection, metrics, and filtering
- Mesh generation for characterizing along-river characteristics
- (beta) Tools for centerline migration analysis
All of RivGraph's functionality maintains and respects georeferencing information. If you start with a georeferenced mask (e.g. a GeoTIFF), RivGraph exports your results in the CRS (coordinate reference system) of your mask for convenient mapping, analysis, and fusion with other datasets in a GIS.
You can see some description of RivGraph's functionality via this AGU poster, and the flow directionality logic and validation is described in our ESurf Dynamics paper. Examples demonstrating the basic RivGraph features are available for a delta channel network and a braided river.
Installing
RivGraph is hosted at conda-forge. We recommend installing into a fresh conda environment to minimize the risk of dependency clashes. The easiest way to do this is to open Terminal (Mac/Unix) or Anaconda Prompt (Windows) and type:
You may then want to install Spyder or your preferred IDE. Conda should fetch all the required dependencies and handle versioning.
If you want to install RivGraph into an already-existing environment, you can run conda activate myenv
conda install rivgraph -c conda-forge
You may also install RivGraph from this Github repo.
Instructions for testing your installation are available here.
How to use?
Please see the documentation for more detailed instructions.
RivGraph requires that you provide a binary mask of your network. This page provides some help, hints, and tools for finding or creating your mask.
To see what RivGraph does and how to operate it, you can work through the Colville Delta example or the Brahmaputra River example. Both examples include sample masks.
RivGraph contains two primary classes (delta
and river
) that provide convenient methods for creating a processing workflow for a channel network. As the examples demonstrate, you can instantiate a delta or river class, then apply associated methods for each. After looking at the examples, take a look at classes.py to understand what methods are available.
Note: there are many functions under the hood that may be useful to you. Check out the im_utils script (image utilities) in particular for functions to help whip your mask into shape!
Contributing
If you think you're not skilled or experienced enough to contribute, think again! We agree wholeheartedly with the sentiments expressed by this Imposter syndrome disclaimer. We welcome all forms of user contributions including feature requests, bug reports, code, documentation requests, and code. Simply open an issue in the tracker. For code development contributions, please contact us via email to be added to our slack channel where we can hash out a plan for your contribution.
Citing RivGraph
Citations help us justify the effort that goes into building and maintaining this project. If you used RivGraph for your research, please consider citing us.
If you use RivGraph's flow directionality algorithms, please cite our ESurf Dynamics paper. Additionally, if you publish work wherein RivGraph was used to process your data, please cite our JOSS Paper.
Contacting us
The best way to get in touch is to open an issue or comment on any open issue or pull request. Otherwise, send an email to [email protected]
License
This is free software: you can redistribute it and/or modify it under the terms of the BSD 3-clause License. A copy of this license is provided in LICENSE.txt.
RivGraph has been assigned number C19049 by the Feynman Center for Innovation.
Owner metadata
- Name: Veins of the Earth
- Login: VeinsOfTheEarth
- Email:
- Kind: organization
- Description: A collection of tools for next-gen vector and graph based river mapping, monitoring, and modeling
- Website:
- Location:
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/88787335?v=4
- Repositories: 3
- Last ynced at: 2023-03-05T14:29:48.969Z
- Profile URL: https://github.com/VeinsOfTheEarth
GitHub Events
Total
- Watch event: 5
- Fork event: 2
Last Year
- Watch event: 5
- Fork event: 2
Committers metadata
Last synced: 7 days ago
Total Commits: 531
Total Committers: 8
Avg Commits per committer: 66.375
Development Distribution Score (DDS): 0.574
Commits in past year: 6
Committers in past year: 4
Avg Commits per committer in past year: 1.5
Development Distribution Score (DDS) in past year: 0.5
Name | Commits | |
---|---|---|
Jon Schwenk | j****k@g****m | 226 |
jay | j****n@u****u | 191 |
Jon Schwenk | j****k@l****v | 52 |
jsta | s****2@m****u | 41 |
Lawrence V | l****e@v****t | 18 |
Jemma Stachelek | j****k@g****m | 1 |
Ishtiaq Hussain | 5****e | 1 |
Katy Barnhart | k****t@u****v | 1 |
Committer domains:
- usgs.gov: 1
- vulis.net: 1
- msu.edu: 1
- lanl.gov: 1
- utexas.edu: 1
Issue and Pull Request metadata
Last synced: 2 days ago
Total issues: 48
Total pull requests: 55
Average time to close issues: about 2 months
Average time to close pull requests: 3 days
Total issue authors: 15
Total pull request authors: 6
Average comments per issue: 3.69
Average comments per pull request: 0.98
Merged pull request: 49
Bot issues: 0
Bot pull requests: 0
Past year issues: 4
Past year pull requests: 0
Past year average time to close issues: 4 days
Past year average time to close pull requests: N/A
Past year issue authors: 4
Past year pull request authors: 0
Past year average comments per issue: 2.5
Past year average comments per pull request: 0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- Lvulis (19)
- jonschwenk (6)
- leotrs (4)
- jsta (4)
- elbeejay (3)
- cgotelli (2)
- forestbat (2)
- kensukename2 (1)
- fluvialgeomorf (1)
- hcamkerr (1)
- zhaoshaohua21 (1)
- rockbusteriitk (1)
- GustavoWillyNagel (1)
- huck-rees (1)
- ssarker07 (1)
Top Pull Request Authors
- elbeejay (46)
- jsta (4)
- Lvulis (2)
- Ishticode (1)
- kbarnhart (1)
- mwort (1)
Top Issue Labels
- documentation (9)
- bug (4)
- good first issue (4)
- question (2)
- enhancement (2)
- dependency testing (1)
Top Pull Request Labels
- documentation (1)
Package metadata
- Total packages: 1
- Total downloads: unknown
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 1
conda-forge.org: rivgraph
RivGraph extracts and quantifies graphical representations of river and delta channel networks from binary masks.
- Homepage: https://github.com/VeinsOfTheEarth/RivGraph
- Licenses: BSD-3-Clause
- Latest release: 0.5.0 (published over 2 years ago)
- Last Synced: 2025-04-01T02:09:57.863Z (27 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Forks count: 33.946%
- Dependent repos count: 34.025%
- Stargazers count: 37.3%
- Average: 39.112%
- Dependent packages count: 51.175%
Dependencies
- actions/checkout v2 composite
- conda-incubator/setup-miniconda v2 composite
- JamesIves/github-pages-deploy-action 3.7.1 composite
- actions/checkout v2 composite
- conda-incubator/setup-miniconda v2 composite
Score: -Infinity