NIRES has an internal rotator to derotate the sky. It is controlled by the OA as it is a facility rotator. The observations can be performed with the rotator in one of the following configurations:
NIRES has several pointing origins. The following table describes them in detail. For faint targets we suggest to use the NIRES PO whereas bright targets can be send to the REFSLIT for a more efficient acquisition..
The main guider is the optical (visual) guider . This guider is controlled by the OA and its images are displayed on Magiq.
The Slit-viewing camera (scam) can also be used as a guider. This is a backup guider that can be used if:
Objects brighter than about 12th magnitude in K do not need sky subtraction and the acquisition is done with the SVC.
This procedure will take about 2 minutes plus slew time.
![]() |
goivor press "SINGLE EXPOSURE" on the "NIRES_SCAM_CONTROL" GUI. This script will take an object image and display it on the quicktool.
testvor press "TEST" on the "NIRES_SCAM_CONTROL" GUI.
For objects between 12th and 17th magnitude, your best option will be to use sky subtraction for the acquisition.
This procedure will take about 5 minutes plus slew time.
snapior press "SNAPI" on the "NIRES_SCAM_CONTROL" GUI. This script will:
en 5 5
goivor press "SINGLE EXPOSURE" with the "NIRES_SCAM_CONTROL" GUI.
en -5 -5
makeskynires last_sky_image(e.g. makeniressky 15)
bgsubv -1 5This will start continuous obs mode or run
bgsubvto take individual images as needed. If one needs to stop taking these images, then use Control-C when not exposing.
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.
snapior press "SNAPI" on the "NIRES_SCAM_CONTROL" GUI. This script will:
en 5 5
goivor press "SINGLE EXPOSURE" on the "NIRES_SCAM_CONTROL" GUI.
en -5 -5
makeskynires last_sky_image(e.g. makeniressky 15)
bgsubv -1 5This will start continuous obs mode or run
bgsubvto take individual images as needed. If one needs to stop taking these images, then use Control-C when not exposing.
Note 1: 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.
The spectroscopy observations can be started from either the command line of the SPEC GUI. Before taking images please verify that the H2RG detector settings are reasonable (i.e., exposure time, number of reads, and coaads). Please remember that aborting H2RG exposures might cause significant time loss due to a possible introduction of excessive noise. The only way to mitigate this noise is to restart the detector service which would take about 10 minutes. The settings can be changed using the command line scripts or the SPEC GUI (please remeber to press "CONFIGURE" to commit the changes.
In order to start spectroscopy exposures, type
gois non the niresserver2 xterm. n is an optional argument that defines the number of images to take (default is 1).
There are several dithering scripts available for the observer: abba, abcpat, abpat, and abbaprime. These scripts will perfom a sequence of telescope moves and image taking. In order to understand what each script does please type
help scripton an xterm.
Either press the "SINGLE EXPOSURE" button for single exposures or use one of the abba sequences. The "ABBA" button starts a single ABBA sequence whereas the "ABBA (seq + SVC)" button starts an ABBA sequence with syncronized spectrometer and scam images.
![]() |
Either press the "SINGLE EXPOSURE" button for single exposures or use one of the abba sequences. The "ABBA" button starts a single ABBA sequence whereas the "ABBA (spec + SVC)" button starts an ABBA sequence with syncronized spectrometer and scam images.
In addition, the observer can also design any other dithering script by selecting the CUSTOM tab. These dithering scripts are simple ascii files. The name of this file is arbitrary. The first line contains the number of steps and the next lines the absolute dithering distance in arcsec (along the slit). At the end, the script commands the telescope back to base. For instance, an AB sequence that would move the target along the slit +2.5 and -2.5 arcseconds will consist on the following lines:
2 -2.5 2.5The observer has the two options as well: DITHER and DITHER (spec + SVC). Note that this file (named abpat.txt in this example) must be located in the home directory for the observer account.
![]() |
Aborting NIRES exposures is not recommended. We have found that aborting H2RG exposures produces significant time loss due to a possible introduction of excessive noise. The only way to mitigate this noise is to restart the detector service which would take about 10 minutes. Restarting the detector service is the suggested procedure after aborting exposures.
So please check the configuration for number of reads, coadds, and exposure time before starting observations.
SPEC: 1.4 seconds, sampmode=CDS
SPEC: 4 seconds, sampmode=MCDS, 16 reads (minimum exposure time is approximately scaled by the number of reads (0.5 x 16 = 8)
Sampmode | Number of Reads | Min. Time (s) |
---|---|---|
2 | n/a | 0.5 |
3 | 2 | 1.4 |
3 | 4 | 2.4 |
3 | 8 | 4.8 |
3 | 16 | 9.6 |
SVC: 1 second, sampmode=CDS
Spectroscopy: 20,000 DN per coadd
SVC: 30,000 DN per coadd
1% non-linearity in CDS or MCDS mode, BUT, see also the question about persistence below.
Avoid instant and/or prolonged persistence. Typically values over 4000 DNs would cause persistance on the H2RG. This persistance goes away with time (10-15 minutes). However, if you plan to observe bright targets be aware of the fact that the detector is continously reading out. So the detector can accumulate persistance if a bright source is left on the slit. Also, be aware that if a target will be observed repeatedly on the same pixels, then the persistence will last longer than described before.
The dome arc lamps are faint and observing them for under 2 minutes does not cause persistance. .
Detector | Pixel Scale (arcsec / pixel) |
---|---|
Spectroscopy | 0.15 (spatial axis) |
SVC | 0.126 |
Optical Guider | 0.22 |
The nominal slit center on SVC is at pixel (123, 466).
The slit has an imperfection located 6.2arcseconds from the slit center (approximately 0.5 arcsecond in size). The following link has a sketch of the defect. We suggest to avoid this sector of the slit. Therefore, please use an AB offset smaller than 11 arcseconds or larger than 14 arcseconds.
No other input is needed. The telescope will then move the star to the slit center position located at pixel (123,466).
If you are in rotator stationary mode, ask the OA to click "SCOR" or to stop and restart guiding once your object is centered on the slit.
If you are in rotator stationary mode, ask the OA to click "SCOR" or to stop and restart guiding once your object is centered on the slit.
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 th emaximum exposure time should be under 40 seconds. Use coadds to go deeper, but also consider subtracting the background via SNAPI or bgsubv.
Take a difference of two displaced images: using the
snapiscript run from the SVC xterm or press "SNAPI" on the "NIRES_SCAM_CONTROL" GUI. Please note this will move the telescope. You can go much deeper by doing a 9-point dither pattern: use the BOX9 script on the SVC xterm. 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.
To set up SVC to periodically readout and subtract a background image:
snapior
goivto save an image to use as the background and note its frame number. For example, if the image name is "s180120_0010.fits", the frame number is "10".
makeskynires 10on the SVC xterm where 10 is the frame number.
bgsubv -1 5on the SVC xterm. "-1" means run continuously, "5" is the time to sleep between images. I recommend at least 5 seconds of sleep time between images to minimize skipped subtractions. Even at 10 seconds between images, the sky subtraction will skip occasionally. The duty cycle will be itime x coadds + readout time + sleep time.
There are many considerations for Spectroscopy exposure times so if you are unsure, please read through all of these points:
testson the spectroscopy xterm.
Sky brightness (between OH lines) guidelines (N.B. The sky levels change during the night and night to night):
Each image taken is automatically displayed. Use a ABBA pattern and take the difference of the two A and B 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.
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.
Note also that the values of dra and ddec as reported by DCS are per second, that is the values reported by DCS are the values from your starlist divided by 3600.
Arcs and flats can be taken in the afternoon.
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.
The Calibrations page describes how to take flat calibrations.