#!/bin/csh -f
#+
# goidark -- acquire dark DEIMOS image(s)
#
# Purpose:
#	Take one or more images with the DEIMOS camera, using the
#	current instrument settings, without opening the shutter
#
# Usage:
#	goidark [-nowait] [nexp]
# 
# Arguments:
#	-nowait = return before readout of last image in loop
#	 nexp   = number of exposure to take (default=1)
# 
# Output:
#	Text feeback is sent to the terminal.
# 
# Exit values:
#	 0 = normal completion
#	 1 = wrong number of arguments
#	 2 = error during exposure
#
# Example:
#	1) Take a single DEIMOS dark exposure:
#		goidark
#
#	2) Take 10 DEIMOS dark exposures:
#		goidark 10
#
#	3) Take 10 DEIMOS dark exposures, and exit when the final one
#	begins to readout:
#		goidark -nowait 10
#
#-
# Modification history:
#	1999-Feb-24	GDW	Original version
#	2000-Aug-07	GDW	Modified for dark from goi
#       2002-Jun-06	GDW	Adapted for DEIMOS
#-----------------------------------------------------------------------
goi -dark $*
