spacepy.coordinates.car2sph¶
- spacepy.coordinates.car2sph(car_in)[source]¶
Coordinate transformation from Cartesian to spherical
- Parameters:
- - car_in (list or ndarray)coordinate points in (n,3) shape with n coordinate points in
units of [Re, Re, Re] = [x,y,z]
- Returns:
- - results (ndarray)values after conversion to spherical coordinates in
radius, latitude, longitude in units of [Re, deg, deg]
See also
Examples
>>> sph2car([1,45,0]) array([ 0.70710678, 0. , 0.70710678])