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
cartopyunconditionally, which is whycartopyis 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'sgmt, or your Linux package manager.pip install "gprm[geophysics]"— pyshtools, litho1pt0, pmagpypip install "gprm[spatial]"— stripy, astropy-healpix, scikit-image, scikit-learn (if astropy-healpix is not installed, some functions fall back on precomputed point distributions in theDatafolder)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: stripy (pulled in directly by spatial, and transitively by
geophysics via litho1pt0) 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).
Release files for gprm 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gprm-0.1.0.tar.gz | 6.2 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gprm-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.4 MB
Release files / gprm-0.1.0.tar.gz
| Download URL | gprm-0.1.0.tar.gz |
|---|---|
| Size | 6.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
db4c68984f7d7909cea991bc43804eda4280214e3932f3715046c4c2ae256463
|
|
BLAKE2b-256 checksum How to use checksums |
6bcb70a47fa40cea7d37e60ec6b0077734186aec3b3c6981f0803a7e179c8eb1
|
| 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.0-py3-none-any.whl
| Download URL | gprm-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8f660fe9c0f28327dc3a4f5d07f96fbe9df2dfcfb566d8c5829ec5ced5e3dbdd
|
|
BLAKE2b-256 checksum How to use checksums |
d40d9c12a86151f981377491a9ad61679876ee629b07004a9ee014112188a110
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.11
|