Skip to main content

glacier-strain-tools

conda-forge version PyPI version Documentation Status Unit Tests

Tools for deriving surface-parallel strain rates and directions from glacier velocity fields.

Installation

Install from pip or conda/mamba (preferred):

conda install -c conda-forge glacier-strain-tools

If you want the latest development version:

git clone https://github.com/trchudley/glacier-strain-tools.git
cd glacier-strain-tools
python -m pip install -e .

Minimal Example: Logarithmic Strain Rate

import rioxarray as rxr
from strain_tools import strain

# Load velocity fields
vx = rxr.open_rasterio('data/vx.tif').squeeze()
vy = rxr.open_rasterio('data/vy.tif').squeeze()

# Inputs:
# pixel_size   : image resolution in distance units (e.g. meters)
# length_scale : half-length scale for the virtual stake method (same distance units)
logarithmic_strains = strain.logarithmic(
	vx=vx,
	vy=vy,
	pixel_size=200.0,
	length_scale=500.0,
	unit_time="a",  # velocity field is in units m a-1
)

What is Included

  • Logarithmic and nominal strain-rate calculations
  • Principal, longitudinal, transverse, shear, and effective strain rates
  • Strain-rate uncertainty estimates
  • Deviatoric and Cauchy stress conversion from strain rates

Documentation

Full documentation, theory notes, and API reference are available on ReadTheDocs at https://glacier-strain-tools.readthedocs.io.

Contact

Tom Chudley | tom.chudley@bristol.ac.uk

Metadata

Release files for glacier-strain-tools 2.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 glacier-strain-tools 2.0.1
File Size Uploaded
glacier_strain_tools-2.0.1.tar.gz 23.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for glacier-strain-tools 2.0.1
File Interpreter ABI Platform
glacier_strain_tools-2.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 48.1 kB

Release files / glacier_strain_tools-2.0.1.tar.gz

Download URL glacier_strain_tools-2.0.1.tar.gz
Size 23.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d3451d24138231b82a17df87476d00795fcbfd7e1b0b9d7136018a3ef49ea959
BLAKE2b-256 checksum
How to use checksums
a2f895d7ce229a2f778a57beb08f9a90f243e7985351703c876b8c1be44c090f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.

Transparency log

Release files / glacier_strain_tools-2.0.1-py3-none-any.whl

Download URL glacier_strain_tools-2.0.1-py3-none-any.whl
Size 24.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4461638ca08696bac7a69646aeec38bee3e966922d5558b96e4ff6baa9655982
BLAKE2b-256 checksum
How to use checksums
39782ea3aa61b9b992eeab241357d748007fb9c4ef624519e4c80d1d113fcf34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2.0.1 This release

2 release files

2.0.0

2 release files

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