Skip to main content

GPlates Web Service Python Client/Proxy

⛔⛔⛔

The gplates-ws-proxy is deprecated⚠️⚠️⚠️Use gwspy instead⚠️⚠️⚠️

⛔⛔⛔

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

Installation

pip install gplates-ws-proxy

How to use

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

  # pip install gplates-ws-proxy shapely
  import shapely
  from gplates_ws_proxy 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 gplates-ws-proxy 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 gplates-ws-proxy 0.1.2
File Size Uploaded
gplates_ws_proxy-0.1.2.tar.gz 455.2 kB Details

Built distribution (wheel)

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

Total release size: 917.5 kB

Release files / gplates_ws_proxy-0.1.2.tar.gz

Download URL gplates_ws_proxy-0.1.2.tar.gz
Size 455.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1371b804ffc886e8b2524f4f67669def83f4ce6929e372782241091f0bf70350
BLAKE2b-256 checksum
How to use checksums
31e9629beec43e2d5d9786bf41cb15e55d062d079fb56dcf34887d91a58f4396
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

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

Download URL gplates_ws_proxy-0.1.2-py3-none-any.whl
Size 462.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fcc83ec26d99ff0bcb6e23192bedc8d8944b929e27e5349a6a294bfa97588af8
BLAKE2b-256 checksum
How to use checksums
a98afba8127fbddab19f3c0a2f19d20384208e5939f824bb47220563b8687e60
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

0.1.1

2 release files

0.0.2

2 release files

0.0.1

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