OMEGA Pipeline Reference Manual  1.0.5
Functions
Stacking Related Functions

Functions

cpl_bivector * omega_get_offsets_from_wcs (const cpl_frameset *frameset, const cpl_frame *ref_frame, int ext)
 Get the offsets of a set of images with respect to mask.
cpl_image ** omega_jitter_stack (cpl_frameset *jset, cpl_frameset *jset_mask, cpl_bivector *offsets, int refine, cpl_parameterlist *pars, int ext)
 Create a stack image and a confidence map from a series of jittered images.
cpl_bivector * omega_tel_offsets (cpl_frameset *set, int mode)
 Get keyword values of stare/jitter/dither offsets.

Detailed Description

Synopsis
Function to stack a series of images, and to get the offset keywords from observations.
#include omega_coadd.h
#include omega_fits.h
#include omega_dfs.h
#include omega_utils.h
#include omega_pfits.h

Function Documentation

cpl_bivector* omega_get_offsets_from_wcs ( const cpl_frameset *  frameset,
const cpl_frame *  ref_frame,
int  ext 
)

Get the offsets of a set of images with respect to mask.

Parameters:
framesetframeset of jittered images.
ref_framereference image frame.
extextension number, 0 for primary header.
Returns:
Telescope offsets in a bivector, of NULL in case of error.

Note that the telescope offsets are already multiplied with -1 to get to the CPL convention. Function cloned from mime_get_offsets_from_wcs

Definition at line 289 of file omega_coadd.c.

cpl_image** omega_jitter_stack ( cpl_frameset *  jset,
cpl_frameset *  jset_mask,
cpl_bivector *  offsets,
int  refine,
cpl_parameterlist *  pars,
int  ext 
)

Create a stack image and a confidence map from a series of jittered images.

Parameters:
jsetset of frames with jittered frames only
offsetsarray of bivectors with offsets for all images pars parameter list ext FITS extension to load
Returns:
array with two images, the first is the stack the second is the confidence map. Returns NULL in case of error.

Definition at line 75 of file omega_coadd.c.

cpl_bivector* omega_tel_offsets ( cpl_frameset *  set,
int  mode 
)

Get keyword values of stare/jitter/dither offsets.

Parameters:
setFrame set with images
modeScience mode (1=stare,2=jitter,3=dither,4=offset)
Returns:
offsets bivector with offsets for all images of the frame set. NULL in case of error.

Bivector is created as X,Y, one pair per image.

Definition at line 201 of file omega_coadd.c.

References omega_pfits_get_cd22(), omega_pfits_get_cdelt2(), omega_pfits_get_dither_offsetx(), omega_pfits_get_dither_offsety(), omega_pfits_get_jitter_offset(), omega_pfits_get_offset_alpha(), and omega_pfits_get_offset_delta().