eq2gal returns the Galactic longitude and latitude in degrees (two column output).
gal2eq returns the Equatorial RA and Dec in degress (two column output).
Arguments
RA
Numeric vector; Right Ascension in degrees (J2000 system). For convenience this can also be a two column matrix / data.frame containing RA and Dec columns.
Dec
Numeric vector; Declination in degrees (J2000 system).
gal_long
Numeric vector; Galactic Longitude in degrees (J2000 system). For convenience this can also be a two column matrix / data.frame containing gal_long and gal_lat columns.
gal_lat
Numeric vector; Galactic Latitude in degrees (J2000 system).
pole_RA
Numeric scalar; Right Ascension of Galactic Pole in degrees (J2000 system).
pole_Dec
Numeric scalar; Declination of Galactic Pole in degrees (J2000 system).
eta
Numeric scalar; Tilt of the Earth's axis in degrees (J2000 system).
Author
Aaron Robotham
Details
Approximate simple conversions, accurate usully to 0.1 arcseconds
References
"Practical astronomy with your calculator" (Peter Duffett-Smith)