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:
Mon Oct 24 12:39:30 2005

Date
2005/10/24 10:39:50
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.13
Id
comp_lfff.c,v 1.13 2005/10/24 10:39:50 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 25 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 38 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 86 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 107 of file comp_lfff.c.

References filter_med_array().

Referenced by compute_mean_cube().

Here is the call graph for this function:

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 142 of file comp_lfff.c.

References compute_mean_spec(), and main().

Referenced by main().

Here is the call graph for this function:

int main int  argc,
char **  argv
 

Definition at line 194 of file comp_lfff.c.

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

Here is the call graph for this function:


Generated on Wed Oct 26 23:59:42 2005 for Snifs by doxygen 1.3.5