IMPORTANT NOTES:

Background

LIKE DSIMULATOR, with SMDT observers interactively select a set of science targets and distribute slits across the mask so that the spectra will not overlap. You will also identify two sets of stars to be used for mask alignment:

SMDT generates several kinds of output, including:

Download and Running

Basic installation

Follow these steps to download and run the SMDT software:
  1. The SMDT software can be found on the Keck github . The software can be downloaded with a git clone.
     git clone https://github.com/KeckObservatory/smdt.git 
  2. Check the requirements.txt file and install any missing dependences.

Running the software

Go into the smdt directory.
python app.py --lris or python app.py --deimos
This should launch the SMDT software in your default web browser..

Target List

The key input for SMDT, like DSIMULATOR is the catalog of possible targets. You will supply this catalog in the form of an ASCII file with one line per target. There are 7 required fields followed by several optional fields, as shown in this sample intput catalog.

SMDT/DSIMULATOR input file format
Column Field Description Datatype Units Example
Required Fields
1 Object Name Currently limited to 16 characters.
No whitespace allowed.
string   Cl0016+16_gal276
2 RA Right Ascension real sexagesimal hours 00:16:00.000
3 Dec Declination real sexagesimal degrees +16:00:00.00
4 Equinox Equinox of RA/Dec coordinates real year 2000.0
5 Magnitude Brightness of target real mag 21.50
6 Passband Filter in which the brightness was measured string   V
7 Pcode Priority code: indicates target type and relative weighting of science targets as indicated below. integer   1000
Optional Fields
8 Sample Sample to which the object belongs. When auto-selecting, objects in Sample 1 are selected first; remaining space is then filled with Sample 2, then Sample 3, etc. Default=1. integer   1
9 Select Flag indicating whether to pre-select the target. If non-zero, object is pre-selected. This is useful for objects that you definitely want to appear on the mask, eg, extremely high-priority objects, or e.g., a set of useful alignment stars. Default=0. integer   0
10 SlitPA Position angle of the slit real degrees 180.00
11 Len1 Requested length above object (in direction of PA) real arcsec 4.0
12 Len2 Requested length below object (opposite to PA) real arcsec 4.0
13 SlitWidth Desired slit width. Not implemented, so this value is ignored. Slit width is set globally by the input parameters. real arcsec 1.5

Priority codes

Program objects should have PCODE>0. There is a bug ported from DSIMULATOR that allows slits to be put over PCODE=0 objects, but they will not be milled. Avoid using PCODE=0, or carefully check that the results are as expected.

Mask design considerations

Selecting coarse alignment stars

Coarse (initial) alignment of the DEIMOS mask on-sky is accomplished by identifying stars in the DEIMOS guider and placing it at the position indicated on the finder chart you'll generate at Keck using the deimos_guider_dss software.

DEIMOS observers must consider these characteristics when selecting guide stars:

The same stars used for coarse alignment will also be used for guiding, so if you can't locate any good stars for alignment you may not be able to observe the mask at all. If you need to find more stars, you can either change the mask center or rotate to a different PA (e.g., change by 180 to access the same set of targets).

Selecting fine alignment stars

Fine alignment of the DEIMOS mask with the science targets is accomplished by centering selected stars within square alignment boxes milled into the slitmask. By default, SMDT will create boxes of size 4×4 arcsec, and you should use this recommended size. Further recommendations:

Slit width constraints

Please note the following factors which constrain your choice of slit width and slit orientation:

Running DSIMULATOR

SMDT Parameters

Note

User interface

When you run SMDT, you will choose your input target list and load targets. Once you load the targets and update the parameters, the targets will be displayed over a mask outline. You may need to click on the canvas window or auto-select the targets for them to appear in the canvas window. Once targets are selected, the generate slits button will display the slits for the selected objects, and the Save Mask Design button outputs the .fits, .out, and .png files.

The canvas window is interactive and can be rotated or panned with the mouse. Zooming in an out can also be accomplished with the < and > keys. Remember to update your parameters every time you recenter in order to save the new RA and DEC positions.

Procedure

Quick summary of basic mask design

  1. Launch the software: python app.py --lris or python app.py --deimos

Details

Make sure that alignment stars and at least one suitable guide star are selected!

By default, slits are lengthened to where they nearly touch each other (the slit separation is a parameter, for which 0.5 arcsec is currently recommended). In cases where overlap would occur, by default the slits are shortened to avoid overlap. In the plots, both the object (drawn to show the requested slit length) and the slit appear, so it is immediately apparent whether slits have been lengthened or truncated.

The final step is to save the mask design, at which point the MDF FITS file is generated, as well as the output text file and the png file. Note the output text file can be used as an input in SMDT or DSIMULATOR.

The first object in the .out file is recognized as the field center if it has a field "PA=nnn" in place of magnitude. Note that this line is also properly formated for the Keck starlist, provided the colons are replaced with spaces.

Mask submission

After designing your slitmasks, you can submit them for milling.