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.

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

$\mathbf{v} = (v_x, v_y, v_z)$

In spherical coordinates, vectors are is defined as:

$\mathbf{v^\prime} = (a, t, p)$

where

• $$a$$ is the amplitude of the vector

• $$t$$ is the azimuthal angle defined positive from vertical

• $$p$$ is the radial angle defined positive CCW from Easting

Galleries and Tutorials using SimPEG.utils.cartesian2spherical#

Magnetic inversion on a TreeMesh

Magnetic inversion on a TreeMesh