Skip to main content

An open-source python library to calculate and extract morphometrics from scroll bar floodplains

Project description

ScrollStats

Actions Status Documentation Status

PyPI version Conda-Forge PyPI platforms

GitHub Discussion

An open-source python library to calculate and extract morphometrics from scrollbar floodplains.

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

Simply install ScrollStats to your python environment with pip

python -m pip install scrollstats

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:

  1. applying the profile curvature and residual topography transforms to the DEM
  2. applying a threshold at 0 to these transformed rasters to create binary rasters
  3. finding the union of these binary rasters
  4. 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 instructions
  • feature: issues requesting or proposing new features for scrollstats
  • bug: 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

scrollstats-0.1.3.tar.gz (15.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scrollstats-0.1.3-py3-none-any.whl (38.4 kB view details)

Uploaded Python 3

File details

Details for the file scrollstats-0.1.3.tar.gz.

File metadata

  • Download URL: scrollstats-0.1.3.tar.gz
  • Upload date:
  • Size: 15.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for scrollstats-0.1.3.tar.gz
Algorithm Hash digest
SHA256 4053ed6029e0857887e067f376faf892e1664ba359a60311cfeb0654c36c6c3f
MD5 9c796a7ec668618ff3e9fb33471d566f
BLAKE2b-256 8773d9526029e67dca8545d4352c304d476d9b861812f90e60aa26162e1489c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for scrollstats-0.1.3.tar.gz:

Publisher: cd.yml on tamu-edu/scrollstats

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scrollstats-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: scrollstats-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 38.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for scrollstats-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7787fe91ed0424d64793fc8e03503c9429350a023210a9a197e79b16a0561cd7
MD5 eed8ebefa63b62a5fc1bf69b280a1d54
BLAKE2b-256 0d5e23b7d9de3f200a0dca72979d2e72ca346591079a01ed027e5b9907d8b9d7

See more details on using hashes here.

Provenance

The following attestation bundles were made for scrollstats-0.1.3-py3-none-any.whl:

Publisher: cd.yml on tamu-edu/scrollstats

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page