#!/bin/csh -f #+ #OSIRIS library of scripts # #NAME # mov - Moves an object from (x0,y0) on the imager # to (x1,y1) using the osirisMoveTel script # #SYNOPSIS # mov x0 y0 x1 y1 # #DESCRIPTION # Moves an object from pixel to pixel on the imager. # #OPTIONS # (x0, y0): Current position of object. # (x1, y1): Object destination. # #EXAMPLES # mov 994 1100 1024 1024 # #ENVIRONMENT VARIABLES # none # #FILES # none # #SERVERS & KEYWORDS # none # #SCRIPTS CALLED # help, syncheck, osirisMoveTel # #EXIT STATUS # 0 - normal exit, no error # 1 - script aborted by an interrupt # 2 - syncheck error # #SEE ALSO # N/A #- # # Modification History: # 2019o910 - CAAI: Original version. # # Boiler plate for "-h" support for command autohelp. if ("$1" == "-h") then help $0 | more exit $status endif if ( $#argv == 4 ) then set x0 = $argv[1] set y0 = $argv[2] set x1 = $argv[3] set y1 = $argv[4] else echo 'Wrong number of arguments' exit 1 endif osirisMoveTel imag $x0 $y0 imag $x1 $y1 # Set up to trap interrupts (Ctrl-C, etc.) onintr abort abort: # Block of code to handle interrupts. exit 1