#!/bin/csh -f #+ # oneamp -- set CCD to single-amp readout mode # # Purpose: # Set the DEIMOS CCD to use single-amplifier readout mode on the specified amp. If no amp is specified, use the B amp. # # # Usage: # oneamp [amp] # # Arguments: # amp = A or B # # Output: # Keyword output is echoed to stdout # # Restrictions: # None # # Exit values: # 0 = normal completion # 1 = wrong number of arguments # # Example: # 1) Reset the CCD to single-amp mode: # oneamp # #- # Modification history: # 2002-Jun-20 GDW Original version # 2009-Feb-28 GDW Add amp parameter #----------------------------------------------------------------------- set buf = $0 set cmd = $buf:t set usage = "Usage: $cmd [amp]" set amp = B # verify args... if ( $#argv > 1 ) then printf "$usage\n" exit 1 endif # parse args... if ( $#argv >= 1 ) then set amp = $1 shift endif # set amps... modify -s deiccd ampmode=SINGLE:$amp