harmonica.ProlateEllipsoid#
- class harmonica.ProlateEllipsoid(a, b, yaw, pitch, center, *, density=None, susceptibility=None, remanent_mag=None)[source]#
Prolate ellipsoid with arbitrary orientation.
Define a prolate ellipsoid whose semi-axes lengths are
a > b = c.- Parameters:
- a, b
float Semi-axis lengths of the ellipsoid. Must satisfy the condition:
a > b = c.- yaw
float Rotation angle about the upward axis, in degrees.
- pitch
float Rotation angle about the northing axis (after yaw rotation), in degrees. A positive pitch angle lifts the side of the ellipsoid pointing in easting direction.
- center
tupleoffloat Coordinates of the center of the ellipsoid in the following order: easting, northing, upward.
- density
floatorNone,optional Density of the ellipsoid in \(kg/m^3\).
- susceptibility
floatorNone,optional Magnetic susceptibility of the ellipsoid in SI units. A single float represents isotropic susceptibility in the body. A (3, 3) array represents the susceptibility tensor to account for anisotropy. If None, zero susceptibility will be assigned to the ellipsoid.
- remanent_mag(3,)
arrayorNone,optional Remanent magnetization vector of the ellipsoid in A/m units. Its components are defined in the easting-northing-upward coordinate system and should be passed in that order. If None, no remanent magnetization will be assigned to the ellipsoid.
- a, b
Notes
The three semi-axes
a,b, andcare defined parallel to theeasting,northingandupwarddirections, respectively, before applying any rotation.Rotations directed by
yaware applied using the right-hand rule across the upward axis. Pitch rotations are carried out in the opposite direction, so a positivepitchlifts the side of the ellipsoid pointing in the easting direction.Roll rotations are not enabled in the prolate ellipsoid, since they don’t have any effect due to symmetry. Hence,
rollis always equal to zero for theharmonica.ProlateEllipsoid.- Attributes:
aLength of the first semiaxis.
bLength of the second semiaxis.
cLength of the third semiaxis, equal to
bby definition.densityDensity of the ellipsoid in \(kg/m^3\).
remanent_magRemanent magnetization of the ellipsoid in A/m.
rollRoll angle, equal to zero.
rotation_matrixCreate a rotation matrix for the ellipsoid.
susceptibilityMagnetic susceptibility of the ellipsoid in SI units.
Attributes#
- ProlateEllipsoid.a#
Length of the first semiaxis.
- ProlateEllipsoid.b#
Length of the second semiaxis.
- ProlateEllipsoid.c#
Length of the third semiaxis, equal to
bby definition.
- ProlateEllipsoid.density#
Density of the ellipsoid in \(kg/m^3\).
- ProlateEllipsoid.remanent_mag#
Remanent magnetization of the ellipsoid in A/m.
- ProlateEllipsoid.roll#
Roll angle, equal to zero.
- ProlateEllipsoid.rotation_matrix#
Create a rotation matrix for the ellipsoid.
Use this matrix to rotate from the local coordinate system (centered in the ellipsoid center) in to the global coordinate system (easting, northing, upward).
- Returns:
- rotation_matrix(3, 3)
array Rotation matrix that transforms coordinates from the local ellipsoid-aligned coordinate system to the global coordinate system.
- rotation_matrix(3, 3)
Notes
Generate the rotation matrix from Tait-Bryan intrinsic angles: yaw, pitch, and roll. The rotations are applied in the following order: (ZŶX). Yaw (Z) and roll (X) rotations are done using the right-hand rule. Rotations for the pitch (Ŷ) are carried out in the opposite direction, so positive pitch lifts the easting axis.
- ProlateEllipsoid.susceptibility#
Magnetic susceptibility of the ellipsoid in SI units.
- ProlateEllipsoid.yaw#
- ProlateEllipsoid.pitch#