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.
Examples
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
gplates-ws-proxy-0.0.2.tar.gz
(19.7 kB
view hashes)
Built Distribution
Close
Hashes for gplates_ws_proxy-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b8d2551dfaf70dc8056f2902e2f2a092f491e31fc045839491c850e046170c7 |
|
MD5 | 878bb226b4ccde55a3fa2382f45432a7 |
|
BLAKE2b-256 | 82b03bd67cb2befc1c30d2459e5510b7e10ce652a5186a9ed37f60888dabed78 |