12 Recipes

 12.1 EXTENDED_SOURCE
 12.2 EXTENDED_SOURCE_NOSTD
 12.3 MAKE_CAL_ARC
 12.4 MAP_EXTENDED_SOURCE
 12.5 MAP_EXTENDED_SOURCE_NOSTD
 12.6 NIGHT_LOG
 12.7 NIGHT_LOG_LONG
 12.8 REDUCE_ARC
 12.9 REDUCE_FLAT
 12.10 REDUCE_SINGLE_FRAME
 12.11 STANDARD_STAR
 12.12 STANDARD_STAR_NOD_ON_IFU

12.1 EXTENDED_SOURCE

Produce a coadded, sky-subtracted, wavelength-calibrated, flux-calibrated datacube from a group of SKY-OBJECT pairs of IFU frames.

Description

Read-noise and Poisson variances are added to the frame and a bad pixel mask is applied. The spectrum from each slice of the IFU is cut out of the frame and pasted in a new frame in such a way that there are no longer spaces between the spectra, the spectra are arranged in the order in which they appear in the field of view and they are approximately aligned in the dispersion direction. The spectrum is flat-fielded and sky-object pairs are now subtracted. The wavelength calibration previously measured from the arc spectrum is used to apply a common, linear wavelength scale to each row of the the sky-subtracted 2-d spectrum. The resulting frame is coadded to the group, which is then rearranged to form a data-cube. The spectral dimension of the data-cube is divided by the standard-star spectrum and flux calibrated. Images can be extracted over a range of wavelengths specified in a file called extract.images placed in the $ORAC_DATA_OUT directory, and can be displayed by editing the disp.dat file.

Notes
Output data

The individual frames with slices extracted and approximately aligned have the suffix _ext. The flat-fielded, scrunched, sky-subtracted pairs have the suffix _scr.

Several group files are created (with names starting gu). The coadded scrunched 2-d spectrum has the suffix _scr. This is formed into a datacube with the suffix _cub. A cube which has been divided by the standard-star spectrum is formmed with the suffix _dbsc and a flux calibrated datacube with the suffix _fc. A white-light image is extracted from this datacube with the suffix _im.

12.2 EXTENDED_SOURCE_NOSTD

Produce a coadded, sky-subtracted, wavelength-calibrated, datacube from a group of SKY-OBJECT pairs of IFU frames.

Description

Read-noise and Poisson variances are added to the frame and a bad pixel mask is applied. The spectrum from each slice of the IFU is cut out of the frame and pasted in a new frame in such a way that there are no longer spaces between the spectra, the spectra are arranged in the order in which they appear in the field of view and they are approximately aligned in the dispersion direction. The spectrum is flat-fielded and sky-object pairs are now subtracted. The wavelength calibration previously measured from the arc spectrum is used to apply a common, linear wavelength scale to each row of the the sky-subtracted 2-d spectrum. The resulting frame is coadded to the group, which is then rearranged to form a data-cube. The spectral dimension of the data-cube is divided by the standard-star spectrum and flux calibrated. Images can be extracted over a range of wavelengths specified in a file called extract.images placed in the $ORAC_DATA_OUT directory, and can be displayed by editing the disp.dat file.

Notes
Output data

The individual frames with slices extracted and approximately aligned have the suffix _ext. The flat-fielded, scrunched, sky-subtracted pairs have the suffix _scr. No datacube is formed from individual frames or pairs.

Several group files are created (with names starting gu). The coadded scrunched 2-d spectrum has the suffix _scr. This is formed into a datacube with the suffix _cub. A white-light image is extracted from this datacube with the suffix _im.

12.3 MAKE_CAL_ARC

Reduces an IFU arc frame to the stage that it can be used to generate an arc-lines list.

Description

This recipe reduces a single IFU arc frame to a form that can be used to generate an arc lines list file. These are static calibration files stored in $ORAC_DATA_CAL/grisms/, which should rarely need to be re-generated.

Read-noise and Poisson variances are added to the frame and a bad pixel mask is applied. The spectrum from each slice of the IFU is cut out of the frame and pasted in a new frame in such a way that there are no longer spaces between the spectra, the spectra are arranged in the order in which they appear in the field of view and they are approximately aligned in the dispersion direction. The spectrum is flat-fielded.

