Functions for LSS spectra


Functions

int irplib_spectrum_find_brightest (cpl_image *in, int offset, spec_shadows shadows, double min_bright, int orient, double *pos)
 Finds the brightest spectrum in an image.

Function Documentation

int irplib_spectrum_find_brightest cpl_image *  in,
int  offset,
spec_shadows  shadows,
double  min_bright,
int  orient,
double *  pos
 

Finds the brightest spectrum in an image.

Parameters:
in spectral image with spectra
offset the diff. between pos. and neg. spectra
shadows the spectral shadows
min_bright min. bright. required for a spectrum
orient 1 for vertical spec. 0 for horizontal ones
pos the computed spectrum position (1->npix)
Returns:
int 0 if ok, -1 in error case
Finds the brightest spectrum in an image by collapsing the image orthogonally to the spectrum orientation. Spectra are assumed to be horizontal for orient==0, vertical for 1

Definition at line 84 of file irplib_spectrum.c.


Generated on Tue Jun 19 14:39:22 2007 for UVES Pipeline Reference Manual by  doxygen 1.4.6