Basic calibration Utilities

Functions

int hawki_bkg_imglist_calib (cpl_imagelist *ilist, cpl_imagelist *bkg)
 Apply the background subtraction to the images.
int hawki_bpm_calib (cpl_image *ima, const char *bpm, int idet)
 Apply the BPM correction to an image.
int hawki_flat_bpm_detector_calib (cpl_imagelist *ilist, cpl_image *flat, cpl_image *bpm)
 Apply the calibration to the images.
int hawki_flat_bpm_imglist_calib (cpl_imagelist *ilist, cpl_imagelist *flat, cpl_imagelist *bpm)
 Apply the calibration to the images.
int hawki_flat_dark_bpm_detector_calib (cpl_imagelist *ilist, cpl_image *flat, cpl_image *dark, cpl_image *bpm)
 Apply the calibration to the images.
int hawki_flat_dark_bpm_imglist_calib (cpl_imagelist *ilist, cpl_imagelist *flat, cpl_imagelist *dark, cpl_imagelist *bpm)
 Apply the calibration to the images.

Function Documentation

int hawki_bkg_imglist_calib ( cpl_imagelist *  ilist,
cpl_imagelist *  bkg 
)

Apply the background subtraction to the images.

Parameters:
ilist the input image list
bkg the background images
Returns:
0 if everything is ok, -1 otherwise

Definition at line 223 of file hawki_calib.c.

int hawki_bpm_calib ( cpl_image *  ima,
const char *  bpm,
int  idet 
)

Apply the BPM correction to an image.

Parameters:
ima the image to correct
idet the detector the image comes from
bpm the bad pixels map
Returns:
0 if everything is ok, -1 otherwise

Definition at line 403 of file hawki_calib.c.

References hawki_get_ext_from_detector().

int hawki_flat_bpm_detector_calib ( cpl_imagelist *  ilist,
cpl_image *  flat,
cpl_image *  bpm 
)

Apply the calibration to the images.

Parameters:
ilist the input image list
flat the flat field
bpm the bad pixels map
idet the detector id
Returns:
0 if everything is ok, -1 otherwise

This function takes as an input a list of images which in principle should belong to the same HAWK-I detector. It also takes as an input an image for the flat, the dark and bpm for that detector. It is the responsability of the caller to ensure that the detector of all these inputs is the same.

Definition at line 346 of file hawki_calib.c.

int hawki_flat_bpm_imglist_calib ( cpl_imagelist *  ilist,
cpl_imagelist *  flat,
cpl_imagelist *  bpm 
)

Apply the calibration to the images.

Parameters:
ilist the input image list
flat the flat field
bpm the bad pixels map
Returns:
0 if everything is ok, -1 otherwise

This function takes as an input an image list that contains four images, one for each HAWK-I detector and the same for the flat and bpm. It applies the 2 corrections (if images are not null) to each detector.

Definition at line 158 of file hawki_calib.c.

int hawki_flat_dark_bpm_detector_calib ( cpl_imagelist *  ilist,
cpl_image *  flat,
cpl_image *  dark,
cpl_image *  bpm 
)

Apply the calibration to the images.

Parameters:
ilist the input image list
flat the flat field
dark the dark (scaled to exp time of the science images)
bpm the bad pixels map
idet the detector id.
Returns:
0 if everything is ok, -1 otherwise

This function takes as an input a list of images which in principle should belong to the same HAWK-I detector. It also takes as an input an image for the flat, the dark and bpm for that detector. It is the responsability of the caller to ensure that the detector of all these inputs is the same. Take into account that the dark is just subtracted, no scaling is done.

Definition at line 271 of file hawki_calib.c.

int hawki_flat_dark_bpm_imglist_calib ( cpl_imagelist *  ilist,
cpl_imagelist *  flat,
cpl_imagelist *  dark,
cpl_imagelist *  bpm 
)

Apply the calibration to the images.

Parameters:
ilist the input image list
flat the flat field
dark the dark (scaled to exp time of the science images)
bpm the bad pixels map
Returns:
0 if everything is ok, -1 otherwise

This function takes as an input an image list that contains four images, one for each HAWK-I detector and the same for the flat, dark and bpm. It applies the 3 corrections (if images are not null) to each detector. Take into account that the dark is just subtracted, no scaling is done.

Definition at line 69 of file hawki_calib.c.


Generated on 10 Jun 2010 for HAWKI Pipeline Reference Manual by  doxygen 1.6.1