Note that for non-direct images (e.g., grating tilt is not at 0-order and/or mosaic readout mode is SPECTRAL) or non-illuminated images (i.e., OBSTYPE is DARK or BIAS), if the AUTOPANE mode is MaskArea or AlignArea, then the WINDOW keyword will be set for full-frame readout.
show -s deiccd autopaneand the value can be changed via
modify -s deiccd autopane=valuewhere value is one of the valid modes (or the numeric equivalent) listed in the table above.
The MaskArea mode will become fully operational once optimal direct imaging readout windows have been measured for all of the combinations of gratings and sliders. (As soon as each new optimal readout window is measured, it is a simple matter to update the AUTOPANE software to utilize it.) In the meantime, when the MaskArea mode is used with a grating/slider combination that has not yet had its optimal readout window measured, the WINDOW keyword will be set (at the start of the exposure) to provide a full-frame readout (i.e., all 4096 rows from each of the selected CCDs).
The fourth AUTOPANE mode (AlignArea) will be implemented as time permits. All of the hooks needed to support this mode have been installed; the remaining implementation involves extending the capabilities of an existing C-shell script. I hope to have this mode fully operational in time for the DEIMOS run that is scheduled to begin on September 21. Protoype versions may be available for testing sometime in August. In the meantime, attempts to start an exposure with AUTOPANE set to AlignArea will result in an error message and rejection of the exposure start request. Accordingly, please don't attempt to use this mode until further notice.
NOTE: All existing DEIMOS observing scripts (e.g., the DEIMOS MIRA scripts) that perform windowed readouts of the science mosaic (i.e., by setting the deiccd WINDOW keyword) now should be modified to include the command
modify -s deiccd autopane=manualprior to setting the WINDOW keyword. Those scripts that save and restore the prior value of the WINDOW keyword should also save and restore the prior value of the AUTOPANE keyword.
As noted earlier, the various AUTOPANE modes can be selected either from the GUI or by accessing the keyword directly (e.g., via a "modify" command in script). The automatic resetting of the WINDOW keyword is performed by a special script (watch_pane) that is invoked whenever a science mosaic exposure is started (regardless of whether that exposure was started from a GUI or from a script).
Recent experiments have determined that if we set the CCD readout window so that we only read out the rows of the CCD mosaic that encompass the image of the outline of the slitmask form (approximately 2600 rows), the time required to read out and write the image to disk drops to 33 seconds (a savings of 26 seconds per alignment image). Since observers typically take between 20 to 30 alignment images each night, that translates to a savings of between 8.7 to 10 minutes of telescope time per night. Over a typical DEIMOS run of 9 nights, that works out to between 69 to 90 minutes of telescope time, which is significant.
Note that these savings not only would apply to DEIMOS alignment images but would also apply to ALL direct images. For those DEIMOS observing programs that consist entirely of direct imaging, the total savings in observing time and disk space will be even more significant.
A survey was made of all of the observational slitmasks (i.e., those slitmasks containing one or more alignment boxes) currently in the DEIMOS slitmask database as of late May 2003. For each such mask, we computed the approximate size of readout window that would be needed to capture the image of all of the alignment boxes defined on that mask. The average-sized window was 1227 rows, or less than half the number of rows that is needed to capture the outline of the slitmask form. A 1227-row DEIMOS mosaic image can be read out and written to disk in about 22 seconds, for a savings of 37 seconds per such image (compared to a full-frame readout).
The results of the database survey were tabulated into bins about 555 rows wide (which corresponds roughly to bins of 50 millimeters on the slitmask) and produced the following histogram:
% of masks | Required a readout window of: |
---|---|
9% | 0 to 555 rows |
30% | 556 to 1110 rows |
40% | 1111 to 1665 rows |
20% | 1666 to 2220 rows |
1% | 2221 to 2775 rows |
Presented in cumulative form, this histogram shows:
% of masks | Required a readout window of: |
---|---|
9% | 555 rows or less |
39% | 1110 rows or less |
79% | 1665 rows or less |
99% | 2220 rows or less |
100% | 2600 rows or less |
In addition, if the outlines of the predicted alignment box positions were available to ds9, we would then be in a position to implement an alternate image scaling algorithm in which only those pixels that are within a defined alignment box are used in computing the display color map scaling. Specifically, the predicted alignment box outlines could be used to auto-generate ds9-style boxes of the sort that would normally be generated by using Region->Box and drawing a box with the mouse.
Providing an adequately-scaled display for alignment boxes has been a vexing problem to date and one which Faber, Phillips, and Kibrick have repeatedly complained about; providing such an alternate image scaling would make the display of these alignment images much more useful.
We are planning to use the various PANE keywords to define the number (PANELIST) and geometry (PANEn) for each of the alignment boxes in terms of where (in science mosaic pixel space) they are predicted to appear in the alignment image. While this is a subtle modification of the original function these keywords were originally intended to perform, it is a reasonable one, after all, since the original purpose of the PANE keywords was to define the set of CCD pixels that would be read out for an alignment image.
As things now stand, although the PANE keywords are defined in the keyword library and in the CCD VME software and are also recorded in DEIMOS FITS headers, they are currently only placeholders, and have no effect on which CCD pixels are actually read out. Rather, the WINDOW keyword (which we had hoped to retire and replace with the PANE keywords) currently determines what subset of the pixels are read from the mosaic.
Thus, to summarize phase 3, we would modify the phase 2 version of the watch_pane script so that for each set of alignment box vertices that it maps into pixel space it would write those mapped values into a PANEn keyword and sets PANELIST to indicate which PANEn keywords have been set. For non-alignment images, the script would simply set PANELIST to null.
When ds9 is presented with an alignment image, it could then use the alignment box info gleaned from the PANELIST and PANEn keywords in the FITS header for that image to draw alignment box outlines and to restrict its image scaling computations to those pixels that fall within the alignment boxes defined by the PANEn keywords in the header.