#!/bin/csh -f #+ # image_user_masks -- acquire images of DEIMOS user slitmasks # # Purpose: # Configure spectrograph for zeroth order imaging, turn on appropriate # lamps, and acquire direct images of DEIMOS user slitmasks which can be # used to check alignment boxes for xbox. # # Usage: # image_slitmasks [masks] # # Arguments: # masks = list of slitmasks to image [default=all non-engineering masks] # # Output: # None # # Restrictions: # None # # Exit values: # 0 = normal completion # 1 = wrong number of arguments # # See also: # image_user_masks.tcl GUI # # Example: # 1) take images of all user masks currently loaded: # image_user_masks # # 2) take images of all masks FOOBAR1 and FOOBAR2 # image_user_masks FOOBAR1 FOOBAR2 # #- # Modification history: # 2003-Mar-04 GDW Original version # 2003-Apr-24 GDW Modified to support zeroth order on slider 4 # 2004-Apr-20 GDW Added "cycle_shutter" # 2004-May-17 GDW Removed "-nowait" from "goi" # 2005-May-03 GDW Changed to cycle_shutter -10 # 2006-Oct-30 GDW Added MaskCheck mode #----------------------------------------------------------------------- set buf = $0 set cmd = $buf:t set usage = "Usage: $cmd" set masks = `masknames | awk '/Long/ || /GOH/ || /GOSpH/ || /INDEF/{next}{print $NF}'` set filter = R set save_file = $cmd.$$ # parse args... if ( $#argv >= 1 ) then set masks = ( $* ) endif # print welcome message... cat <