Telescope

Offsets

The units for offsetting the telescope are arcseconds on the sky. The following approximation is sufficient for arcminute moves:

Right Ascension (RA)
offset [arcsec] = [RA1 - RA2] * 15 * cos(Dec1)
Declination (Dec)
offset [arcsec] = [Dec1 - Dec2]

Focus

The telescope must be focused to NIRSPEC at the start of each night. The MAGIQ system will eventually allow real-time focus correction, but that is still in testing. For now, observers must request additional telescope focus runs.

Initial Focus
This takes 10-15 minutes, K-like filters make this easier to do in twilight
  1. Observer sets up NIRSPEC in a JHK-like filter
  2. OA finds a 10-11 mag star and runs MIRA (telescope focus that takes about 10 minutes)
  3. OA runs a guider autofocus routine to focus the MAGIQ guide camera to NIRSPEC and the telescope (takes about 2 minutes)
Subsequent Focus
For testing the MAGIQ image quality monitoring, the following procedure will be used for a subsequent focus:
  1. Observer requests another focus
  2. OA find suitable star and runs MAGIQ IQM routine (2 minutes)
  3. OA runs MIRA (10 minutes)
  4. OA runs MAGIQ IQM routine (2 minutes)

Acquisition

Rotator

NIRSPEC has an internal rotator to derotate the sky. It is controlled via the Rotator GUI.

The upper panel of Rotator GUI shows the current state, the lower panel is for setup. There are 3 columns from left to right: The left column shows and controls the physical position of the rotator mechanism. The center column shows the position angle on sky for the slit and the right column shows the position angle on sky for SCAM.

Rotator Stationary
This mode is used by thermal observers and those who require the highest precision radial velocities. The internal rotator mechanism does not move in this mode.
    Procedure
  1. Slew to your target, tell the OA you will be keeping the rotator stationary
  2. After the slew is completed, type the desired physical angle in the box labeled "Physical" in lower left corner of the Rotator GUI
  3. Click "SET" immediately below the text box
  4. You will see a red box outline the current "Physical" position (upper left) of the rotator
  5. The red box will turn white when the rotator is in position.
Rotator Position Angle
This mode is needed to keep two objects on the slit simultaneously or when using blind offsets to observe invisible objects. The rotator can move the echelle by 1-2 pixels due to vibration. This is mostly a problem in high-resolution mode.
    Procedure
  1. Slew to your target, tell the OA you will be setting a position angle for this object
  2. After the slew is completed, type the desired position angle in the box labeled "Slit P.A." in the lower center of the Rotator GUI
  3. Note the setup position of the rotator mechanism in the lower left corner of the Rotator GUI. If the position falls outside the "green zone", change your desired PA by 180 degrees
  4. Click "SET" immediately below the text box
  5. You will see a red box outline the current "Slit Position" (upper center) of the rotator
  6. The red box will turn white when the rotator is in position.

Bright object acquisition

For objects brighter than about 12th magnitude (and not in M-band), your best option will be to use the SCAM guider for acquisition and guiding.

The observing assistant will take control of SCAM and use it as a guider. While SCAM is being used as a guider, the observer will not be able to take SCAM images via keywords, scripts, or XNIRSPEC.

This procedure will take about 2 minutes plus slew time.

    Procedure
  1. Tell the OA your next target (via name, ID, or MAGIQ highlight)
  2. Tell the OA that your object is bright enough for SCAM guiding
  3. Ask OA to slew (they may go to a pointing star first)
  4. Tell the OA whether you will be in stationary or position angle (PA) mode on the rotator
  5. If in PA mode, set PA after slew has completed
  6. Prepare to ID the target (if a crowded field)
  7. Wait until OA has centered object
  8. If in stationary rotator mode, ask OA to cycle guiding off, then on after centering
  9. Observe

Faint object acquisition

For objects between 12th and 17th magnitude, your best option will be to ask the OA to acquire and guide on the annular guider. The SCAM guider will be under observer control for fine acquisition and verifying proper guiding.

