Procedure Index

Procedure

A. Preliminiaries

Bring up the AO tools

  1. Open VNC viewers svncserver2:2 and svncserver2:3.
  2. Right-click in the background of any of the VNC desktops and select LGS-AO Control → Start LGS Calibrations.
  3. Wait for a few minutes until all GUIs are up.

Verify the following GUIs are present

The NIRC2 quicklook, status display and control terminal will also appear on the svncserver:2 VNC, but they are not needed for the NIRSPAO calibrations.

Firefox → K2 AO WYKO display (link only works in the internal network).

Bring up the NIRSPEC control software

Open the nspeceng VNCs and start all the NIRSPEC software from the VNC pulldown menu with NIRSPEC Control Menu → NIRSPEC Start Up.

This will launch the following GUIs:

Only the GUIs on the control0 and control1 VNCs are required for the NIRSPAO calibrations.

Restart LBWFS camera server

Normally, you no longer have to update the LBWFS camera config file, but if you must... To update the LBWFS camera config file, as kics@lbwfs-camera-server Edit:

/kroot/rel/default/Versions/kss/magiq/camera/webCamServer/default/kNlbwfs.dat

(N.B. BIAS0 = LEFT, BIAS1 = RIGHT). Enter a daylog with your updates.

Run calibrations setup

B. DM/WLS registration

Run DM/WLS registration

  1. Keck II calib → DM Control → Clear Voltages
  2. Keck II calib → DM/WLS Registration
  3. After Null Centroids, if needed, run fsmoffload from the Calibration toolbox IDL terminal until Cx,Cy in the Keck II - WFS Intensity GUI are less than 0.020

Once the registration is completed (with error ≲ 0.3%), Dismiss the DM/WLS Registration window.

C. LBWFS calibration I

  1. Click on Setup for Cals and Yes to calibrate both 5x5 and 20x20 arrays.
  2. When prompted, select Sodium Dichroic.
  3. Wait until the IDL prompt is back and the STRAP display shows STRAP OK and TSS: INPOS.
  4. Click on Align TSS
  5. Click on DM/LBWFS Reg

D. Image sharpening

The purpose of this step is to set the DM actuators (hence shape) in a static mode (open loop) so that they correct the non-common path aberrations.

Establish the initial shape of the DM

Run image sharpening

There is no automatic image sharpening capability for NIRSPAO. Normally, a 0 deg astigmatism of -0.6 and playing a bit with the SFP obsfz value to look for the optimal focus is all what is needed.

The following procedure can be used to take continuous images with SCAM while modifying the SFP obsfz value until the best image quality is achieved.

  1. Keck II calib → Light Source Control → ND4
  2. SC GUI → SF (SFP) → sharpscam
  3. EFS → Obs. Mode → Setup Only
  4. EFS → Filter → FeII
  5. EFS → GO

Monitor the setup progress on the NIRSPEC instrument control GUI and on the wait_wrapper popup terminal. Double check that:

Once the setup is completed, take a SCAM background image on a nirspec terminal with the following commands:

Set the last image as background for Ginga. On the SCAM Ginga display NIRSPEC_SCAM → Use last as subtraction

Open the NIRSPEC hatch and start taking continuous images with SCAM:

Monitor the FWHM of the fiber source image on SCAM using the Pick tool on the SCAM Ginga display as you change the SFP obsfz value on the SC GUI.

The optimal sharpening is achieved when the fiber image is not too elongated and the FWHM of the PSF as measured by the Pick tool is < 4 pix on SCAM. It is useful to manually set the cut levels in Ginga to something like low=0, high=1000. When the fiber spot is in focus, you should see about 5500 peak counts. See example here of a good focused fiber spot on SCAM showing 3.8pix FWHM (57 mas).

Stop exposing with SCAM and protect NIRSPEC:

Note the SFP obsfz value corresponding to the sharpened image and redefine the following SFP positions with the same obsfz value: sharpscam, scam, nirspao, optnirspao and optnirspec.

E. LBWFS calibration II

In the LBWFS Calibration GUI:

  1. Click on Setup for Cals and Yes to calibrate both 5x5 and 20x20 arrays.
  2. Select Sodium Dichroic when prompted
  3. Click on Record Image
  4. Examine the image and verify that all subapertures are evenly illuminated and at least 1000 counts
  5. Click on Save as cog
  6. Check that the DM shape is the expected one
  7. If the DM shape looks right, answer Yes to the prompt
  8. Select SCAM as the PO

F. WFS calibration

First run WFS calibration in LGS mode

  1. Keck II calib → WFS Calibration
  2. Choose instrument → NIRSPAO-L
  3. If the DM shape looks right, answer Yes to the prompt
  4. Select → 2.4
  5. After Clear Centroids, if needed, run fsmoffload from the Calibration toolbox IDL terminal until Cx,Cy in the Keck II - WFS Intensity GUI are less than 0.020

Run WFS calibration again in NGS mode

  1. Keck II calib → WFS Calibration
  2. If the DM shape looks right, answer Yes to the prompt
  3. Choose instrument → NIRSPAO-N
  4. Select → 2.4
  5. After Clear Centroids, if needed, run fsmoffload from the Calibration toolbox IDL terminal until Cx,Cy in the Keck II - WFS Intensity GUI are less than 0.020

Once all the steps in the WFS calibration procedure have been completed, hit Dismiss in the WFS Calibration window.

IMPORTANT: Proceed to the daily image quality check procedure.