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
Release history Release notifications | RSS feed
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d48f65aa9ec5433582c3b400e2596f6f32a517ca27ad3ceb5e411b02ea5b5652
|
|
| MD5 |
8983d89307f469144bbd092a294d9ae4
|
|
| BLAKE2b-256 |
e57e27c54be07c6921826cf20d3029a720559a37b92b26159bb3616132de16d9
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
glacier_strain_tools-2.0.0.tar.gz -
Subject digest:
d48f65aa9ec5433582c3b400e2596f6f32a517ca27ad3ceb5e411b02ea5b5652 - Sigstore transparency entry: 2291365331
- Sigstore integration time:
-
Permalink:
trchudley/glacier-strain-tools@1770410ee46813e94a7b151160dc2fdf8294a933 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/trchudley
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pip-publish.yml@1770410ee46813e94a7b151160dc2fdf8294a933 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file glacier_strain_tools-2.0.0-py3-none-any.whl.
File metadata
- Download URL: glacier_strain_tools-2.0.0-py3-none-any.whl
- Upload date:
- Size: 24.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b4b3d522c4a94c686a2d81a877f21c3ecc5862955b390cc8dd9de952d835b38
|
|
| MD5 |
06a9c94d763ff6b8e80dc1da0ebb3c6d
|
|
| BLAKE2b-256 |
4a19a518eff8f7804e3e13d4d3260c255e705a61b50846ff48d7510d4d76961a
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
glacier_strain_tools-2.0.0-py3-none-any.whl -
Subject digest:
0b4b3d522c4a94c686a2d81a877f21c3ecc5862955b390cc8dd9de952d835b38 - Sigstore transparency entry: 2291365349
- Sigstore integration time:
-
Permalink:
trchudley/glacier-strain-tools@1770410ee46813e94a7b151160dc2fdf8294a933 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/trchudley
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pip-publish.yml@1770410ee46813e94a7b151160dc2fdf8294a933 -
Trigger Event:
workflow_dispatch
-
Statement type: