## 1.0 Definitions and Principles

This section and the next two succeeding sections will present some of the conventions used in this document. They are not necessarily standard but are adopted for convenience and will be followed consistently. The fourth section describes how to used the procedures to calculate equations to convert equatorial co-ordinates to galactic co-ordinates. The final section gives some thoughts at calculating other co-ordinates systems.

Bold face letters indicate vectors and normal letters indicate scalars.

**a**= a vector whose scalar magnitude = a**x,y,z**= unit vectors indicating the 3 axes of a Cartesian co-ordinate system. A subscript to the unit vectors indicate the co-ordinate system to which they belong. For example,**x**are the 3 unit vectors in the equatorial co-ordinate system and_{e},y_{e},z_{e}**x**are the 3 unit vectors in the galactic co-ordinate system. In both , azimuth angles are measured counter-clockwise from_{g},y_{g},z_{g}**x**when looking down along the_{g}**z**axis and elevation angles are measured from the_{g}**xy**plane. Elevation angles are positive when the angle is measured above the**xy**plane.- a
_{x},a_{y},a_{z}= the scalar magnitude of the 3 components of the vector,**a**.

The vector, **a**, may be written in vector form as follows:

**a**=**x**a_{e}_{x}+**y**a_{e}_{y}+**z**a_{e}_{z}(1)

There are two types of multiplication for vectors: dot products and cross products. Some of their properties are described in the next paragraphs.

## 2.0 Dot Products

A dot product will be indicated by a superscripted period. The dot product of two unit vectors are as follows:

**x**and_{e}^{.}x_{e}, y_{e}^{.}y_{e},**z**= 1 (2)_{e}^{.}z_{e}**x**or_{e}^{.}y_{e}**z**,_{e}**y**or_{e}^{.}x_{e}**z**, and_{e}**z**or_{e}^{.}x_{e}**y**= 0 (3)_{e}

The dot product of two vectors is a scalar defined as follows for the vectors **a** and **b**:

**a**= a^{.}b_{x}* b_{x}+ a_{y}* b_{y}+ a_{z}* b_{z}(4)

This definition arises from the definition of the dot products of unit vectors.

A dot product is commutative; i.e., **a ^{.} b = b ^{.}a**.

The dot product of a unit vector and a vector gives the component of the vector in the direction of the vector. For example:

**x**= a_{e}^{.}a_{x}(5)

This property is used to find the x_{g}, y_{g}, and z_{g} components of a vector that is expressed in equatorial co-ordinates. The three unit vectors, **x _{g}, y_{g}**, and

**z**are expressed in equatorial co-ordinates and then the dot products of each unit vector and the vector are taken.

_{g}A further property of dot products is:

**a**= a * b cos theta (6)^{.}b

Where theta is the angle between the two vectors.

## 3.0 Cross Products

The cross product of two vectors is a third vector orthogonal to the first two. In this document, the symbol for cross product will be [x]. This is not a standard convention as far as I know but one that was invented for this document. The brackets are used to distinguish the cross product from the symbol, **x**, for a unit vector. For example:

**a**[x]**b**=**c**(7)

The vector, **c**, is perpendicular to both **a** and **b**. This property of cross product is used to determine the **y _{g}** unit vector of the galactic co-ordinate system since the

**x**unit vector is defined as the direction toward the galactic center and the

_{g}**z**unit vector is defined as the direction of the galactic north pole. The vector,

_{g}**c**, can be found from the diagonals of the matrix given below.

x_{g} | a_{x} | b_{x} |

y_{g} | a_{y} | b_{y} |

z_{g} | a_{z} | b_{z} |

**c**=**x*** (a_{g}_{y}*b_{z}- b_{y}*a_{z}) +**y*** (a_{g}_{z}*b_{x}- b_{z}*a_{x}) +**z*** (a_{g}_{x}*b_{y}- b_{x}*a_{y}) (8)

Cross products are not commutative so order is important. The effect of using different orders is shown by the equation below.

**a**[x]**b**=**-b**[x]**a**(9)

In finding the third unit vector of an **x,y,z** co-ordinate system when two unit vectors are known, the cross product should be taken in that order as illustrated below. This is a convention that the author cannot find described in the references that he has. it is possible that the conventions used may be different from mathematical texts. However, it seems to work so there is confidence that the results are correct even if the convention is non-standard. The equations used to find the third unit vector when two are known are shown below.

**x**[x]**y**=**z**(10)**y**[x]**z**=**x**(11)**z**[x]**x**=**y**(12)

In calculating the third unit vector for galactic co-ordinates, the unit vector in the direction of the galactic center is assumed to be the **x** vector and the unit vector in the direction of the galactic pole is assumed to be the **z** vector. It is the **y** vector that is desired and therefore Eq. 12 is used.

## 4.0 Calculation of the Galactic Co-ordinate System

The Right Ascensions and Declinations of the galactic center and galactic north pole are given on page 42 of Reference 1.

**Galactic Center**

- RA
_{gc}= 17^{h}45.6^{m}= 266.4000 deg - Dec
_{gc}= -28° 56.3' = -28.9383 deg

**Galactic North Pole**

- RA
_{gp}= 12^{h}51.4^{m}= 192.8500 deg - Dec
_{gp}= 27° 07.7' = 27.128 deg

The **x _{g}** (galactic center) and

**z**(galactic north pole) unit vectors of the galactic co-ordinate system can now be found.

_{g}**x**=_{g}**x*** cos(RA_{e}_{gc})*cos(Dec_{gc}) +**y***sin(RA_{e}_{gc})*cos(Dec_{gc}) +**z***sin(Dec_{e}_{gc}) (13)**x**=_{g}**x***(-0.0550) +_{e}**y***(-0.8734) +_{e}**z***(-0.4839) (14)_{e}**z**=_{g}**x*** cos(RA_{e}_{gp})*cos(Dec_{gp}) +**y*** sin(RA_{e}_{gp})*cos(Dec_{gp}) +**z*** sin(Dec_{e}_{gp}) (15)**z**=_{g}**x*** (-0.8677) +_{e}**y*** (-0.1979) +_{e}**z*** (0.4560) (16)_{e}**y**=_{g}**z**[x]_{g}**x**(17)_{g}**y**=_{g}**x**([-0.1979*-0.4839]-[-0.8734*0.4560])_{e}

+**y**([0.4560*-0.0550]-[-0.4839*-0.8677])_{e}

+**z**([-0.8677*-0.8734]-[-0.0550*-0.1979])_{e}**y**=_{g}**x*** (0.4940) +_{e}**y***(-0.4449) +_{e}**z***(0.7470) (18)_{e}

Equations 14 (x_{g}), 18 (y_{g}) and 16 (z_{g}) can be used to calculate the galactic co-ordinates of any star whose position is given in equatorial co-ordinates. Assume a star position defined by the following equation.

**S**=_{e}**x***X_{e}_{e}+**y***Y_{e}_{e}+**z***Z_{e}_{e}(19)

Where:

**S**= the vector expressed in equatorial co-ordinates that defines the star's position._{e}- X
_{e}= the scalar magnitude of the component of**S**in the_{e}**x**direction._{e} - Y
_{e}= the scalar magnitude of the component of**S**in the_{e}**y**direction._{e} - Z
_{e}= the scalar magnitude of the component of**S**in the_{e}**z**direction._{e}

If X_{g}, Y_{g}, and Z_{g} are the magnitudes of the star's position in the x_{g}, y_{g}, and z_{g} directions, they can be found from the following equations. **x _{g}, y_{g},** and

**z**are defined by Eq. 14, 18, and 16 respectively and

_{g}**S**is definedby Eq. 19.

_{e}- X
_{g}=**x**(20)_{g}^{.}Se - Y
_{g}=**y**(21)_{g}^{.}Se - Z
_{g}=**z**(22)_{g}^{.}Se - X
_{g}= -(0.0550)*X_{e}- (0.8732)*Y_{e}- (0.4839)*Z_{e}(23) - Y
_{g}= (0.4940)*X_{e}- (0.4449)*Y_{e}+ (0.7470)*Z_{e}(24) - Z
_{g}= -(0.8677)*X_{e}- (0.1979)*Y_{e}+ (0.4560)*Z_{e}(25)

These are the equations previously derived by the author and the methodology has been described in some detail. A program was not written to calculate the 9 coefficients in Eqs. 23-25 because the interest was only in converting equatorial co-ordinates to galactic. Once they were calculated, there didn't seem to be a need to calculate them again. Nevertheless, some data sources such as the ** Observers's Handbook** are issued annually and give star positions for the epoch of the year of publication. The major star data sources, however, seem to publish data for epochs at 50 year intervals such as 1950.0 and 2000.0. The next section discusses how other co-ordinates systems might be found and when this is done, the conversion equations described above should be programmed.

The above equations (Eq. 23-25) can be used to calculate galactic longitude, l and latitude, b.

- b = atan[Z
_{g}/X_{g}^{2}+ Y_{g}^{2})^{0.5}] (26) - l = atan[Y
_{g}/X_{g}]

(Ed note: "( )^{0.5}" is shorthand for "take the square root of")

Galactic latitude and longitude are one way of expressing a star's position in the galactic co-ordinate system. In calculating l, a function called ATAN2 is available on many PCs, certainly all the newer ones. This calculates angles to +/- 180°. The ATAN function on older PCs looks at the quotient of the numerator and denominator of the tangent. It can give angles only to +/- 90°. If the numerator and denominator are both negative, the quotient will be positive and the angle will be in the first quadrant, the same as if both were positive. The ATAN2 function looks at the sign of both the numerator and denominator and outputs the angle accordingly. Logic can also be used so that if the output angle is negative, 360° is added to the output angle to yield an angle that is between 0 and 360°.

It should be noted that the galactic co-ordinate systems is still an **Earth** centered system, just like the equatorial system. It also implicitly assumes that the Earth is on the galactic plane. According to Ref.2, p 94, the Earth is, at present, 50 light years above the plane of the galaxy and the distance is increasing. The error caused by this difference between Earth's position above the galactic plane and the assumption that is lies on the galactic plane is probably negligible.

## 5.0 Calculation of the Other Co-ordinate Systems

The sections above have described how to convert the position of a star expressed in equatorial co-ordinates to a position expressed in galactic co-ordinates. A desire has been expressed (ed. note: By me!) to convert star positions from equatorial co-ordinates to some other co-ordinates. This section will present some ideas on the subject.

Assume a star (Star A) is selected as the origin of the proposed co-ordinate system. The X_{e}, Y_{e}, and Z_{e} co-ordinates of this star in the Earth centered system can be used to calculate the X_{e}s, Y_{e}s, and Z_{e}s of all other stars in the data base whose xyz positions are given in Earth centered co-ordinates. This is just a change in origin and gives a modified co-ordinate system whose x, y, and z axes are parallel to x, y, and z axes of the equatorial co-ordinate system but whos origin is centered on Star A.

Then a second star (Star B) is selected as the pole star (z axis) for the new co-ordinate system. A vector can be written in the modified equatorial co-ordinate system for the z axis.

**Z**=_{n}**x***X_{eA}_{eA}+**y***Y_{eA}_{eA}+**z***Z_{eA}_{eA}(28)

Where:

**Z**= a vector from Star A to Star B. The direction of this vector is the z axis unit vector,_{n}**z**._{n}**x**= the x direction unit vector in the modified equatorial co-ordinate system._{eA}**y**= the y direction unit vector in the modified equatorial co-ordinate system._{eA}**z**= the z direction unit vector in the modified equatorial co-ordinate system._{eA}- X
_{eA}= the scalar magnitude of the**x**component of_{eA}**Z**._{n} - Y
_{eA}= the scalar magnitude of the**y**component of_{eA}**Z**._{n} - Z
_{eA}= the scalar magnitude of the**z**component of_{eA}**Z**._{n}

The elevation angle, E_{eA}, and azimuth angle, A_{eA} from Star A to Star B in the modified co-ordinate system can be found from the following equations.

- E
_{eA}= atan [Z_{eA}/(X_{eA}^{2}+ Y_{eA}^{2})^{0.5}] (29) - A
_{eA}= atan [Y_{eA}/X_{eA}] (30)

The **z _{n}** unit vector of the new system can now be written in the modified equatorial co-ordinates system.

**z**=_{n}**x***cos(A_{eA}_{eA})*cos(E_{eA}) +**y***sin(A_{eA}_{eA})*cos(E_{eA}) +**z***sin(E_{eA}_{eA}) (31)

The **x _{n}** and

**y**vectors must lie in a plane that is perpendicular to

_{n}**z**. Recalling Eq. 6:

