#!/bin/csh -f #+ # OSIRIS library of scripts # # NAME # flatlamps -- sets the new flatlampss on K1. # # SYNOPSIS # flatlamps [on|off] [power] [-f(orce)] # # DESCRIPTION # Turn on or off the flat lamps originally developed # for MOSFIRE use and set a power level. # - power level of 20 is low power # - power level of 0 is high power # (opposite to what you might think) # # ARGUMENTS # on -turn on power # off -turn off power # power - value 0-20 for high and low setting. # OPTIONS # none # # EXAMPLES # 1) Turn lamps off # flatlamps off # # 2) Turn lamps on # flatlamps off # # 3) Set power level # flatlamps on 14.5 # # EXIT STATUS # 0 - normal exit, no error # 1 - not a valid argument # #+ # Modification History: # 20190520 jlyke - Original adapted from MOSFIRE #------------------------------------------------------------------------------# Boiler plate for "-h" support for command autohelp. if ("$1" == "-h") then help $0 exit $status endif flatlamp $*