GIRAFFE Pipeline Reference Manual

Spectrum Localization

Functions

cxint giraffe_localize_spectra (GiLocalization *result, GiImage *image, GiTable *fibers, GiLocalization *master, GiImage *badpixels, GiLocalizeConfig *config)
 Finds the location of spectra in a Giraffe observation.
GiLocalizeConfig * giraffe_localize_config_create (cpl_parameterlist *list)
 Creates a setup structure for the spectrum localization.
void giraffe_localize_config_destroy (GiLocalizeConfig *config)
 Destroys a spectrum localization setup structure.
void giraffe_localize_config_add (cpl_parameterlist *list)
 Adds parameters for the spectrum localization.

Detailed Description

TBD


Function Documentation

void giraffe_localize_config_add ( cpl_parameterlist *  list  ) 

Adds parameters for the spectrum localization.

Parameters:
list Parameter list to which parameters are added.
Returns:
Nothing.

TBD

Definition at line 3313 of file gilocalize.c.

GiLocalizeConfig* giraffe_localize_config_create ( cpl_parameterlist *  list  ) 

Creates a setup structure for the spectrum localization.

Parameters:
list Parameter list from which the setup informations is read.
Returns:
A newly allocated and initialized setup structure if no errors occurred, or NULL otherwise.

Definition at line 3182 of file gilocalize.c.

void giraffe_localize_config_destroy ( GiLocalizeConfig *  config  ) 

Destroys a spectrum localization setup structure.

Parameters:
config The setup structure to destroy.
Returns:
Nothing.

The function deallocates the memory used by the setup structure config.

Definition at line 3289 of file gilocalize.c.

cxint giraffe_localize_spectra ( GiLocalization *  result,
GiImage *  image,
GiTable *  fibers,
GiLocalization *  master,
GiImage *  badpixels,
GiLocalizeConfig *  config 
)

Finds the location of spectra in a Giraffe observation.

Parameters:
result The results of the spectrum localization task.
image The image where spectra are searched.
fibers The fibers/spectra to be localized.
master An existing localization to use as first guess.
badpixels The bad pixel map to use.
config Setup parameters for the localization task.
Returns:
The function returns 0 on succes, or 1 otherwise.

The function expects a bias corrected and optionally dark subtracted image as input image image. Optionally a bad pixel map badpixels may be passed to the function. If badpixels is not NULL the flagged pixels in the map are not used during the processing (not yet implemented, currently the bad pixel map is simply ignored).

If the localization should only be done on the simultaneous calibration fibers a `master' localization master must be passed to the function. This is then used as a first guess.

The fiber setup, i.e. the configuration of the fibers used during the observation is expected to be present in the fiber table fibers. The fibers listed in this table will be searched in the image image.

Definition at line 2555 of file gilocalize.c.

References giraffe_get_mode(), giraffe_image_copy_matrix(), giraffe_image_create(), giraffe_image_get(), giraffe_image_get_properties(), giraffe_image_set_properties(), giraffe_propertylist_get_ron(), giraffe_table_copy_matrix(), giraffe_table_create(), giraffe_table_get(), and giraffe_table_get_properties().


This file is part of the GIRAFFE Pipeline Reference Manual 2.8.8.
Documentation copyright © 2002-2006 European Southern Observatory.
Generated on Fri Mar 4 10:50:29 2011 by doxygen 1.6.3 written by Dimitri van Heesch, © 1997-2004