DEIMOS
goi script

Name

goi -- acquire DEIMOS image(s)

Purpose

Take one or more images with the DEIMOS detector, using the
current instrument settings

Usage

goi [-quiet] [-nowait] [-dark] [-sleep nsleep] [nexp]

Arguments

-quiet = suppress certain output
-nowait = return before readout of last image in loop
-dark = take DARK exposure (shutter does not open)
-sleep = sleep for the specified number of seconds on each iteration
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

Note

A challenge here is to avoid race conditions. The normal sequence of
keyword transitions at the end of the exposure is:
WCRATE=true
WSERV=true
WCRATE=false
WSERV=false
WDISK=true
WDISK=false
However, I have seen cases in which WSERV stays true until
WDISK has made BOTH transitions:
WCRATE=true
WSERV=true
WCRATE=false
WDISK=true
WDISK=false
WSERV=false
In such cases, the script will hang waiting to check for WDISK=true.
To prevent it from hanging for long, we put a 5 sec timeout on
this waitfor. Crude but effective.

EXAMPLE

1) Take a single DEIMOS exposure:
goi

2) Take 10 DEIMOS exposures:
goi 10
3) Take 10 DEIMOS exposures, and exit when the final one
begins to transfer to polo:
goi -nowait 10

4) Take 5 exposures and pause 30 sec in between:
goi -sleep 30 5

See Also

The shell script goi
DEIMOS script index


Go to: DEIMOS Home Page - Instruments Home Page - Keck Home Page

Last modified: Mon Jun 30 15:08:14 2014