#!/bin/csh -f #+ # gxy -- move the telescope in GUIDER coordinates # # Purpose: # Offset the telescope by the given number of arcseconds in the # guider coordinate system, which is rotated 180 degrees relative # to the DEIMOS coordinate system. # # Usage: # gxy x y # # Arguments: # x = offset in the direction parallel with guider rows [arcsec] # y = offset in the direction parallel with guider columns [arcsec] # # Exit values: # 0 = normal completion # 1 = wrong number of arguments # # Example: # #- # Modification history: # Date unknown RWG Original version # 2000-Jul-05 GDW Added documentation # 2002-Jun-12 GDW Adapted for DEIMOS # 2013-Oct-04 GDW Added wftel #----------------------------------------------------------------------- # check args... if (${#argv} != 2) then echo "Usage: gxy x y" exit 1 endif # Grab the current value of autpause... set autresum = `wftel -p` # effect the move... set x = $1 set y = $2 modify -s dcs silent tvxoff=$x tvyoff=$y rel2curr=t # wait for guider update... wftel -v $autresum exit