An open-source python library to calculate and extract morphometrics from scroll bar floodplains
Project description
ScrollStats
An open-source python library to calculate and extract morphometrics from scrollbar floodplains.
For further reading on the rationale behind ScrollStats and practical examples demonstrating how to use ScrollStats, check out the documentation here: https://scrollstats.readthedocs.io/en/latest
Introduction
Scroll bar floodplains, often characterized by a series undulating ridges and swales, exhibit a distinct geomorphic signature that can be seen in high-resolution digital elevation models (DEMs). These fine-scale topographic undulations reflect the dynamic balance between sediment deposition and erosional scouring associated with the fluvial processes along the inner bank at the time of their formation. DEM-based analyses of scroll bar floodplains provide critical insight into the temporal evolution of channel morphology and the underlying hydrologic and sedimentary controls that govern riverine landscape change.
The figure below is a visualization of the DEM of a bend on the Lower Brazos River, TX. We can clearly see the undulations in the DEM caused by the river migration as well as features such as cross-channels formed by water flow through the floodplain.
Getting Started
If you intend to use ScrollStats for your own analysis, follow the User Installation instructions.
If you intend to develop or contribute to ScrollStats, follow the Developer Installation instructions.
User Installation
Install ScrollStats with pip
python -m pip install scrollstats
Or install with conda
conda install scrollstats
NOTE: scrollstats v0.1.3 must be installed with python <=3.12 when using conda
Developer Installation
First, clone the repo locally, create a virtual environment for the project,
then install the [dev] optional dependencies listed in
pyproject.toml.
git clone https://github.com/tamu-edu/scrollstats
python -m venv venv/
source venv/bin/activate
(venv) python -m pip install -e ".[dev]"
The ScrollStats Workflow
The ScrollStats Workflow can be broken up into the 3 major steps listed below. Each of these steps is covered in detail in docs with code examples using datasets generated from a bend on the Lower Brazos River, TX.
1. Delineate Ridge Areas
Delineate ridge areas from a DEM to create the ridge area raster. This is achieved by:
- applying the profile curvature and residual topography transforms to the DEM
- applying a threshold at 0 to these transformed rasters to create binary rasters
- finding the union of these binary rasters
- denoising the union raster
2. Create Vector Datasets
Create the following vector datasets to define key morphological features of the bend.
- bend boundary
- packet boundaries
- channel centerline
- ridge lines
- migration pathways
Some of these datasets are digitized manually, while others are generated by ScrollStats. Details of the vector data creation process can be found in the doc linked above.
3. Calculate Ridge Metrics
Once all of the vector datasets are created and the raster areas are delineated, you can now calculate ridge metrics across the entire bend.
These metrics include ridge amplitude, width, and migration distance for every intersection of a ridge and migration pathway.
Contributing
Contribution to ScrollStats is welcome. There will forever be a "frozen" branch that contains the code exactly as it was at the time of publication, but it is the intent of the maintainer to accept community feedback and suggestions to the project.
Submitting Feedback To submit feedback, please open an issue on this repository with the appropriate label. Currently used labels are:
documentation: issues concerning the workflow or clarity of instructionsfeature: issues requesting or proposing new features for scrollstatsbug: issues concerning errors in the code itself
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file scrollstats-0.1.5.tar.gz.
File metadata
- Download URL: scrollstats-0.1.5.tar.gz
- Upload date:
- Size: 19.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0624af3a095549c35b04e47dd50197504501dbf208088f7b5148aef92ca48e3a
|
|
| MD5 |
27e3f8066cb54e51db5577beaf220ace
|
|
| BLAKE2b-256 |
0f7551838b360c75c279f07352d9b73d343cf50b6ae5a3d9a872b19c5b4d630e
|
Provenance
The following attestation bundles were made for scrollstats-0.1.5.tar.gz:
Publisher:
cd.yml on tamu-edu/scrollstats
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
scrollstats-0.1.5.tar.gz -
Subject digest:
0624af3a095549c35b04e47dd50197504501dbf208088f7b5148aef92ca48e3a - Sigstore transparency entry: 1714973382
- Sigstore integration time:
-
Permalink:
tamu-edu/scrollstats@f26ac6c8238332c775c3533302da5e60f24117ac -
Branch / Tag:
refs/tags/v0.1.5 - Owner: https://github.com/tamu-edu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@f26ac6c8238332c775c3533302da5e60f24117ac -
Trigger Event:
release
-
Statement type:
File details
Details for the file scrollstats-0.1.5-py3-none-any.whl.
File metadata
- Download URL: scrollstats-0.1.5-py3-none-any.whl
- Upload date:
- Size: 39.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ce2c2d76068557763c237411d878f317b60f98088a946c938a5680b11b97896
|
|
| MD5 |
b1405ba071851a6cdd30c04b9a534fe2
|
|
| BLAKE2b-256 |
ba31cf2d0999b1d49ee967ce395040b349d872ea24aa1885d43dc8d41c1da23a
|
Provenance
The following attestation bundles were made for scrollstats-0.1.5-py3-none-any.whl:
Publisher:
cd.yml on tamu-edu/scrollstats
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
scrollstats-0.1.5-py3-none-any.whl -
Subject digest:
9ce2c2d76068557763c237411d878f317b60f98088a946c938a5680b11b97896 - Sigstore transparency entry: 1714973525
- Sigstore integration time:
-
Permalink:
tamu-edu/scrollstats@f26ac6c8238332c775c3533302da5e60f24117ac -
Branch / Tag:
refs/tags/v0.1.5 - Owner: https://github.com/tamu-edu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@f26ac6c8238332c775c3533302da5e60f24117ac -
Trigger Event:
release
-
Statement type: