Skip to main content

bedfinder: A Python package for the Automatic Detection of Glacially-derived Bedforms

The bedfinder workflow automates the detection of glacially-derived bedforms for landforms identified from the Topographic Position Index (TPI) tool using machine learning. Users can pick one of three trained ensemble models (Random Forest, XGBoost, or the ensemble average of both) to detect bedforms from positive relief landforms, and choose to output detections as bedform probabilities or as binarized predictions. bedfinder also includes a routine for running a scientifically-driven prefiltering routine on TPI data to prepare it for use with machine learning models.

bedfinder can be used directly in Python, or as part of our ArcGIS pipeline, which incorporated with TPI, allows for the detection of bedforms directly from DEMs. Check out the notebooks available here or on CryoCloud for examples of how to apply bedfinder to your data, or follow the quickstart guide below.

Installation

bedfinder can be installed using pip:

pip install bedfinder

Note that the bedfinder package requires Python 3.9 or later.

Quickstart

Import the main interface:

from bedfinder import ClassifyBedforms

Automatically detect bedforms from a TPI output CSV:

# Instantiate bedfinder
landforms = ClassifyBedforms(
  input_csv='~/path/to/your/TPI/CSV',  # path to your input TPI csv
  model='ensemble_average',            # machine learning model choice
  threshold=0.45,                      # probability threshold
  probability=False                    # output as a binary prediction
)

# Define the predicted landforms
predicted_bedforms = landforms.predicted_bedforms

References & Attribution

The code is under development and will be described in a paper and Jupyter Book. If you make use of this code in your research, please cite:

LaTeX citations to go here.

If you make use of the training data in your research, please cite:

@misc{mckenzie2022_dataset,
 author={Marion A {McKenzie} and Lauren M {Simkins} and Sarah M {Principato}},
 title={{Streamlined subglacial bedforms across the deglaciated Northern Hemisphere}},
 year={2022},
 doi={10.1594/PANGAEA.939999},
 url={https://doi.org/10.1594/PANGAEA.939999},
 type={data set},
 publisher={PANGAEA}
}

If you make use of the Wisconsin Bay Lobe data in your research, please cite:

DOI

@misc{wiscbaylobe_dataset,
  author       = {Ellianna {Abrahams} and Marion A {McKenzie},
  title        = {bedfinder: A Python package for the Automatic Detection of Glacially-Derived Bedforms},
  year         = {2024},
  doi          = {10.5281/zenodo.11660146},
  url          = {https://zenodo.org/doi/10.5281/zenodo.11660146},
  note         = {Pre-release}
}

Metadata

Release files for bedfinder 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bedfinder 0.0.1
File Size Uploaded Provenance Actions
bedfinder-0.0.1.tar.gz 9.6 MB Without provenance Details for bedfinder-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bedfinder 0.0.1
File Interpreter ABI Platform Actions
bedfinder-0.0.1-py3-none-any.whl Python 3 none any Details for bedfinder-0.0.1-py3-none-any.whl

Total release size: 19.0 MB

Release files / bedfinder-0.0.1.tar.gz

Download URL bedfinder-0.0.1.tar.gz
Size 9.6 MB
Tags Source
SHA-256 checksum
How to use checksums
cc80cb04cc590af4776ea75c08d8d9d2a3b36d6f3cb32aa14beabe426b2a4878
BLAKE2b-256 checksum
How to use checksums
47d6f495bd134bd21834824c7de766944f09b608f2c6ee5dd3b0c4ca5bc36b42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release files / bedfinder-0.0.1-py3-none-any.whl

Download URL bedfinder-0.0.1-py3-none-any.whl
Size 9.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
cd154bc735b9ced48d140a357dc555aa5cec981a0065834fd873ec9784330dd3
BLAKE2b-256 checksum
How to use checksums
72a7d5c91914eb0adaf9d80f989f58b8c519411ae88722dc581f2fa2baeb06d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Security for bedfinder 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page