Usage
glactc(ra, dec, year, gl, gb, j, degree=FALSE, fk4 = FALSE, supergalactic = FALSE)
Arguments
ra
Right Ascension (j=1) or Galactic longitude (j=2), in decimal hours or degrees, scalar or vector
dec
Declination (j=1) or Galactic latitude (j=2), in degrees, scalar or vector
year
equinox of ra and dec, scalar
gl
Galactic longitude or Right Ascension, in degrees, scalar or vector
gb
Galactic latitude or Declination, in degrees, scalar or vector
j
integer indicator, direction of conversion
1: ra,dec --> gl,gb
2: gl,gb --> ra,dec
degree
if set, then the RA parameter (both input and output) is given in degrees rather than hours (default=FALSE)
fk4
if set, then the celestial (RA, Dec) coordinates are assumed to be input/output in the FK4 system. By default, coordinates are assumed to be in the FK5 system. (default=FALSE)
supergalactic
if set, the function returns SuperGalactic coordinates (see details). (default=FALSE)