| JEphem Presentation Ephemeris SkyMap Curve Date search Informatic Library Download Glossary About | |
JEphem
Library
Math tips
Cartesian and spherical coordinates
|
|
| Cartesian and spherical coordinates |
|
This page deals with transformations between cartesian and spherical coordinates, for positions and velocity coordinates
Each time, considerations about units used to express the coordinates are taken into account. As I couldn't find the formulae for the velocities on the web, I wrote this page. This has been implemented in jephem.astro.Body.sphereToCart() and cartToSphere().
|
.
with
(formulae 1).
(formulae 2).
depends on the units of
and
, which must be homogenous before applying the formula. For example, if
is in m/s and
in rad/day, the formula can't be applied.
in au/day and
in rad/day. So
are obtained in au/day.
arcsin return a angle between -p/2 and p/2 ; q is expressed in radians.tig.maths.Maths.atan3(double x, double y), which returns a number between 0 and 2p ; j is expressed in radians.
are also expressed in the same unit.
equals to the unit of X, Y, Z.
(formulae 3).




will be expressed in the same unit as
;
depends on the unit of
. The dimension is
. The angular unit is dimensionless, so it is in radians; the time utnit depends on the time unit of
.
are in ua/day, the unit will be rad/day ; if it's km/s, it will be rad/s etc...
|