Purpose

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

This script was designed for use when the LRIS RED 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 red CCD readout cycle,
guiding will be lost during readout.

Usage

goitrapr [-nowait] [-both] [nexp]

Arguments

-nowait = return before readout of last image in loop
-both = acquire both a red and a red exposure
nexp = number of exposures to take (default=1)

Output

Text feedback 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 red exposure

goitrapr

2) Take LRIS red and red exposure

goitrapr -both

3) Take 10 LRIS red exposures

goitrapr 10