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.
- 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
If hms=no, output will be in decimal degrees.
- (ra) [string]
- The output right ascension.
- (dec) [string]
- The output declination.
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 12.34 56.78 h-