valley-centerline
Tool to pick the centerline of a valley (or other feature) based on the valley walls (or other edges)
Science Score: 54.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
✓Academic publication links
Links to: zenodo.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (8.0%) to scientific vocabulary
Repository
Tool to pick the centerline of a valley (or other feature) based on the valley walls (or other edges)
Basic Info
- Host: GitHub
- Owner: MNiMORPH
- License: gpl-3.0
- Language: Python
- Default Branch: main
- Size: 291 KB
Statistics
- Stars: 2
- Watchers: 6
- Forks: 1
- Open Issues: 0
- Releases: 1
Metadata Files
README.md
valley-centerline
Tool to pick the centerline of a valley (or other feature) based on the valley walls (or other edges) using Dijkstra's algorithm. Required libraries: os, argparse, shapely, pandas, geopandas, networkx, momepy
Ways to pick valley margins
In your GIS software of choice, create a single vector line layer consisting of 2 lines - one on either side of the valley. The valley width that is chosen depends on the problem to be solved. For mapping terraces within the valley, it would be best to map at the break between the bedrock valley walls and the flat valley bottom and terraces, such that the defined valley encompasses all of the features of concern. Dealing with tributaries might be more difficult, but the idea that I would suggest is just to start with the simplest: snap a straight line across each tributary-valley mouth between the closest points before the valley starts to curve in towards the tributary.
Using valley-centerline
Run valley-centerline.py in the terminal with the following command:
python valley-centerline.py input output
Where input is the path to the file containing the walls between which the centerline will be found, and output is the path where the centerline will be saved. The output centerline will have the same coordinate reference system as the input file.
Owner
- Name: MNiMORPH
- Login: MNiMORPH
- Kind: organization
- Location: Minneapolis, MN, USA
- Website: mnimorph.science
- Twitter: andywickert
- Repositories: 17
- Profile: https://github.com/MNiMORPH
Minnesotans Mulling over Rivers, Particles, and Hillslopes (UMN and MSU Mankato geomorph groups)
Citation (CITATION.cff)
cff-version: 1.2.0 message: "If you use this software, please cite it as below." authors: - family-names: "Mitchell" given-names: "Peter" orcid: "https://orcid.org/0009-0001-1852-9231" title: "valley-centerline" version: 0.0.0 doi: 10.5281/zenodo.8028591 date-released: 2023-06-12 url: "https://github.com/MNiMORPH/valley-centerline"