#!/bin/csh -f #+ # tvfilter -- show or select the DEIMOS guider filter by name # # Purpose: # With no arguments, print the name of the current DEIMOS # guider filter. With an argument, select the named DEIMOS # guider filter. # # Usage: # tvfilter [name] # # Arguments: # name = name of the filter to select # # Output: # - With no arguments, the name of the filter is printed # # Restrictions: # # Exit values: # 0 = normal completion # 1 = wrong number of arguments # # Example: # #- # Modification history: # 2006-Sep-14 GDW Original version #----------------------------------------------------------------------- set buf = $0 set cmd = $buf:t set usage = "Usage: $cmd" # verify args... if ( $#argv > 1 ) then printf "$usage\n" exit 1 endif if ( $#argv == 0 ) then show -s deimot -terse TVFILNAM else modify -s deimot TVFILNAM="$1" exit $status endif