MUSE Pipeline Reference Manual  0.18.5
Functions
Fast Image Reconstruction

Functions

cpl_error_code muclipm_bias_subtract_using_overscan (cpl_image *raw_img)
 Evaluates per quadrant overscan median values and subtract them from input image. More...
 
cpl_error_code muclipm_make_image (const cpl_image *raw_img, const cpl_image *offset, const cpl_image *flat, const cpl_image *mask, const long *slice_xstart, const long *slice_xend, cpl_image **out_img)
 Collapses spectra over the spectral direction. More...
 

Detailed Description

Function used to derive a rough estimate of the field of view observed by MUSE (using spectrographic data as input). This is a fast and dirty reconstruction mode and by the way less accurate than processing the data using the pipeline.

Synopsis:
#include "muclipm_make_image.h"

Function Documentation

cpl_error_code muclipm_bias_subtract_using_overscan ( cpl_image *  raw_img)

Evaluates per quadrant overscan median values and subtract them from input image.

Parameters
raw_imgthe raw image to correct from overscan offset
Returns
CPL error code
Introduction
This function evaluates the median value of the vertical overscan strip of each CCD quadrant and correct each quadrant of the input image with corres- ponding value
Product Creation:
The input cpl_image is updated
Exceptions
return CPL_ERROR_NULL_INPUTraw_img or mask are NULL
return CPL_ERROR_INCOMPATIBLE_INPUTraw_img has wrong dimensions
#include "muclipm_make_image.h"

Definition at line 102 of file muclipm_make_image.c.

Referenced by muclipm_make_image().

cpl_error_code muclipm_make_image ( const cpl_image *  raw_img,
const cpl_image *  offset,
const cpl_image *  flat,
const cpl_image *  mask,
const long *  slice_xstart,
const long *  slice_xend,
cpl_image **  out_img 
)

Collapses spectra over the spectral direction.

Parameters
raw_imgthe raw science image
offsetthe bias image
flatthe flat-field image
maskthe mask image
slice_xstartthe start position of the slices along X
slice_xendthe end position of the slices along X
out_imgthe output image
Returns
CPL error code
Introduction
This function rebuilds from the spectrographic data the image of the field of view belonging from one IFU. Any binning may be used in the spectral direction while a binning in the spatial direction will result in strange behaviour.
Product Creation:
The returned product is a cpl_image
Note
If flat calibration frame is not present (NULL pointer) then corresponding corrections are not applied. If the bias calibration frame is not passed (NULL pointer), then the offset values (1 per CCD quadrant) are evaluated using the overscan strips and applied as a correction. No error message raised in both cases.
Exceptions
return CPL_ERROR_NULL_INPUTraw_img or mask are NULL
return CPL_ERROR_INCOMPATIBLE_INPUTraw_img has wrong dimensions
#include "muclipm_make_image.h"

Definition at line 207 of file muclipm_make_image.c.

References muclipm_bias_subtract_using_overscan().