This procedure will take about 5 minutes plus slew time.

    Procedure
  1. Tell the OA your next target (via name, ID, or MAGIQ highlight)
  2. Tell the OA that your object is too faint for SCAM guiding
  3. Ask OA to slew (they may go to a pointing star first)
  4. Tell the OA whether you will be in stationary or position angle (PA) mode on the rotator
  5. If in PA mode, set PA after slew has completed
  6. Prepare to ID the target on the annular guider near the "REFA" pointing origin
  7. After the OA centers the object, they will send it to the "SLIT" pointing origin
  8. Using XNIRSPEC, setup the SCAM camera to take a SNAPI of appropriate integration time and coadds.
  9. Verify the telescope is under guider control
  10. Take a SNAPI of the field
  11. Use the "Tel" --> "Move Telescope" feature of the SCAM Quicklook to center the object
  12. Setup SCAM to run continuously
  13. Use the Slitnod Widget to finely center the object on pixel (131, 125)
  14. If in stationary rotator mode, ask OA to cycle guiding off, then on after centering
  15. Observe

Invisible object acquisition

For objects dimmer than 17th magnitude, acquisition is more involved. We suggest you find an offset star within about 1 arcminute of your target and determine the offsets in arcseconds east and north. We will acquire the offset star, then offset the telescope to the science target.

The rotator must be in PA mode for this type of observation.

This procedure will take about 10 minutes plus slew time.

    Procedure
  1. Tell the OA your next target (via name, ID, or MAGIQ highlight)
  2. Tell the OA that your object is too faint for SCAM guiding
  3. Ask OA to slew (they may go to a pointing star first)
  4. Tell the OA that you will be using position angle (PA) mode on the rotator
  5. Set PA after slew has completed
  6. Prepare to ID the offset star on the annular guider near the "REFA" pointing origin
  7. After the OA centers the offset star, they will send it to the "SLIT" pointing origin
  8. Using XNIRSPEC, setup the SCAM camera to take a SNAPI of appropriate integration time and coadds.
  9. Verify the telescope is under guider control
  10. Take a SNAPI of the field
  11. Use the "Tel" --> "Move Telescope" feature of the SCAM Quicklook to center the offset star
  12. Setup SCAM to run continuously
  13. Use the Slitnod Widget to finely center the offset star on the slit center (pixel 131, 125) or anywhere along the slit
  14. Give the OA the offsets to the target
  15. Ask the OA to offset the telescope
  16. Observe

Note: Some observers choose to return to the offset star between each spectrum to perform the nod. While there is an efficiency hit, one will be certain that the object is in the slit each time.

Observing

Minimum exposure times

SPEC: 0.25 seconds, sampmode=CDS