Notes

12.4 MAP_EXTENDED_SOURCE

Reduce a group of sky-object pairs of IFU frames, mosaicking datacubes using telescope offsets.

Description

This recipe produces a coadded, sky-subtracted, wavelength-calibrated, flux-calibrated datacube from a group of sky-object pairs of IFU frames. The telescope offsets are used to mosaic datacubes together, allowing a region larger than the field of view of the IFU to be mapped.

Read-noise and Poisson variances are added to the frame and a bad pixel mask is applied. The spectrum from each slice of the IFU is cut out of the frame and pasted in a new frame in such a way that there are no longer spaces between the spectra, the spectra are arranged in the order in which they appear in the field of view and they are approximately aligned in the dispersion direction. The spectrum is flat-fielded and the wavelength calibration measured from the arc spectrum is used to apply a common, linear wavelength scale to each row of the 2-d spectrum.

Sky-object pairs are now subtracted, and the resulting frame is rearranged to form a data-cube, which is divided by the standard-star spectrum, flux calibrated and mosaicked into the group.

Notes
Output data

The individual frames with slices extracted and approximately aligned have the suffix _ext. The flat-fielded, scrunched, sky-subtracted pairs have the suffix _scr. A datacube is formed from each pair with the suffix _cub.

The datacubes are mosiaced into a file with the suffix _mos. A white-light image is extracted from this datacube with the suffix _im.

12.5 MAP_EXTENDED_SOURCE_NOSTD

Reduce a group of sky-object pairs of IFU frames, mosaicking datacubes using telescope offsets.

Description

This recipe produces a coadded, sky-subtracted, wavelength-calibrated, datacube from a group of sky-object pairs of IFU frames. The telescope offsets are used to mosaic datacubes together, allowing a region larger than the field of view of the IFU to be mapped.

Read-noise and Poisson variances are added to the frame and a bad pixel mask is applied. The spectrum from each slice of the IFU is cut out of the frame and pasted in a new frame in such a way that there are no longer spaces between the spectra, the spectra are arranged in the order in which they appear in the field of view and they are approximately aligned in the dispersion direction. The spectrum is flat-fielded and the wavelength calibration measured from the arc spectrum is used to apply a common, linear wavelength scale to each row of the 2-d spectrum.

Sky-object pairs are now subtracted, and the resulting frame is rearranged to form a data-cube, which is mosaicked into the group.

Notes
Output data

The individual frames with slices extracted and approximately aligned have the suffix _ext. The flat-fielded, scrunched, sky-subtracted pairs have the suffix _scr. A datacube is formed from each pair with the suffix _cub.

The datacubes are mosiacked into a file with the suffix _mos. A white-light image is extracted from this datacube with the suffix _im.

12.6 NIGHT_LOG

Creates a text log summarising file headers

Description

This recipe is used to create a text log summarising the file headers of a group of observations. It is often used to create a log file describing a whole night’s worth of observations.

For full details, see the documentation for the spectroscopy _NIGHT_LOG_ primitive.

This recipe calls the primitive in such a way that the log file appears in $ORAC_DATA_IN.

An ‘on-the-fly’ night log is created in $ORAC_DATA_OUT as spectroscopy data is reduced by the pipeline. This is done by a call to _NIGHT_LOG_ from _SPECTROSCOPY_HELLO_.

See also

The spectroscopy recipe: NIGHT_LOG
The ifu recipe: NIGHT_LOG_LONG
The ifu primitive: _NIGHT_LOG_

12.7 NIGHT_LOG_LONG

Creates a text log detailing file headers

Description

This recipe does the same as the NIGHT_LOG recipe, except that it produces a more detailed log.

See also

The spectroscopy recipe: NIGHT_LOG_LONG
The ifu recipe: NIGHT_LOG
The ifu primitive: _NIGHT_LOG_

12.8 REDUCE_ARC

Reduces an IFU arc spectrum

Description

This recipe is used to reduce an IFU arc spectrum. A wavelength calibration is obtained for each row of the spectrum. The file containing these calibrations is filed with the calibration system and used to apply a common, linear wavelength calibration to all rows of subsequent observations.

