#!/bin/csh -f #+ # pxy -- move telescope in pixel coordinates of the DEIMOS detector # # Purpose: # Move the telescope a given number of pixels in the "x" and "y" # directions as defined by the DEIMOS detector. # # Usage: # pxy x y # # Arguments: # x = offset in the direction parallel with CCD rows [pixels] # y = offset in the direction parallel with CCD columns [pixels] # # Exit values: # 0 = normal completion # 1 = wrong number of arguments # 2 = arguments not floating point # # Example: # 1) Move the telescope 100 pixels in "x" and -200 in "y": # pxyr 100 -200 # Note that since this is a *telescope* move, the target will # "move" in the OPPOSITE direction! #- # Modification history: # Date unknown RWG Original version # 2000-Jul-05 GDW Added documentation #----------------------------------------------------------------------- # check args... if ( $#argv != 2 ) then echo "Usage: pxyr x y" exit 1 endif # verify floating-point values... is_float $* > /dev/null if ( $status ) then echo "ERROR -- Arguments must be valid floating-point numbers" exit 2 endif # set scale... source $DEIMOS_PROC_DIR/tel/set_scale # convert pixels to arcsec... set dx = `calc "$pscale * $1"` set dy = `calc "$pscale * $2"` # make move... mxy $dx $dy