PyGPlates enables access to GPlates functionality via the Python programming language.
PyGPlates can now be installed using conda or pip.
Please see the installation instructions in the pyGPlates documentation.
Note: The old method of installing a pre-compiled binary package is no longer available. This involved extracting a zip file (or installing a Debian package) and then manually adding the installed location to the
PYTHONPATHenvironment variable.
conda install -c conda-forge pygplatespip install pygplatesTopologicalModel and TopologicalSnapshot,
TopologicalModel and TopologicalSnapshot are better than using the resolve_topologies() function.TopologicalSnapshot.calculate_plate_boundary_statistics() returns a PlateBoundaryStatistic at each point that contains:
Feature.create_topological_network_feature():
TopologicalSnapshot at static points to:
ReconstructSnapshot at static points to:
TopologicalModel.reconstruct_geometry() but at a finer granularity:
ReconstructedFeatureGeometry, ReconstructedMotionPath, ReconstructedFlowline.ReconstructedFeatureGeometry.get_reconstructed_geometry_point_velocities().ResolvedTopologicalLine, ResolvedTopologicalBoundary, ResolvedTopologicalNetworkResolvedTopologicalLine.get_resolved_geometry_point_velocities().ResolvedTopologicalSharedSubSegment, ResolvedTopologicalSubSegment.ResolvedTopologicalSharedSubSegment.get_resolved_geometry_point_velocities().Documentation and tutorials are available on the User Documentation page.
The pyGPlates Documentation includes:
Note: The
Primerchapter is new and is a work in progress.
The pyGPlates Tutorials are Jupyter Notebooks that analyse and visualise real-world data using pyGPlates. These tutorials complement the sample code in the pyGPlates documentation by providing a more research-oriented focus.