Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

calib/source/comp_lfff.c File Reference

Main file for comp_lfff. More...

Go to the source code of this file.

Defines

#define NORM_CONT   1

Functions

int find_central_indices (TIGERfile *cube, int nmax, int idx[])
 Find a lens indices in a cube according to A,D-radius.

int find_lens (TIGERfile *frame, int no)
 Find a lens index in a cube.

float compute_mean_spec (SPECTRUM *spec, float frac, int radius)
 Compute central mean of input (median-filtered) spectrum.

void compute_mean_cube (TIGERfile *cube, float frac, int radius, float cont[], int dbglens)
 compute_mean_spec of each spectrum of a cube

int main (int argc, char **argv)


Detailed Description

Main file for comp_lfff.

Copyright:
(c) 2004 CRAL-Observatoire de Lyon
Date:
Date
2004/11/09 17:07:45
Author:
J-L Villecroze, R Bacon, E Emsellem

Yannick Copin <y.copin@ipnl.in2p3.fr>

Author
ycopin
Version:
Adapted from comp_lfff_SAU v1.7

Revision
1.9
Id
comp_lfff.c,v 1.9 2004/11/09 17:07:45 ycopin Exp

Definition in file comp_lfff.c.


Define Documentation

#define NORM_CONT   1
 

Option to use the normalisation from the continuum

Definition at line 24 of file comp_lfff.c.


Function Documentation

int find_central_indices TIGERfile *  cube,
int  nmax,
int  idx[]
 

Find a lens indices in a cube according to A,D-radius.

Parameters:
cube Input cube
nmax Nb of requested lenses
idx Indices of the central lenses
Returns:
Nb of central lenses found (<= nmax)

Definition at line 37 of file comp_lfff.c.

Referenced by main().

int find_lens TIGERfile *  frame,
int  no
 

Find a lens index in a cube.

Parameters:
frame Input cube
no Target lens
Returns:
Index (-1 if not found)

Definition at line 85 of file comp_lfff.c.

Referenced by main().

float compute_mean_spec SPECTRUM *  spec,
float  frac,
int  radius
 

Compute central mean of input (median-filtered) spectrum.

Parameters:
spec Input spectrum
frac Central fraction of the spectrum used in mean
radius Radius of the median filter
Returns:
Mean value

Definition at line 106 of file comp_lfff.c.

References filter_med_array().

Referenced by compute_mean_cube().

void compute_mean_cube TIGERfile *  cube,
float  frac,
int  radius,
float  cont[],
int  dbglens
 

compute_mean_spec of each spectrum of a cube

Parameters:
cube Input cube
frac Central fraction of the spectrum used in mean
radius Radius of the median filter
cont Output array (allocated, cube->npts)
dbglens Debug lens (if >0)

Definition at line 140 of file comp_lfff.c.

References compute_mean_spec(), and main().

Referenced by main().

int main int  argc,
char **  argv
 

Bug:
Do not check FCLASS yet: the preprocess does not propagate FCLASS on B-channel

Definition at line 188 of file comp_lfff.c.

References compute_mean_cube(), find_central_indices(), find_lens(), and init_snifs().


Generated on Tue Nov 23 18:04:20 2004 for Snifs by doxygen 1.3.3