STScI Logo

xy2rd stsdas.toolbox.imgtools


NAME · USAGE_ · DESCRIPTION · PARAMETERS · EXAMPLES · BUGS
SEE_ALSO

NAME

xy2rd -- Translate a 2-D image pixel coordinate to right ascension and declination.

USAGE

xy2rd infile[group] x y

DESCRIPTION

This task uses the group parameters CRVAL, CRPIX, and the CD matrix coefficients to translate a pixel coordinate to RA and DEC. Thus the epoch of RA and Dec is the same as these group parameters.

PARAMETERS

infile [string]
Input image name. Images are calculated one at a time and wildcards are not supported. If no group number is specified, it assumes the default group of 1.
x [real]
X pixel coordinate.
y [real]
Y pixel coordinate.
(hms) = yes [boolean]
Print the output RA in hour-minute-second and DEC in degree-minute-second?

If hms=no, output will be in decimal degrees.

(ra) [string]
The output right ascension.
(dec) [string]
The output declination.

EXAMPLES

1. Calculate RA and DEC of a pixel in the first group:


  wf> xy2rd w1234567t.d0h 19 53 

2. Calculate RA and DEC of a point in group 2, and produce output in decimal degrees:

  wf> xy2rd w1234567t.d0h[2] 12.34 56.78 h-

BUGS

SEE ALSO

rd2xy


Source Code · Package Help · Search Form · STSDAS