Read-noise and Poisson variances are added to the frame and a bad pixel mask is applied. The spectrum from each slice of the IFU is cut out of the frame and pasted in a new frame in such a way that there are no longer spaces between the spectra. The spectra are now arranged in the order in which they appear in the field of view and approximately aligned in the dispersion direction. The spectrum is divided by the flat-field.

The Figaro Iarc task is then used to obtain a wavelength calibration for each row, using a pre-calibrated arc file to provide the initial fit. Finally all the rows are scrunched to a common, linear wavelength scale to allow the observer to check that the wavelength calibration was correct (i.e. that the spectra are now straight).

Notes
Output data

A file giving the wavelength calibration to be applied to each row is generated with a filename extension of .iar.

A file containing the arc frame with all rows scrunched to a common wavelength scale is produced with a suffix of _scr.

12.9 REDUCE_FLAT

Reduces an IFU flat field

Description

This recipe is used to reduce an IFU flat-field spectrum. The normalised flat is filed with the calibration system.

The relative positions of the slice spectra on the array are contained in a static look-up table. The flat field frame is used to measure the offset of these positions (they are shifted vertically by different amounts for different grisms). This value is filed with the calibration system for use when reducing subsequent frames.

The separate slice spectra are extracted from the frame and rearranged in a new 2-d frame in the correct order (the order in which they cover the 2-d field of view) and approximately aligned in the spectral axis. This produces a frame that looks more like a long-slit spectrum.

The frame is now treated as a standard long-slit spectrum. The image is collapsed in the y-direction, a black-body spectrum is fitted to this and all rows of the flat field are divided by this spectrum to remove the characteristics of the lamp from the flat-field (this does not have to be done precisely because the same flat-field is used for object frames and flux calibrators, so it cancels out anyway). The image is normalised to have a mean value of 1. The flat field is filed with the calibration system.

Notes
Output data

The normalised flat is stored in flat_<n>, where <n> is the observation number.

12.10 REDUCE_SINGLE_FRAME

Reduces a single IFU frame, producing a wavelength calibrated datacube

Description

This recipe reduces a single IFU frame (i.e. no sky subtraction or coadding is carried out).

Read-noise and Poisson variances are added to the frame and a bad pixel mask is applied. The spectrum from each slice of the IFU is cut out of the frame and pasted in a new frame in such a way that there are no longer spaces between the spectra, the spectra are arranged in the order in which they appear in the field of view and they are approximately aligned in the dispersion direction. The spectrum is flat-fielded and the wavelength calibration measured from the arc spectrum is used to apply a common, linear wavelength scale to each row of the the 2-d spectrum.

Once all the rows of the image are scrunched to a common linear wavelength scale the 2-d spectrum from each slice is cut out and used to form a single (y, λ) plane of the (x, y, λ) datacube.

Notes

12.11 STANDARD_STAR

Reduce IFU standard-star observations with a separate sky position

Description

Take a series of standard-star observations and extract and file a standard-star spectrum. This recipe is designed for use when an offset sky position has been used. The frames are subtracted in pairs, giving a sky-subtracted spectrum, which is extracted using optimal extraction. The spectral type and magnitude of the star is obtained from the Simbad database. The resulting spectrum is divided by a black-body spectrum of the appropriate temperature and filed as a calibration frame.

Notes
See also

STANDARD_STAR_NOD_ON_IFU

Output data

The standard-star spectrum divided by a black-body spectrum will be written to a file with the name std_<n>_sp. A datacube in which every (x, y) position contains this spectrum is created with the name std_<n>_cube.

12.12 STANDARD_STAR_NOD_ON_IFU

Reduce IFU standard-star observations when the star has been offset within the field of the IFU.

Description

Take a series of standard-star observations and extract and file a standard-star spectrum. This recipe is designed for use when the star has been offset within the field of the IFU (similar to offsetting along the slit in conventional spectroscopy). The frames are subtracted in pairs, giving a positive and negative spectrum. The two spectra are extracted using optimal extraction and averaged. The resulting spectrum is divided by a black-body spectrum of the appropriate temperature and filed as a calibration frame.

Notes
See also

STANDARD_STAR

Output data

The standard-star spectrum divided by a black-body spectrum will be written to a file with the name std_<n>_sp. A datacube in which every (x, y) position contains this spectrum is created with the name std_<n>_cube.