Abstract
A variety of rotation operations are needed in paleomagnetism. These include transformations to the geographic coordinate system, tilt correction, finding virtual geomagnetic poles, and drawing demagnetization paths. Different methods have been used for each rotation operation - graphical manipulations on a stereonet, matrix calculations, and spherical trigonometry - and computer software has been developed based on these methods. Quaternions, which are commonly used in three-dimensional computer graphics, can handle rotations about arbitrary axes and provide descriptions of various rotation operations in paleomagnetism in a unified manner. Conversion from a sample coordinate system to the geographic coordinate system depends on orientation methods that vary by sample type and laboratory. Conventionally, coordinate transformations have been calculated using rotation matrices by Euler angles based on stereonet manipulations, but quaternions can flexibly accommodate samples oriented by different conventions. Tilt correction can be expressed as a single rotation about the strike direction of the formation. Virtual geomagnetic poles can be obtained by two-step rotations using quaternions. Furthermore, spherical linear interpolation for drawing demagnetization paths can be performed using quaternion rotation. Python functions are included for all of the rotation operations discussed in this paper; therefore the readers can incorporate these functions into their own programs to perform rotations using quaternions.