#!/bin/csh -f
#+
# OSIRIS library of scripts
#
# NAME
#      ssampmode - wrapper for osirisSampmode spec
#
# SYNOPSIS
#     ssampmode [type [Nsamp [Groups] ] ] 
#
# DESCRIPTION
#      sets or returns the current sampmode
#
# ARGUMENTS
# sets the readout mode to one of three types:
# 1 = single   single sampling
# 2 = CDS      correlated double sampling
# 3 = MCDS     multiple correlated double sampling
# 3 = UTR      Up the ramp sampling
#
# If MCDS is chosen, a second parameter can be used to set the number
# of samples.  The "nsamp" command will do this as well.
#
# If UTR is chosen a third parameter can be used to set the number
# of groups.  The "ngroups" command will do this as well.
#
# If no arguments are given, the current value is displayed.
#     
# Will reset itime to minimum if needed.
#
#
# OPTIONS
#
# EXAMPLES
#    ssampmode 2     - sets SPEC sampmode to CDS
#    ssampmode 3 16  - sets SPEC sampmode to MCDS, numreads to 16 
#
# ENVIRONMENT VARIABLES
#
# FILES
#
# SERVERS & KEYWORDS
#    
#
#
# SCRIPTS CALLED
#
# EXIT STATUS
#     0 - normal exit, no error
#     1 - script aborted by an interrupt
#     2 - syncheck error
#     3 - error parsing command line input
#     other errors...
#
#
#
# Modification History:
# 20180703 - jlyke Original
#------------------------------------------------------
# Boiler plate for "-h" support for command autohelp.

if ("$1" == "-h") then
    help $0
    exit $status
endif

osirisSampmode spec $*