imaginglss.utils.euler module

imaginglss.utils.euler.euler(ai, bi, select=1, fk4=False)[source]

Transform between Galactic, celestial, and ecliptic coordinates.

Use the procedure ASTRO to use this routine interactively

Parameters:

AI : array_like

Input Longitude in DEGREES, scalar or vector. If only two

parameters are supplied, then AI and BI will be modified to contain the output longitude and latitude.

BI : array_like

Input Latitude in DEGREES

SELECT : integer (1-6), optional

Specifying type of coordinate transformation.

SELECT From To | SELECT From To

1 RA-Dec (2000) Galactic | 4 Ecliptic RA-Dec 2 Galactic RA-DEC | 5 Ecliptic Galactic 3 RA-Dec Ecliptic | 6 Galactic Ecliptic

If not supplied as a parameter or keyword, then EULER will prompt for the value of SELECT Celestial coordinates (RA, Dec) should be given in equinox J2000 unless the /FK4 keyword is set.

FK4 : boolean

If this keyword is set and non-zero, then input and output

celestial and ecliptic coordinates should be given in equinox B1950.

Returns:

AO : array_like

Output Longitude in DEGREES

BO : array_like

Output Latitude in DEGREES

Notes

EULER was changed in December 1998 to use J2000 coordinates as the default, ** and may be incompatible with earlier versions***.

Written W. Landsman, February 1987 Adapted from Fortran by Daryl Yentis NRL Converted to IDL V5.0 W. Landsman September 1997 Made J2000 the default, added /FK4 keyword W. Landsman December 1998 Add option to specify SELECT as a keyword W. Landsman March 2003