simpeg.maps.SphericalSystem.inverse#
- SphericalSystem.inverse(u)[source]#
Maps vectors in Cartesian coordinates to spherical coordinates.
Let
, and store the x, y and z components of a set of vectors in Cartesian coordinates such that:The inverse mapping recovers the vectors in spherical coordinates, i.e.:
where
are the amplitudes, are the azimuthal angles and are the radial angles.- Parameters:
- u
numpy.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 .
- u
- Returns:
numpy.ndarray
The amplitudes (
), azimuthal angles ( ) and radial angles ( ) for the set of vectors in spherical coordinates. If the mapping is defined for a mesh, the numpy.ndarray has length 3*mesh.nC .