Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

299 fix 04 velocity basics #319

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

jcannon-gplates
Copy link
Contributor

Using new pygplates.TopologicalSnapshot.get_point_velocities() function (introduced in pyGPlates 1.0.0rc1) to calculate velocities at point locations. This uses resolved topologies at the specified reconstruction time.

The previous approach was to partition points (to assign plate IDs) using pygplates.PlatePartitioner. But there are various issues with that approach, such as using static polygons to assign plate IDs which can be problematic at non-present day times because the static polygons do not have global coverage (like topological plates do).

closes #299

Introduced in pygplates 1.0.0rc1.
Calculates point velocities from a snapshot of resolved topologies.
But former is in cms/yr unlike the latter (kms/myr) in order to retain
backward compatibility.
Uses PlateReconstruction.get_point_velocities() instead of
ptt.velocity_tools.
- Velocity scatter plot now looks better (see #299).
- Also plot mid-ocean ridges and transforms.
Reverse reconstruct initial points when initial time is non-zero
regardless of whether plate IDs were supplied by user or not.
This should fix #136.

Also:
- Added anchor plate ID to Points class (cannot be changed).
- Added static polygons snapshot and general reconstruct snapshot
  methods to PlateReconstruction.
- Reconstruction in PlateReconstruction now supports a non-zero
  'from_time' which is now assumed to be a feature containing
  non-present-day geometry (which is first reverse reconstructed).
- Separated class attributes from __init__ parameters in
  PlateReconstruction and Points classes.
- Test creation of Points object with non-zero time and anchor plates.
- Test Points.reconstruct and Points.reconstruct_to_birth_age using
  actual reconstructed data.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reproducing the 04-VelocityBasics results in a velocity of 0.
1 participant