Skip to main content

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

Project description

glacier-strain-tools

Tools for deriving surface-parallel strain rates 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 at the GitHub repo:

https://github.com/trchudley/glacier-strain-tools.

Contact

Tom Chudley tom.chudley@bristol.ac.uk

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

glacier_strain_tools-2.0.0.tar.gz (23.6 kB view details)

Uploaded Source

Built Distribution

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

glacier_strain_tools-2.0.0-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

Details for the file glacier_strain_tools-2.0.0.tar.gz.

File metadata

  • Download URL: glacier_strain_tools-2.0.0.tar.gz
  • Upload date:
  • Size: 23.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for glacier_strain_tools-2.0.0.tar.gz
Algorithm Hash digest
SHA256 d48f65aa9ec5433582c3b400e2596f6f32a517ca27ad3ceb5e411b02ea5b5652
MD5 8983d89307f469144bbd092a294d9ae4
BLAKE2b-256 e57e27c54be07c6921826cf20d3029a720559a37b92b26159bb3616132de16d9

See more details on using hashes here.

Provenance

The following attestation bundles were made for glacier_strain_tools-2.0.0.tar.gz:

Publisher: pip-publish.yml on trchudley/glacier-strain-tools

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

File details

Details for the file glacier_strain_tools-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for glacier_strain_tools-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0b4b3d522c4a94c686a2d81a877f21c3ecc5862955b390cc8dd9de952d835b38
MD5 06a9c94d763ff6b8e80dc1da0ebb3c6d
BLAKE2b-256 4a19a518eff8f7804e3e13d4d3260c255e705a61b50846ff48d7510d4d76961a

See more details on using hashes here.

Provenance

The following attestation bundles were made for glacier_strain_tools-2.0.0-py3-none-any.whl:

Publisher: pip-publish.yml on trchudley/glacier-strain-tools

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