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