Slitmask Alignment Cookbook:


WORKING DRAFT as of 9 april 99

Here's a cookbook for the latest method using the ucsclris software with pre-selected guide star and the pickoff mirror:

AFTERNOON:

1. Create the Box Coordinate Files:

Write a text file for each mask, containing (one line per star):

	x  y  (Optional ID)  
Take the x,y CCD coordinates from the "map" file created by mapmask. [Note that xbox wants the physical CCD coordinates, not the coordinates in the image -- various adjustments for flexure and prescan columns will be added by the program!]

2. Confirm the Coordinates:

Take an image through each slitmask (you may use internal illumination, eg, Ne lamp and V filter, 2s each; or the dome). Run xbox to make sure that all boxes are found (it doesn't matter where it finds a "star"). Note the delta values for each box: if they're constant and larger than about 3-4 pixels, you may want to epar "xoff,yoff" in mboxfind. (You may enter "I" when the residual plot is displayed, to interrupt the program.)

If xbox can't find boxes, then xoff,yoff need to be adjusted. Note the image location where xbox is searching (eg, "Can't find box at xxx,yyy"), and look in the image using ximtool or implot to see where the box really is. The difference (del = actual - predicted) is the value by which xoff and yoff need to be adjusted. xbox should now be able to find the boxes.

3. Set up the STARLIST for the OA:

Write a "starlist" file containing the Guide Star RA,Dec for each mask. Note that the line contained in the header of the map file is close to the correct format: strip off the first 4 characters and replace the :'s in the coordinates with spaces. This starlist file is sent to the OA.

Also, note the PA's for each mask (slightly updated for precession), and the TV pixel coordinates for the guide star.


TO ALIGN A MASK:

1a. Give the OA the Guide Star Coordinates as identified in the starlist. NB: Tell the OA these go at the "PickOff" Pointing Origin! Tell the OA the PA on the sky (updated for precession, see #3 above).

1b. Insert the slitmask and move to the imaging mirror. The OA should switch to the slit-viewing camera.

2. Identify the Guide Star in the slit-viewing camera. Tell the OA to place the star at the TV pixel coordinates in the "map" file (see #3 above).

3. Take a direct image through the mask (30s is typically good). Stars should be seen in the boxes. (if not, see Note_1 below) Analyze the image:

	uc> xbox lris0023 box_coord_file
(if problems, see Note_2 below) You should be able to type "q" at each plot. Confirm the offsets; if less than about 0.03 degree in PA and 0.1" in RA/Dec, don't bother -- you're there. (Also, see Note_3)

4. Repeat the last step as needed. NB: if a large translation or a PA adjustment of any size is made, you should repeat -- the telescope setting is often not perfect!! (sad but true)

5. When aligned, switch to the grating and go!


TROUBLESHOOTING:

NOTE_1: If stars are not seen in the boxes, something is wrong. Immediately pull out the mask and take a direct image. Display the direct image and the mask image. Identify an alignment star and the box it should fall in, and use "mshift" to move it there:

	uc> mshift (xstar) (ystar) xref=(xbox) yref=(ybox) pa=(PA)
(You should also "blink" the two images to make sure that the PA is close.) Then re-insert the mask and return to step 3. NOTE: if the PA error is too large (one star will be in a box, but the others won't) see Note_4 below.


NOTE_2: Things to watch for...



NOTE_3: If the stars are off at the very edge of the box, you may want to have the OA apply the translation without any PA change (you have to tell the OA what the offsets are, rather than sending the commands from xbox); then take another image. This is particularly true for crowded fields, where misidentifications can really lead you astray. In any event, the PA offset may not be very reliable if the stars are mostly occulted.



NOTE_4: The PA error is so large that even though one star is in the box, other ones aren't. This is a serious problem, and one that should not happen! If it does, though, here is the fix:

  • 1. remove the mask and take a direct image.
  • 2. measure the locations of two stars (one at top, one at bottom of image).
  • 3. measure the locations of the corresponding boxes.
  • 4. write a text file ("pairs file") that lists (one star per line):
                xbox ybox xstar ystar
    
  • 5. run xbox:
      uc>  xbox lris0027  pairs=pairs_file
    
  • 6. Since you've hit serious problems, take another direct image and blink it against the previous mask image to confirm the stars will be in the boxes.
  • 7. reinsert mask and continue at Step 3.