BAIT: findoffset command

NAME

findoffset - returns angular offset from row, col CCD position

SYNOPSIS

findoffset [row=#] [col=#] [ccd] [guider] [finder] [dr=] [dc=]

or

[dra=#] [ddec=#] [guider]

DESCRIPTION

This program calculates the angular offset in degrees of ra and dec from the center of the CCD in decimal degrees. The `guider' and `finder' options may be used to select the guider or finder image otherwise the default is the main beam CCD.

Note: the `center' of the guider ccd make not be the actual center of the chip but instead is the pixel row and columns specified in ait.config as `GUHOT'.

The pixel size and number are taken from `ait.config' as well as the current values of the rotation angles (CCDROT, GUROT, or TVROT) and the handedness (CCDHAND, GUHAND, or TVHAND).

The output is printed as `x.xxx y.yyy' where the ra offset is NOT corrected for the cosine of the declination, but is instead left in angular units. To center the star on the CCD the offset command `tx offset ra=x.xxx dec=y.yyy cos' can be used.

Alternatively the angular offsets can be specified as dra and ddec degrees and the row/column coordinate is printed out.

OPTIONS

[row=#] row number where the star is.

[col=#] the column number where the star is.

ccd uses the main science ccd (this is the default.

finder uses the finder tv.

guider uses the guider CCD.