NACO Pipeline Reference Manual  4.4.0
Functions
Functions for LSS spectra

Functions

int irplib_spectrum_find_brightest (const cpl_image *in, int offset, spec_shadows shadows, double min_bright, int orient, double *pos)
 Finds the brightest spectrum in an image. More...
 
cpl_vector * irplib_spectrum_detect_peaks (const cpl_vector *in, int fwhm, double sigma, int display, cpl_vector **fwhms_out, cpl_vector **areas_out)
 Detect the brightest features in a spectrum. More...
 

Detailed Description

Function Documentation

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

Finds the brightest spectrum in an image.

Parameters
inspectral image with spectra
offsetthe diff. between pos. and neg. spectra
shadowsthe spectral shadows
min_brightmin. bright. required for a spectrum
orient1 for vertical spec. 0 for horizontal ones
posthe 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 93 of file irplib_spectrum.c.

cpl_vector* irplib_spectrum_detect_peaks ( const cpl_vector *  in,
int  fwhm,
double  sigma,
int  display,
cpl_vector **  fwhms_out,
cpl_vector **  areas_out 
)

Detect the brightest features in a spectrum.

Parameters
inthe spectrum
fwhmthe FWHM used for the lines convolution
displaythe flag to display
fwhmsthe fwhms of the detected lines
areasthe areas under the detected lines
Returns
The bright lines positions or NULL in error case

The lines positions are in pixels (first pixel is 1)

Definition at line 273 of file irplib_spectrum.c.

Referenced by irplib_ppm_engine().