CRIRES pipeline: science recipe |
|||||
|
|
SCIENCE frames (crires_spec_jitter)
Recipe. The pipeline recipe crires_spec_jitter performs the full reduction of science and standard star frames. The following steps are applied:
Dark subtraction. Dark subtraction is performed on each input raw frame if a master dark (PRO.CATG = CALPRO_DARK) is provided. This is usually only needed for DIRECT observations (no nodding). Non-linearity. Correction for non-linearity is performed if the coefficient images from detmon_ir_lg are provided (PRO.CATG COEFFS_CUBE, which has the A, B, and C images). That recipe uses a series of flats with increasing exposure level and fits the function signal = A + B * DIT + C * DIT^2 for each pixel. Assuming that the detector is linear for small exposure levels, then the first derivative of the measured and the true signal are the same. Together with signal_true(DIT=0) = 0, this gives signal_true = B * DIT. Insertion into the equation above results in signal = A + signal_true + C/B^2 * signal_true^2. Finally, this gives the correction for each pixel: signal_true = (-B^2 + B^2 * sqrt(1 - 4*C*(A-signal)/B^2)) / (2*C). Flat-fielding. The input raw frames are divided by a (normalised) flat field. Bad pixel correction. If a bad pixel map is provided, bad pixel are replaced by the average of their neighbours. Image combination. In case of nodding observations, the individual exposures are combined after dark subtraction, correction for non-linearity, and flat-fielding have been applied. The combined image is used for the spectrum extraction and is saved as a separate output product.
Spectrum extraction. Two different methods are applied: rectangular and optimal extraction. Both use a weighting function. In case of rectangular extraction, the function is constant over N pixels which gives a simple average across the slit. For optimal extraction, the spectral profile is fitted. Each weighting function is normalised so that the integral over it gives 1. The normalisation factors are given in the output product. (In case of rectangular extraction, the normalisation factor is constant and equal to N.) The extracted spectra from both methods are contained in the output product. The weighting profile for optimal extraction is saved in a separate product and can be used to verify that the spectrum has been correctly identified and traced.
Wavelength calibration. If a wavelength solution from an arc lamp or gas cell exposure is present then this result is applied for the wavelength calibration of the science data. Otherwise, the wavelength calibration is obtained from sky lines present in the science exposure. The latter is usually the case for settings above 2500 nm. The recipe also calls the physical model which gives an alternative wavelength calibration based on the state of the instrument. The model results are added as an additional column in the output product. The wavelength maps from both the physical model and the solution based on measured lines are provided as separate products and can be compared with each other. The physical model gives a uniform solution for all four detectors but the solution can have an offset compared to the line solution since actual line positions are not taken into account. For several settings, there are currently also problems with the model computation which result in incomplete wavelength maps. Products. The following science products are created by the pipeline:
** index of the PIPEFILE name, coded as PIPEFILE in the fits header *** used in the delivered name Data format. All products come as FITS files with 4 extensions which contain the pipeline results (either table or pixel data) for each of the 4 arrays of the detector. The main product (EXTRACT_WL_TAB in case of science data, EXTRACT_SENS_TAB or EXTRACT_TELLURIC_TAB in case of a standard star) has the following table columns:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|