SINFONI Pipeline Reference Manual  2.6.0
Functions
Functions for calibrations

Functions

cpl_table * irplib_compute_gain (cpl_frameset *son, cpl_frameset *sof, int *zone, const int kappa, const int nclip)
 Computes the detector's gain. More...
 
cpl_table * irplib_compute_linearity (cpl_frameset *son, cpl_frameset *sof)
 Computes the detector's linearity. More...
 
int irplib_detlin_correct (cpl_imagelist *ilist, const char *detlin_a, const char *detlin_b, const char *detlin_c)
 Apply the detector linearity correction. More...
 
int irplib_flat_dark_bpm_calib (cpl_imagelist *ilist, const char *flat, const char *dark, const char *bpm)
 Apply the calibration to the frames. More...
 
cpl_image * irplib_mkmaster_mean (cpl_imagelist *images, const double kappa, const int nclip, const double tolerance, const double klow, const double khigh, const int niter)
 Computes master frame by clean stack mean of the input imagelist. More...
 
cpl_image * irplib_mkmaster_median (cpl_imagelist *images, const double kappa, const int nclip, const double tolerance)
 Computes master frame by clean stack median of the input imagelist. More...
 

Detailed Description

Function Documentation

cpl_table* irplib_compute_gain ( cpl_frameset *  son,
cpl_frameset *  sof,
int *  zone,
const int  kappa,
const int  nclip 
)

Computes the detector's gain.

Parameters
sonthe input frameset of linearity on-flat fields
softhe input frameset of linearity off-flat fields
zonepointer to an integer array with locations (llx,lly,urx,ury) of region where a clean mean and noise are computed
kappavalue of kappa in kappa-sigma clipping
nclipnumber of kappa-sigma clipping iterations
Returns
pointer to a table containing single gain evaluations
Note
: #1 input frames need to have defined FITS keyword EXPTIME #2 input frames need to have defined FITS keyword DIT

Definition at line 191 of file irplib_calib.c.

cpl_table* irplib_compute_linearity ( cpl_frameset *  son,
cpl_frameset *  sof 
)

Computes the detector's linearity.

Parameters
sonthe input frameset of linearity on flat fields
softhe input frameset of linearity off flat fields
Returns
pointer to a table containing linearity evaluations
Note
: #2 input frames need to have defined FITS keyword EXPTIME #3 input frames need to have defined FITS keyword DIT

Definition at line 374 of file irplib_calib.c.

int irplib_detlin_correct ( cpl_imagelist *  ilist,
const char *  detlin_a,
const char *  detlin_b,
const char *  detlin_c 
)

Apply the detector linearity correction.

Parameters
ilistthe input image list
detlin_athe a coeffs
detlin_bthe b coeffs
detlin_cthe c coeffs
Returns
0 if everything is ok, -1 otherwise

Definition at line 497 of file irplib_calib.c.

int irplib_flat_dark_bpm_calib ( cpl_imagelist *  ilist,
const char *  flat,
const char *  dark,
const char *  bpm 
)

Apply the calibration to the frames.

Parameters
ilistthe input image list
flatthe flat field
darkthe dark
bpmthe bad pixels map
Returns
0 if everything is ok, -1 otherwise

Definition at line 582 of file irplib_calib.c.

cpl_image* irplib_mkmaster_mean ( cpl_imagelist *  images,
const double  kappa,
const int  nclip,
const double  tolerance,
const double  klow,
const double  khigh,
const int  niter 
)

Computes master frame by clean stack mean of the input imagelist.

Parameters
imagesinput imagelist
kappavalue for kappa-sigma clip
nclipNumber of clipping iterations
tolerancetolerance on range between two successive clip iterations
Returns
master image

The returned image must be deallocated.

Definition at line 310 of file irplib_mkmaster.c.

cpl_image* irplib_mkmaster_median ( cpl_imagelist *  images,
const double  kappa,
const int  nclip,
const double  tolerance 
)

Computes master frame by clean stack median of the input imagelist.

Parameters
imagesinput imagelist
kappavalue for kappa-sigma clip
nclipNumber of clipping iterations
tolerancetolerance on range between two successive clip iterations
Returns
master image

The returned image must be deallocated.

Definition at line 349 of file irplib_mkmaster.c.