Skip to main content

GPlates Web Service Python client/proxy

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gplates_ws_proxy-0.1.2.tar.gz (455.2 kB view details)

Uploaded Source

Built Distribution

gplates_ws_proxy-0.1.2-py3-none-any.whl (462.3 kB view details)

Uploaded Python 3

File details

Details for the file gplates_ws_proxy-0.1.2.tar.gz.

File metadata

  • Download URL: gplates_ws_proxy-0.1.2.tar.gz
  • Upload date:
  • Size: 455.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for gplates_ws_proxy-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1371b804ffc886e8b2524f4f67669def83f4ce6929e372782241091f0bf70350
MD5 4d8dc69313f4154b6b3008625593c60c
BLAKE2b-256 31e9629beec43e2d5d9786bf41cb15e55d062d079fb56dcf34887d91a58f4396

See more details on using hashes here.

File details

Details for the file gplates_ws_proxy-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for gplates_ws_proxy-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fcc83ec26d99ff0bcb6e23192bedc8d8944b929e27e5349a6a294bfa97588af8
MD5 61a460c5cfe2568a7ee3549c4832f3db
BLAKE2b-256 a98afba8127fbddab19f3c0a2f19d20384208e5939f824bb47220563b8687e60

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page