SPEC: 4 seconds, sampmode=MCDS, 16 reads (minimum exposure time is scaled by the number of reads (0.25 x 16 = 4)

SCAM: 0.1 seconds, sampmode=CDS

Detector saturation level

SPEC: 18,000 DN per coadd

SCAM: 25,000 DN per coadd

1% non-linearity in CDS or MCDS mode, BUT, see also the question about persistence below.

How do I avoid persistent images?

Avoid saturation and over-exposure. Taking arc lamps in any mode can cause persistence. Please see the discussion on the troubleshooting page.

What is the Thin Blocker?

The Thin blocker is a thin piece of PK50 glass used to block thermal emission. The NIRSPEC-N custom filters have small leaks in the thermal IR, so the Thin blocker is needed with them. Here's the rule:

If there is a menu entry for a Thick blocker, ignore it. The former Thick blocker has been removed and replaced with the AO pupil stop.

Pixel Scale

DetectorPixel Scale (arcsec / pixel)
SPEC (high-res)0.190 (along the slit)
SPEC (low-res)0.144 (along the slit)
SCAM 0.178
NIRSPECM (annular)0.200

Dispersion (micron/pix)

N.B. these are approximate values as calculated by the EFS.
Low Resolution
FilterGrating Order Dispersion (μm/pix)Coverage per 1024 pix (μm)
N-1,N-242.1093e-40.216
N-3,N-4,N-532.8123e-40.288
N-6,N-724.2189e-40.432
KL,M-wide18.4373e-40.864


The high resolution wavelength dispersion for NIRSPEC is a linear function of wavelength:
Dispersion [μm/pix] = λ [μm] × 1.44654e-5
High Resolution
FilterMean λ (μm) Dispersion (μm/pix)Coverage per 1024 pix (μm)
N-10.952701.3779e-50.0141
N-21.190501.7225e-50.0176
N-31.249091.8072e-50.0185
N-51.587332.2976e-50.0235
N-72.176873.1493e-50.0322
KL3.049544.4089e-50.0451
M-wide4.762056.8898e-50.0706

Slit center

The nominal slit center on SCAM is at pixel (131,125).

The nominal slit center on NIRSPECM (annular) is at pixel (521,517).

How do I move a star seen on the SCAM image onto the slit center?

Go to the TEL menu on the SCAM QuickLook panel, and select the "Move Telescope" entry in that menu. Left-Click once on the star and then left-click once again on pixel (131,125). If you are in rotator stationary mode, ask the OA to stop and restart guiding once your object is centered on the slit.

Typical SCAM exposure times

Objects brighter than 12th should be visible in a 1 sec exposure.

Maximum exposure times depend on the sky level which can vary during the night. Generally:

Use coadds to go deeper, but also consider subtracting the background via SNAPI or bgsub2.

Nothing in short (5s) SCAM exposure, what should I do? (SNAPI)

Take a difference of two displaced images: use the SNAPI button on the SCAM control panel of XNIRSPEC. Please note this will move the telescope. You can go much deeper by doing a 9-point dither pattern: use the BOX9 button on the SCAM control panel of XNIRSPEC. In both cases, the telescope is returned to its original position after the dithers are done so that you can use Move Tel on the displayed image.

SCAM auto background subtraction (bgsub2)

To set up SCAM to periodically readout and subtract a background image:

    Procedure
  1. Use "GO" or "SNAPI" from the SCAM control panel of XNIRSPEC to save an image to use as the background and note its frame number. For example, if the image name is "feb03i0010.fits", the frame number is "10".
  2. Run "makesky2 10" from the nirspec host computer, where "10" is the frame number.
  3. Run "bgsub2 -1 5" from the nirspec host computer. "-1" means run continuously, "5" is the time to sleep between images. The duty cycle will be itime x coadds + readout time + sleep time.
  4. Use "CTRL-C" to stop the script.

Typical SPEC exposure times

There are many considerations for SPEC exposure times so if you are unsure, please read through all of these points:

Brightness of target
Your data will be better if you do not saturate the SPEC detector or expose to a level that may cause persistence. If you are unsure of the target's brightness, take a test exposure using the SPEC control of XNIRSPEC of 0.25 seconds x 4 coadds to give you counts per second. For extremely bright objects, consider not centering the object on the slit.
Low-res or high-res mode
You may expose for longer in high-resolution mode than low-resolution mode, but often your sky levels will have changed
Single or multiple settings for the night
Even if the sky doesn't saturate in the times listed below, it's likely an OH sky line will saturate. If you have only one setting for the night (and you have the full night), it doesn't really matter if you saturate in one location on the detector. If you have multiple settings (or this is a split night) consider the other setups: the location on the detector that is getting saturated in setup #1 may be where the science is located in setup #2.
Changing sky conditions
The infrared sky changes on short time scales. With long exposures, you'll likely under- or over-subtract the sky lines. You'll have to get creative in your data reduction.

Sky brightness (between OH lines) guidelines (N.B. The sky levels change during the night and night to night):

Use coadds to go deeper in the thermal.

How can I see the spectrum taken?

Each image taken is automatically displayed. Use a NOD2 pattern and take the difference of the two exposures using the Sdiff entry under the MATH menu in QuickLook. The Sdiff routine subtracts the most recent image from the one before (e.g., if the two most recent images are 34 and 35, Sdiff displays 34 minus 35), and the Arithmetic option allows any arbitrary image pair to be subtracted. Under the PLOT menu on QuickLook, you can use the Horizontal, Vertical or Diagonal entries to graph a cut through the displayed image.

Is there fringing present in NIRSPEC spectra and what can be done about it?

Depending on whether NIRSPEC is behind the AO system or not, and on what filter and blocker combination is used, echelle spectra may exhibit an underlying sinusoidal ripple. The effect is particularly pronounced in AO mode, where the slow, almost parallel beam (f/160) induces a Fabry-Perot pattern as it encounters the dewar window. In non-AO mode, interference occurs between the NIRSPEC order sorting filters and their associated blockers near the pupil plane. This effect can be almost completely removed with the application of a fourier domain filter, such as hanning. In non-AO mode, the fringing effect is usually less than a few percent. This may be reduced by taking out the long wavelength blocker, although care should be taken to characterize the impact of the red leak if the blocker is out.

What is the format for non-sidereal targets?

The differential rates required by the telescope are different that those most common (such as from JPL Horizons).

Horizons gives you dRA*cos(DEC) and d(DEC)/dt in arcseconds per hour. At Keck, you must divide the RA rate by 15 into the psuedo-unit of seconds per hour.

Invisible object observing

Invisible object acquisition is outlined here.

Especially when observing extremely faint (invisible) objects, one must consider his or her data reduction plan before observing. Spectra on NIRSPEC are tilted with respect to rows and coloumns on the SPEC detector. If your object has no continuum, you must correct for this tilt in another way.

    Outline
  1. Find an offset star brighter than 17th magnitude within about 1 arcminute of the science target and calculate the offsets from this star to your target.
  2. Take spectra of a bright star at several positions along the slit. This will allow you to make a spatial map of the slit to extract your object spectrum. Consider persistence on SPEC when taking your bright star spectrum. You may wish to place the bright star on either side of where you will place your target.
  3. Acquire the offset star according to the procedure.

End of exposure noise (without EFS)

The EFS will "gong" at the end of each script. If you prefer not to use the EFS (running via XNIRSPEC or keywords), but wish to have an end of exposure noise or sound:

    Procedure
  1. Open a window on the nirspec host
  2. Type "watch_exp"
  3. Leave this window open and don't type other commands here

Calibrations

When do I need to take a set of arcs and flats?

You must take arcs and flats BEFORE you change the settings of either of the two Gratings or the Slit wheel.

Please note that taking arcs will cause localized persistence on the SPEC detector. Further discussion is on the troubleshooting page.

A useful observing pattern is: setup 1, object, cal star, arcs, setup 2, object, cal star, arcs, etc.

Another option is: setup 1, object, arcs, setup 2, object, arcs, etc. then repeat the sequence for the Cal star.

Do I need to take calibration arc lamp frames even if I have not moved the gratings?

Maybe. Spectral shifts of up to +/- 2 pixels may occur because of vibration from image rotator when observing in slit P.A. mode or slewing to a new rotator angle. Night sky OH lines inherent to the spectra may be used for internal calibration if there is a discrepancy with the observed arc lamp lines.

Alternatively, rotator stationary can eliminate the movement of the echelle grating by eliminating image rotator motion and hence image rotator vibration.

What is a good Cal star?

The Cal star is needed to remove the atmospheric extinction (by division). The best Cal star is one with no (or very weak) intrinsic spectral features. Isolated features can be interpolated. A0V stars are useful (mainly in J and K); O stars are helpful for H-band where A-stars have too many lines. It is best to keep the airmass difference at 0.1 or less.

How do I take calibrations?

The Calibrations page describes how to take calibrations using either the the EFS or the CAT.

The EFS will give you minimum cals needed to calibrate your data:

The CAT gives you more flexibility in number of flats and lamps off frames.

Dark frames

If you wish to get pure dark frames, please follow this procedure:

    Procedure:
  1. select the "BLANK" filter from XNIRSPEC
  2. select your itime and coadds from XNIRSPEC
  3. Click "GO" from XNIRSPEC
  4. After this first image is complete, select from the background menu: "NIRSPEC Tools" --> "Repeat SPEC exposures"
  5. Type in the number of repeats into the GUI that pops up
  6. Click "GO" in this GUI

NIRSPAO (NIRSPEC+AO)

Throughput

NIRSPAO throughput is lower by a factor of 5 to 10 in spectroscopic mode and 3 to 4 in imaging mode.

Pixel Scale

Each pixel is about 10.6 times smaller in AO mode:

Filters

Only those filters in filer wheel 2 are available (see Specifications page).

Rotator

You do not use the internal NIRSPEC rotator with AO and you will not see the Rotator GUI. Instead, you will set the AO rotator via the command line:

AO Status (LUI)

Also known as the "LUI", this displays the loop status, the laser state, and the guide star counts/Rmag.

The "targwave" is the rough central wavelength of your science setup.

Differential Atmospheric Refraction

To help the AO system with differential atmospheric refraction (DAR), please start the AO Targwave GUI (if it does not start automatically: "NIRSPEC Control Menu" --> "Restart AO TARGWAVE GUI"

The "targwave" is the rough central wavelength of your science setup.

Guider (ACAM)

Note that when the MAGIQ ObserverUI is launched, you will be viewing the ACAM guider rather than the usual NIRSPEC annular guider.

The ACAM field of view is 2 x 2 arcmin. The pixel scale is 0.125 arcsec/pix. There is a vertically offset ghost reflection in the camera optics--the upper one is real.

Calibrations

The NIRSPEC flat lamp intensity is manually controlled via a switch on the instrument. If your counts are low, it's possible this switch did not get set to the AO/high setting. Ask your support astronomer for help.

Non-sidereal Tracking

Under AO control, typically we do not specify differential rates for non-sidereal objects, rather we let the AO system guide on the non-sidereal object. This may change as development continues.

Scripts

Please do not load non-AO scripts into the EFS or run non-AO scripts from the command line. This will affect the position of the AO pupil stop and you will lose valuable observing time.