SimPEG.utils.spherical2cartesian#

SimPEG.utils.spherical2cartesian(m)[source]#

Converts a set of 3D vectors from spherical to Catesian coordinates.

Parameters:
m(n, 3) array_like

An array whose columns represent the a, t and p components of a set of vectors in spherical coordinates.

Returns:
(n, 3) numpy.ndarray

An array whose columns represent the x, y and z components of the set of vectors in Cartesian.

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.spherical2cartesian#

Magnetic inversion on a TreeMesh

Magnetic inversion on a TreeMesh