simpeg.utils.cartesian2spherical#
- simpeg.utils.cartesian2spherical(m)[source]#
Converts a set of 3D vectors from Cartesian to spherical coordinates.
- Parameters:
- m(
n
, 3) array_like An array whose columns represent the x, y and z components of a set of vectors.
- m(
- Returns:
- (
n
, 3)numpy.ndarray
An array whose columns represent the a, t and p components of a set of vectors in spherical coordinates.
- (
Notes
In Cartesian space, the components of each vector are defined as
In spherical coordinates, vectors are is defined as:
where
is the amplitude of the vector is the azimuthal angle defined positive from vertical is the radial angle defined positive CCW from Easting
Galleries and Tutorials using simpeg.utils.cartesian2spherical
#
Magnetic inversion on a TreeMesh with remanence
Magnetic inversion on a TreeMesh with remanence