GPlates Web Service Python client/proxy
Project description
GPlates Web Service Python Client/Proxy
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for gplates_ws_proxy-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cead70457bec1cc385d7cfce91ff074ed2a1454ee4899e79e4e8e59f16862ac7 |
|
MD5 | a3dd59cf28ab18db9feb7c096b91cc6a |
|
BLAKE2b-256 | fcce6dca1889ef235c104ebd5a80382ecaaa60ad67ad2476c9c17ac2ab968e7f |