Skip to main content

GPlates Web Service Python Client/Proxy

build badge PyPI version

This Python package allows users to access GPlates Web Service more easily via simple Python programming interface.

Installation

pip install gwspy

How to use

The following Python code reconstructs three locations to 100Ma with Muller2019 reconstruction model.

  # pip install gwspy shapely
  import shapely
  from gwspy import PlateModel, reconstruct_shapely_points

  lats = [50, 10, 50]
  lons = [-100, 160, 100]
  points = [shapely.Point(x, y) for x, y in zip(lons, lats)]

  model = PlateModel("Muller2019")
  paleo_points = reconstruct_shapely_points(model, points, 100)
  print(paleo_points)

GPlates Web Service server

By default, https://gws.gplates.org is used. You can use .env file to specify your service URL. Alternertively, you can export GWS_URL=https://your-service-url in a terminal.

See env.template and setup GWS server with Docker.

Dependencies

API reference

API reference can be found at https://michaelchin.github.io/gplates-python-proxy/.

Examples

👉 reconstruct_shapely_points.py

The red dots are present-day locations. The blue dots are paleo-locations at 100Ma.

reconstruct_shapely_points

👉 plot_subduction_zones.py

plot_subduction_zones

👉 plot_topological_plate_polygons.py

plot_topological_plate_polygons

All Examples

Metadata

Release files for gwspy 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gwspy 0.1.2
File Size Uploaded
gwspy-0.1.2.tar.gz 455.3 kB Details

Built distribution (wheel)

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

Total release size: 916.8 kB

Release files / gwspy-0.1.2.tar.gz

Download URL gwspy-0.1.2.tar.gz
Size 455.3 kB
Tags Source
SHA-256 checksum
How to use checksums
fcc424ccf2552fde85220053c5fd44b0bb07efb2f1b23e9eb37045c29a15b401
BLAKE2b-256 checksum
How to use checksums
eb615836e37697f144cc0fea6a544922c24486998d3b533c5fd980c3ee4777a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

Release files / gwspy-0.1.2-py3-none-any.whl

Download URL gwspy-0.1.2-py3-none-any.whl
Size 461.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e5fcd2ebd946628a98b2d7ba2556b5f7078770c8cacfec5e95f95baaf1153079
BLAKE2b-256 checksum
How to use checksums
dfdc7a343e530a79745fcff42fedcc13e1036e8de084d2733555a7dc28443913
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.1.2 This release

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