GIRAFFE Pipeline Reference Manual

Rebinning


Defines

#define GIFITS_KEYWORD_MISSING_MSG   "FITS KEYWORD [%s] not found!! Aborting..."
#define GIWAVECAL_GRATING_WAVELENGTH_EPSILON   0.0001

Typedefs

typedef enum GiLocDataType GiLocDataType
typedef GiGrat GiGrat
typedef GiFiberPosition GiFiberPosition
typedef GiLocPosition GiLocPosition
typedef GiBinnParams GiBinnParams
typedef GiSlitGeo GiSlitGeo
typedef GiWcalSolution GiWcalSolution
typedef GiRebinInfo GiRebinInfo

Enumerations

enum  GiLocDataType

Functions

GiRange * giraffe_rebin_get_wavelength_range (GiImage *spectra, GiTable *wlsolution, GiTable *grating, GiTable *slitgeometry, cxbool common)
 Compute the wavelenght range of spectra.
cxint giraffe_rebin_spectra (GiRebinning *rebinning, const GiExtraction *extraction, const GiTable *fibers, const GiLocalization *localization, const GiTable *grating, const GiTable *slitgeo, const GiTable *solution, const GiRebinConfig *config)
 Rebin an Extracted Spectra Frame and associated Errors Frame.
GiRebinninggiraffe_rebinning_new (void)
 Create an empty rebinning results container.
GiRebinninggiraffe_rebinning_create (GiImage *spectra, GiImage *errors)
 Fills a rebinning results container.
void giraffe_rebinning_delete (GiRebinning *rebinning)
 Destroys a rebinning results container.
void giraffe_rebinning_destroy (GiRebinning *rebinning)
 Destroys a rebinning results container and its contents.
GiRebinConfiggiraffe_rebin_config_create (cpl_parameterlist *list)
 Creates a setup structure for the rebinning.
void giraffe_rebin_config_destroy (GiRebinConfig *config)
 Destroys a spectrum extraction setup structure.
void giraffe_rebin_config_add (cpl_parameterlist *list)
 Adds parameters for the rebinning.

Detailed Description

TBD

Function Documentation

void giraffe_rebin_config_add ( cpl_parameterlist *  list  ) 

Adds parameters for the rebinning.

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

Definition at line 4957 of file girebinning.c.

GiRebinConfig* giraffe_rebin_config_create ( cpl_parameterlist *  list  ) 

Creates a setup structure for the rebinning.

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.
Description :
Creates a setup structure for the rebinning

Definition at line 4833 of file girebinning.c.

void giraffe_rebin_config_destroy ( GiRebinConfig config  ) 

Destroys a spectrum extraction setup structure.

Parameters:
config The setup structure to destroy.
Returns:
Nothing.
Description :
The function deallocates the memory used by the setup structure config and all components contained in it.

Definition at line 4933 of file girebinning.c.

GiRange* giraffe_rebin_get_wavelength_range ( GiImage *  spectra,
GiTable *  wlsolution,
GiTable *  grating,
GiTable *  slitgeometry,
cxbool  common 
)

Compute the wavelenght range of spectra.

TBD

Definition at line 3921 of file girebinning.c.

References giraffe_range_create().

Referenced by giraffe_fov_build().

cxint giraffe_rebin_spectra ( GiRebinning rebinning,
const GiExtraction extraction,
const GiTable *  fibers,
const GiLocalization localization,
const GiTable *  grating,
const GiTable *  slitgeo,
const GiTable *  solution,
const GiRebinConfig config 
)

Rebin an Extracted Spectra Frame and associated Errors Frame.

Parameters:
rebinning Rebinned Extracted Spectrum and associated errors
extraction Extraction containing Extracted Spectrum and associated errors.
fibers Table of available fibers
localization Fiber spectra centroid positions and half-width.
grating Grating data table.
slitgeo Slit geometry table.
solution Wavelength calibration solution.
config Rebinning configuration data
Returns:
The function returns 0 on succes, and a value larger than 0 if an error occured.
TBD

Status Description :
1 - Input parameter empty (NULL value) 2 - Missing FITS keyword in input frame 3 - Unable to retrieve Grating Data 4 - No wavelength calibration solution present in input 5 - Invalid optical model in wavelength calibration solution 6 - Error in optical model in wavelength calibration solution 7 - Unable to retrieve Slit Geometry 8 - Error during rebinning 9 - Error converting wavelength calibration corrections.

Definition at line 4059 of file girebinning.c.

References GiExtraction::error, giraffe_image_get_properties(), giraffe_table_get(), giraffe_table_get_properties(), GiLocalization::locw, GiLocalization::locy, GiRebinConfig::lstep, GiRebinConfig::range, GiRebinConfig::rmethod, GiRebinConfig::scmethod, GiRebinConfig::size, GiExtraction::spectra, and GiRebinConfig::xresiduals.

Referenced by giraffe_calibrate_slit(), and giraffe_transmission_compute().

GiRebinning* giraffe_rebinning_create ( GiImage *  spectra,
GiImage *  errors 
)

Fills a rebinning results container.

Parameters:
spectra - Extracted spectra.
errors - Errors of the extracted spectra.
Returns:
A newly allocated rebinning results container or NULL if an error occured
Description :
The function allocales memory for a rebinning results container, and initializes it's values using the parameters given. Only a reference is stored!

Definition at line 4730 of file girebinning.c.

References GiRebinning::errors, giraffe_rebinning_new(), and GiRebinning::spectra.

void giraffe_rebinning_delete ( GiRebinning rebinning  ) 

Destroys a rebinning results container.

Parameters:
rebinning - The rebinning results container to destroy.
Returns:
Nothing.
Description :
The function deallocates the memory used for the rebinning results container rebinning. Only the container itself is destroyed by calling this function. Since the container stores only references to the rebinning components its contents is left untouched and it is the responsibility of the caller to ensure that other references for the stored rebinning components exist.

Definition at line 4767 of file girebinning.c.

Referenced by giraffe_transmission_compute().

void giraffe_rebinning_destroy ( GiRebinning rebinning  ) 

Destroys a rebinning results container and its contents.

Parameters:
rebinning The rebinning results container to destroy.
Returns:
Nothing.
Description :
The function deallocates the memory used for the rebinning results container rebinning and each rebinning component it may contain.

Definition at line 4795 of file girebinning.c.

References GiRebinning::errors, giraffe_image_delete(), and GiRebinning::spectra.

Referenced by giraffe_calibrate_slit(), and giraffe_transmission_compute().

GiRebinning* giraffe_rebinning_new ( void   ) 

Create an empty rebinning results container.

Returns:
A newly allocated rebinning results container or NULL if an error occured
Description :
The function allocales memory for a rebinning results container, and initializes it's values to denote an empty container.

Definition at line 4701 of file girebinning.c.

References GiRebinning::errors, and GiRebinning::spectra.

Referenced by giraffe_calibrate_slit(), giraffe_rebinning_create(), and giraffe_transmission_compute().


This file is part of the GIRAFFE Pipeline Reference Manual 2.10.
Documentation copyright © 2002-2006 European Southern Observatory.
Generated on Thu Mar 7 14:11:03 2013 by doxygen 1.4.7 written by Dimitri van Heesch, © 1997-2004