- astropy.coordinates.spherical_to_cartesian(r, lat, lon)¶
Converts spherical polar coordinates to rectangular cartesian coordinates.
Note that the input angles should be in latitude/longitude or elevation/azimuthal form. I.e., the origin is along the equator rather than at the north pole.
This is a low-level function used internally in
astropy.coordinates. It is provided for users if they really want to use it, but it is recommended that you use the