OMEGA Pipeline Reference Manual  1.0.6
Functions
Flat Fields

Functions

int omega_flatcor (cpl_image *image, const cpl_image *flat, const cpl_image *nsky)
 Divide image by flat field. More...
 
int omega_fringecor (cpl_image *sci, const cpl_image *fringe, const cpl_image *bpm, const cpl_parameterlist *fpars)
 This function takes a reduced science image and correct from the fringing. More...
 
cpl_image * omega_fringes_create (cpl_imagelist *ilist, cpl_image *bpm, int n)
 Create a fringe image from a list of science frames. More...
 
cpl_image * omega_make_mflat (cpl_image *dome, cpl_image *twil, cpl_mask *bpmmap, cpl_parameterlist *pars)
 It creates a master flat field. More...
 
cpl_image * omega_nsky_create (cpl_imagelist *ilist, cpl_image *bpm, int n)
 Create a night sky flat from a series of science frames. More...
 

Detailed Description

Synopsis
This module contains functions to create a flat field (master flat, night sky flat, fringes flat). It also has functions to correct a science frame of a flat.
#include omega_flat.h
#include omega_fftw.h
#include omega_dfs.h
#include omega_pfits.h
#include omega_utils.h
#include omega_stats.h

Function Documentation

int omega_flatcor ( cpl_image *  image,
const cpl_image *  flat,
const cpl_image *  nsky 
)

Divide image by flat field.

Parameters
imageImage to divide flat from
flatFlat field image
nksy(optional) night sky flat
Returns
0 on success or -1 in case of error

Definition at line 326 of file omega_flats.c.

Referenced by omega_fringes_flat_process(), omega_jitter_process(), omega_nsky_process(), and omega_std_process().

int omega_fringecor ( cpl_image *  sci,
const cpl_image *  fringe,
const cpl_image *  bpm,
const cpl_parameterlist *  fpars 
)

This function takes a reduced science image and correct from the fringing.

Parameters
sciReduced Science Image to correct
fringeFringe Image
bpmBad Pixels Map
fparsParameters List
Returns
0 on success or -1 in case of error.

Definition at line 161 of file omega_flats.c.

Referenced by omega_jitter_process().

cpl_image* omega_fringes_create ( cpl_imagelist *  ilist,
cpl_image *  bpm,
int  n 
)

Create a fringe image from a list of science frames.

Parameters
ilistImage list with science images
bpmOptional bad pixels image
nNumber of images
Returns
fringes Image of fringes

Definition at line 401 of file omega_flats.c.

References omega_nsky_create().

cpl_image* omega_make_mflat ( cpl_image *  dome,
cpl_image *  twil,
cpl_mask *  bpmmap,
cpl_parameterlist *  pars 
)

It creates a master flat field.

Parameters
domeDome flat image
twilTwilight flat image
bpmmapBad pixels map
parsParameters list
Returns
twil_comp A master flat field or NULL in case of error

Definition at line 73 of file omega_flats.c.

References omega_get_spatial_freq().

Referenced by omega_mflat_combine().

cpl_image* omega_nsky_create ( cpl_imagelist *  ilist,
cpl_image *  bpm,
int  n 
)

Create a night sky flat from a series of science frames.

Parameters
ilistImage list with reduced science frames
bpmOptional bad pixels image
nNumber of images in list
Returns
nsky Night sky image or NULL in case of error.

Definition at line 358 of file omega_flats.c.

Referenced by omega_fringes_create().