_{n}**a**= a*b cos theta (6)^{.}b

If **a** and **b** are perpendicular to each other, theta must be 90 deg and cos theta is 0. Therefore:

**x**= 0 (32)_{n}^{.}z_{n}**y**= 0 (33)_{n}^{.}z_{n}

There are two possible **x _{n}** vectors that can be defined. One has the same A

_{eA}as the

**z**vector with an elevation angle of (E

_{n}_{eA}- 90°) if E

_{eA}is positive. The other has an elevation angle of (E

_{eA}+ 90°) if E

_{eA}is positive and an azimuth angle that is the reciprocal of A

_{eA}. If E

_{eA}is negative, the signs on the 90° angles are reversed. An example will be shown to illustrate this.

Assume E_{eA} = +75°. Then the elevation angle of one possible **x _{n}** is -15° with an azimuth of A

_{eA}. If 90° is added to 75°, an angle of 165° results. This gives an elevation angle of +15° at an azimuth of A

_{eA}+180° for a second possible

**x**. For the assumed value of E

_{n}_{eA}(+75°), the elevation angle of

**x**in modified equatorial co-ordinates must fall within the range of +/- 15° but any value of azimuth angle is possible. With an E

_{n}_{eA}elevation angle of -75°,

**x**can have an elevation angle of +15° at the

_{n}**z**angle of A

_{n}_{eA}and the second elevation angle of

**x**is -15° at an azimuth of A

_{n}_{eA}+ 180°.

In general terms, the vector **x _{n}** can be written as follows.

**x**=_{n}**x***cos(A)*cos(E) +_{eA}

**y***sin(A)*cos(E) +_{eA}

**z***sin(E) (34)_{eA}

Where:

- A = the azimuth angle of
**x**. A can be any value._{n} - E = the elevation angle of
**x**. E must fall in the range determined by E_{n}_{eA}.

If Eq. 31 and 34 are substituted in Eq. 32 the following equation results.

- cos(A
_{eA})*cos(E_{eA})*cos(a)*cos(E) + cos(E_{eA})*sin(A_{eA})*cos(E)*sin(A) + sin(E_{eA})*sin(E) = 0 (35)

In Eq. 33, A_{eA} and E_{eA} are determined by the choice of Star A (the star selected as the origin of the new co-ordinate system) and Star B (the star selected to determine the direction of **z _{n}**) but E and A have to be determined. A value of A or a value of E (within the limits determined by E

_{eA}) can be selected and put in Eq. 35. However, once the value of A or E has been chosen, the other parameters must be selected to make Eq. 35 equal to zero. This could be done by an iterative computer program that tries values for the remaining undefined parameter until Eq. 35 is satisfied. It should be noted that for every value of E selected, there will be two values of A. These will differ only in sign; one will be positive and one will be negative. The numerical value will be the same.

A range of values for A, E sets can be found in this manner but the user of this procedure must select one A, E set based on whatever criteria he can establish. Once **x _{n}** is determined,

**y**can be calculated with the procedures described in Section 4.

_{n}One factor that should be considered is the degradation of the accuracy of star positions with distance from Earth. The positions of stars near to Earth are fairly accurately know so shifting the origin to a nearby star shouldn't cause much error. Stars at an extremely far distance would not change in apparent position for small shifts in origin. In mapping the skies of another star showing the positions of the stars, one should be able to predict what the skies would look like when nearby stars are charted. The extremely far stars would look the same as they do from Earth. There may be an intermediate distance where the position errors are enough to matter. The author has not analyed this problem but others might have.

Another co-ordinate system that might be considered is Sun-centered ecliptic. This system would be expected to be used for interplanetary astrogation since the orbital planes of most planets lie near the ecliptic. It might also be of interest for short distance interstellar travel where distances are less than a couple of hundred light years and galactic structure is not a factor. Measuring star positions with reference to the ecliptic might be more meaningful than with reference to either the galactic or equatorial planes.

## References

- Ridpath, Ian, ed.,
**NORTON'S 2000.0: STAR ATLAS AND REFERENCE HANDBOOK,**Eighteenth Edition, John Wiley & Sons, New York, NY, (1991). - Henbest, Nigel & Heather Couper,
**THE GUIDE TO THE GALAXY**, Cambridge University Press, (1994).