This document contains sample code that shows pyGPlates solving common plate tectonic problems.
The Getting started section has a Getting Started tutorial as well as an installation guide to help get started.
This section covers how to get geometry data into a state where it can be reconstructed by pyGPlates.
- Import geometries and assign plate IDs
- Import points from a text file and assign plate IDs
- Load points from a GMT file and assign plate IDs
- Import polylines from a text file and assign plate IDs
- Load polylines from a GMT file and assign plate IDs
This section covers how to load and save collections of features from/to files.
This section covers how to create features from scratch and how to query their properties.
- Create common feature types
- Create a coastline feature from present-day geometry
- Create an isochron feature from geometry at a past geological time
- Create a mid-ocean ridge feature from geometry at a past geological time
- Create a subduction zone feature from present-day geometry
- Create a virtual geomagnetic pole feature
- Create a motion path feature
- Create a flowline feature
- Create a total reconstruction sequence (rotation) feature
- Query common feature types
- Query a coastline feature
- Query an isochron feature
- Query a mid-ocean ridge feature
- Query a subduction zone feature
- Query a virtual geomagnetic pole feature
- Query a motion path feature
- Query a flowline feature
- Query a total reconstruction sequence (rotation) feature
This section covers how to reconstruct regular features, motion path features and flowline features to past geological times.
- Reconstruct regular features
- Reconstruct motion path features
- Reconstruct flowline features
This section covers querying and modifying the rotations that are used to reconstruct features to past geological times.
This section covers how to reconstruct (or resolve) dynamic geometries (such as topological plate boundaries) at past geological times, and how to query their topologies.
- Find average area and subducting boundary proportion of topologies
- Find the total length of ridges and subduction zones
- Find gaps and overlaps in global topological boundaries
- Reconstruct crustal thickness and tectonic subsidence
- Create topological features
- Sample code
This section covers how to calculate velocities of features as they move through geological time and also how to calculate velocities of plates at non-moving point locations.
- Calculate velocities by plate ID
- Calculate velocities in dynamic plates
This section covers queries involving distances between geometries.
This section covers some use cases specific to the isochron feature type.