2007-09-13
Start a sequence of exposures, or control an active sequence.
COMMAND is an exposure command or a control command. The control commands are:
Note 1: Most of the instruments pay no attention to new commands while reading out. So if a pause/stop/abort command is sent to the instrument after readout has started, the command will be run after the exposure is done, when it will be meaningless. I may figure out a sensible way of dealing with this; in the meanwhile the expose command returns a warning after the instrument command fails.
The exposure commands are:
Some instruments (presently only SPICam) allow specifying CCD-related options on as part of the exposure command. These options affect only the current exposure (they are not remembered) and if omitted, the current default value for that instrument is used.
Each user is logged in with a given observing program (e.g. PU04), and can control several instruments. At the same time, all users from the same program are likely collaborating, so the system is set up to remember and maintain a single directory and filename pattern for each program+instrument. In other words, for each instrument that a given program uses, the system remembers and maintains a single path.
All parts of the path are 'sticky': once specified, any user from same program using the same instrument would later get the same values. Well, the sequence number would be incremented.
So if a PU04 user sent: expose inst=echelle object time=10 n=2 name='flat.' seq=14 places=4 PU04 would get two files: hub35m:/export/images/Q3PU04/UT040827/flat.0014.fit and hub35m:/export/images/Q3PU04/UT040827/flat.0015.fit And if another PU04 user then sent: expose inst=echelle bias name='tests/bias.' that user would get: hub35m:/export/images/Q3PU04/UT040827/tests/bias.0016.fit
In order to readily disambiguate which instrument's exposures are being described, the keywords all start with the canonical instrument name. e.g. disNextPath, nicfpsFiles, echelleExpState Furthermore, the name of the sequence's program is always the first element of the keyword values.
All of the directories are listed with trailing Unix '/'es, so the file path in unix or URL format is the concatenation of rootDir, programDir, userDir and the appropriate filename. For example: disFiles="PU04.Ed","hub35m.apo.nmsu.edu","/export/images/","Q3PU04/UT040827","",None,"bias.0006r.fits" corresponds to: /export/images/Q3PU04/UT040827/bias.0006r.fits on hub35m.apo.nmsu.edu
DIS has two cameras. The command and keyword changes are that:
NIC-FPS cannot bin, cannot take biases, and exposures cannot be paused.