Errata for the NIRC2 Software Design Book

Page # Description
11 The bxy9 script should read:

#!/bin/csh -f
#
# bxy9 x y moves the telescope in a 9-position box pattern, using
#      offsets of x arcsec and y arcsec in detector coordinates
#
# Pattern is:    2 8 4
#                6 1 7
#                3 9 5
#
if (${#argv} == 2) then
    set x = $1
    set y = $2

else if (${#argv} == 1) then
    set x = $1
    set y = $1

else
    echo "Usage: bxy9 x y"
    exit

endif

# Set matrix of offset values.

set xoff = ( 1 0 -2 0  2 -2  1 0  0)
set yoff = (-1 2 -2 2 -1  0 -1 2 -1)
foreach pos (1 2 3 4 5 6 7 8 9)
    echo ""
    echo Position $pos of 9...
    goi
    mxy `math $xoff[$pos] \* $x` `math $yoff[$pos] \* $y`
    odiff >& /dev/null
end