simpeg.maps.SphericalSystem.inverse#

SphericalSystem.inverse(u)[source]#

Maps vectors in Cartesian coordinates to spherical coordinates.

Let vx, vy and vz store the x, y and z components of a set of vectors in Cartesian coordinates such that:

u=[xyz]

The inverse mapping recovers the vectors in spherical coordinates, i.e.:

m(u)=[atp]

where a are the amplitudes, t are the azimuthal angles and p are the radial angles.

Parameters:
unumpy.ndarray

The x, y and z components of a set of vectors in Cartesian coordinates. If the mapping is defined for a mesh, the numpy.ndarray has length 3*mesh.nC .

Returns:
numpy.ndarray

The amplitudes (a), azimuthal angles (t) and radial angles (p) for the set of vectors in spherical coordinates. If the mapping is defined for a mesh, the numpy.ndarray has length 3*mesh.nC .