| xy2rd | stsdas.toolbox.imgtools | xy2rd |
xy2rd -- Translate a 2-D image pixel coordinate to right ascension and declination.
xy2rd infile[group] x y
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.
If hms=no, output will be in decimal degrees.
1. Calculate RA and DEC of a pixel in the first group:
wf> xy2rd w1234567t.d0h 19 532. 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-