/qpm

Primary LanguagePython

qpm

Quaternions for rotations in paleomagnetism

Python scripts are prepared to perform rotations used in paleomagnetism based on quaternions. For transformation from a sample coordinate to the in situ geographic coordinate, python functions for block samples oriented by (strike, dip) ("qisb"), drill cores oriented by (azimuth, plunge) ("qisd"), and horizontally unoriented vertical piston cores ("qisp") are available. Functions for tilt correction by (strike, dip) of the formation ("qtilt"), for VGP calculation ("qvgp") and for calculating expected magnetic field direction from VGP ("qvgpx") are also included. After installing numpy-quaternion, these scripts can be executed in python by importing "qpm" and following the example codes given as comments.