Skip to main content

GPlatesReconstructionModel

Prototyping for GPlates plate reconstructions as a python class

  • Usage examples are available in the test_notebooks directory

Installation

Install directly from GitHub with pip:

pip install git+https://github.com/siwill22/GPlatesReconstructionModel

This pulls in every core dependency automatically, including pygplates and PlateTectonicTools, both of which are ordinary PyPI packages.

To also install the optional dependencies for plotting, geophysics helpers, and additional spatial algorithms, install the all extra:

pip install "gprm[all] @ git+https://github.com/siwill22/GPlatesReconstructionModel"

A plain install needs no system packages — every core dependency has wheels on PyPI for Linux, macOS and Windows. That means the data-preparation and analysis path (fetching reconstruction models, assigning plate IDs, reconstructing data, plate snapshots, and all proximity calculations) runs on a headless machine or in CI with nothing but pip install.

pygmt is deliberately not a core dependency, because it is a wrapper around the GMT command-line library and does not bundle GMT itself — that is the one thing pip cannot install for you. It is only needed for plotting and for a few grid-sampling helpers, all of which import it at the point of use and tell you what to install if it is missing.

Python Dependencies

Required (installed automatically, all pip-installable):

  • numpy, scipy, pandas
  • geopandas, shapely, rasterio
  • matplotlib, xarray, cartopy
  • pygplates
  • PlateTectonicTools (https://github.com/EarthByte/PlateTectonicTools) — this itself imports cartopy unconditionally, which is why cartopy is required rather than optional
  • pooch, requests, tqdm, pyyaml

Optional extras:

  • pip install "gprm[viz]" — pygmt (plotting, grid sampling). pygmt also needs GMT >=6 installed separately: conda install -c conda-forge gmt, Homebrew's gmt, or your Linux package manager.
  • pip install "gprm[geophysics]" — pyshtools, litho1pt0, pmagpy
  • pip install "gprm[spatial]" — astropy-healpix, scikit-image, scikit-learn (if astropy-healpix is not installed, some functions fall back on precomputed point distributions in the Data folder)
  • pip install "gprm[all]" — everything above

Where downloaded data goes

Datasets are cached with pooch, in a platform-dependent location. Ask for it rather than writing it out by hand:

from gprm.datasets import cache_path
cache_path()                                    # the cache root
cache_path('TorsvikCocks2017', 'CEED6_LAND.gpml')  # a file inside a fetched bundle

Note on stripy: gprm no longer uses stripy directly, but geophysics still pulls it in transitively via litho1pt0. stripy has no prebuilt wheel for Apple Silicon macOS on any Python version, and none at all for Python 3.13+. On those platforms pip will try to build it from source, which needs a Fortran compiler (e.g. brew install gcc on macOS, or conda install -c conda-forge stripy as an alternative to pip for just that package). This means pip install "gprm[geophysics]" and "gprm[all]" can fail on those platforms even though the bare install and [spatial]/[viz] do not.

Release files for gprm 0.1.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 gprm 0.1.1
File Size Uploaded
gprm-0.1.1.tar.gz 6.2 MB Details

Built distribution (wheel)

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

Total release size: 12.5 MB

Release files / gprm-0.1.1.tar.gz

Download URL gprm-0.1.1.tar.gz
Size 6.2 MB
Tags Source
SHA-256 checksum
How to use checksums
8c060145924163e275800b2c6e28dc34d82ffa55af4b12f4e4a7815f115d4f47
BLAKE2b-256 checksum
How to use checksums
71148e00b0831d3348bcc4d53a33ed7c09e47a3a8f45644ff84df392f92e8fb5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.11

Release files / gprm-0.1.1-py3-none-any.whl

Download URL gprm-0.1.1-py3-none-any.whl
Size 6.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
127847ac490ec6b346329848a60b7e4d3410b492566f11acb404e3290a6bd249
BLAKE2b-256 checksum
How to use checksums
c4b52049bf5ae86d1aea5692e81af0b6c8255405fa8874aba4d132672a529f82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.11

Release history Release notifications | RSS feed

0.2.0

2 release files

This release

0.1.1 This release

2 release files

0.1.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