Quick Reduce
mods_quickreduce
The mods_quickreduce software is an IDL-based quick reduction tool which outputs sky-subtracted, wavelength-calibrated spectra. It can only be used on full frame spectroscopic data. It available from all partner accounts on the mountain obsN workstations, the 64-bit OS machines, obs1, obs2. Currently, the quick reduction pipeline can only be used on MODS1 data.
To run the quick reduce software:
- Open IDL, using the command modsidl, in a directory on obs1 or obs2 in which you have write permission and which contains the MODS file you wish to process.
- modsidl is a script that sets the correct paths before starting IDL.
- A recommended place to work is ~/Scratch/<UTdate>.
- Run: mods_quickreduce, ’<filename>’, [options]
- There are two main options one can use.
- /calwave — this uses a stock wavelength calibration. This option is necessary and valid only for longslit spectra.
- apertures = [1,2,…N] — this tells the program which apertures/slits to work on. apertures = [1] will reduce only the central slit segment in the segmented long-slits. The 5 segments of the long slit are numbered, from bottom to top: 4, 2, 1, 3, 5.
- mods_quickreduce, ‘mods1C.YYYYMMDD.NNNN.fits’, /calwave, apertures=[1]
- To reduce a MOS spectrum, the mms file must be in the working directory.
- In this quick-reduction pipeline, the sky regions cannot be selected manually. Therefore, sky subtraction may not work well for extended objects.
- The output of mods_quickreduce is a file with the suffix “x2d” (mods1C.YYYYMMDD.NNNN_x2d.fits) file which can be viewed using dispMODSx2d.
- The output *_x2d.fits file, for long-slit mode at least, has 6 extensions and can be displayed as a multi-extension FITS file in ds9, however the advantage of dispMODSx2d is that the 2D spectrum is displayed with both pixel and wavelength scales. For long-slit mode, the extensions are:
0 = OTF
1 = sky subtracted
2 = variance
3 = sky
4 = wavelength image
5 = slit mask
6 = Slit BinTable
- The output *_x2d.fits file, for long-slit mode at least, has 6 extensions and can be displayed as a multi-extension FITS file in ds9, however the advantage of dispMODSx2d is that the 2D spectrum is displayed with both pixel and wavelength scales. For long-slit mode, the extensions are:
- /calwave — this uses a stock wavelength calibration. This option is necessary and valid only for longslit spectra.
- There are two main options one can use.
dispMODSx2d
Once the file is processed, the resulting “x2d” image can be viewed using the python script, dispMODSx2d.
dispMODSx2d mods1C.YYYYMMDD.NNNN_x2d.fits
Place the cursor on the image and move it around. The wavelength and intensity for the pixel (x,y) under the cursor will be displayed in the lower left corner. With the cursor still on the image, type “?” to generate the following list of interactive cursor commands:
I = change the image to be displayed
s = change the image min/max limits by hand
i = invert color map (toggle)
Zoom/Pan/Color:
Mouse Buttons:
Left: click+hold and drag to pan
Middle: center on pixel (pan to here)
Right: muck with color map; up/down = stretch/compress, left/right=roll
Wheel: zoom in/out
r or Home = restore zoom/pan (aka: zoom-to-fit)
O = restore Original zoom/pan and color map
d = print image data under cursor
p = find peak pixel with +/-5 pixels of cursor
R = change object search radius (currently 5 pixels)
? = print this list
q = quit and exit program