Purpose

Take one or more images with the LRIS BLUE camera, using the
current instrument settings and using the trapdoor as a shutter.

This script was designed for use when the LRIS BLUE side shutter
fails and the trapdoor may be used to shutter the light.

When acquiring multiple exposures, the script will
pause before initiating a new exposure to allow the
guide star to be re-centered. Since the trapdoor
must remain closed during the blue CCD readout cycle,
guiding will be lost during readout.

Usage

goitrapb [-nowait] [-both] [nexp]

Arguments

-nowait = return before readout of last image in loop
-both = acquire both a red and a blue exposure
nexp = number of exposures 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 LRIS blue exposure

goitrapb

2) Take LRIS blue and red exposure

goitrapb -both

3) Take 10 LRIS blue exposures

goitrapb 10

4) Take 10 LRIS blue exposures, and exit when the final one

begins to readout

goib -nowait 10