wiki:HetProcedures/RA/lrs2

Version 5 (modified by sco, 8 years ago) (diff)

--

LRS2

The LRS2 instrument is controlled by the lrs2.as.utexas.edu system. These notes assume one is logged in as the hetdex user.

Startup

Linux init scripts are used to start the data acquisition server and temperature monitor.

$ sudo /etc/init.d/camra_server_start.sh
$ sudo /etc/init.d/camra_monitor

Taking Exposure

There are many ways to take an exposure, the simplest uses a Python script to issue the expose command.

$ cd $HET_SRC_ROOT
$ ./camra/testing/lrs2.py 'expose( seconds=20, observation=1234, exposure=1, x_binning=1, y_binning=1, type="sci" )'

The exposure command will return once the readout has started. The output FITS files will be available 40-50 seconds after that, depending on binning and disk I/O. The return string of the expose command provides the output directory for that exposure.

The exposure time is in the "seconds" parameter (minimum of 15).

Observation and exposure determine the directories under which the data are grouped. An example output directory structure might be

/opt/data/20160309/lrs20000023/exp01/
                              /exp02/

So here two exposures are grouped under the observation number 23 taken on 20160309.

The combination of observation/exposure must be unique for the UTC date. The agreed upon types are "sci", "cmp", "zro", "drk", "tst".

Checking Hardware Status

$ cd $HET_SRC_ROOT
$ ./camra/testing/lrs2.py 'get_hardware_status( update_state="true" )'

The status may be queried mid-exposure by omitting the update_state parameter.

Calibration Script

A prototype calibration script is available. This script attempts to expose all known supported FCU configurations as well as darks and biases. The console output of the script provides a log of the calibration process so it is recommended to capture the output to a log file via tee.

$ cd $HET_SRC_ROOT
$ ./integration/lrs2-cal.py -l lamp1b lamp2b -o 101 -n 11    2>&1 | tee lrs-cal.log

The above will expose the lamps lamp1b lamp2b as observation 101 (and subsequent numbers) and take 11 darks and biases at the end.

Calling the script with --help produces more information:

[hetdex@lrs2 trunk]$ ./integration/lrs2-cal.py --help
usage: lrs2-cal.py [-h] [-l LAMPS [LAMPS ...]] [-o OBS] [-n NDARK]

LRS2 Calibration Script.

optional arguments:
  -h, --help            show this help message and exit
  -l LAMPS [LAMPS ...], --lamps LAMPS [LAMPS ...]
                        List of lamps to expose, e.g. '-l lamp1a lamp3a'. The
                        list is a subset of ['lamp1a', 'lamp3a', 'lamp4a',
                        'lamp1b', 'lamp2b', 'lamp4b', 'lamp5b', 'ldls']
  -o OBS, --obs OBS     Observation number to start with, defaults to 101.
  -n NDARK, --ndark NDARK
                        Number of darks and biases to take, defaults to 11.

Additional Help

Help for the complete set of CAMRA commands can be obtained by issuing a 'help()' command to the CAMRA subsystem.

$ cd $HET_SRC_ROOT
$ ./camra/testing/lrs2.py 'help()'

Attachments (5)

Download all attachments as: .zip