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

extract/source/extract_spec.c File Reference

Main file for extract_spec. More...

Go to the source code of this file.

Defines

#define DBG_PREFIX   "dbg_ext"
 Prefix for debug files.

#define SMIN   0.1
 Minimum X-disp. sigma [px].

#define SMAX   1.2
 Maximum X-disp. sigma [px].

#define NEIGHBRANGE_C   0.5
#define NEIGHBRANGE_F   1.3
#define TOOFAR   3

Functions

long funct1 (long *n, double *I, double *result)
int main (int argc, char **argv)

Variables

int const  ORDER = 1
 Order of the extracted spectra.

int const  XOFY_DEGMAX = 7
 Max. degree for xd = f(yd) polynomial.

int const  YOFL_DEGMAX = 7
 Max. degree for yd = f(lbda) polynomial.

int const  LOFY_DEGMAX = 7
 Max. degree for lbda = f(yd) polynomial.

int const  POLY_NPTS = 50
 Number of points in polynoms.

int const  DBGSIDEWIN = 3
 Size of the debug storage window.

int const  XTRALENGTH = 30
 Filter extra-length for neighbor finding.

long * glnpeaks
double * glpeaks


Detailed Description

Main file for extract_spec.

Copyright:
(c) 2005 IPNL - Universite Lyon I
Date:
Mon Oct 24 12:34:09 2005
Author:
Yannick Copin <y.copin@ipnl.in2p3.fr>

Author
ycopin
Version:
Revision
1.54
Id
extract_spec.c,v 1.54 2005/10/24 10:39:50 ycopin Exp

Note:
The code went through major object-oriented rewrite between v1.48 and v1.49. The sandbox was new_extract_spec up to v1.3.

Definition in file extract_spec.c.


Define Documentation

#define DBG_PREFIX   "dbg_ext"
 

Prefix for debug files.

Definition at line 24 of file extract_spec.c.

#define SMIN   0.1
 

Minimum X-disp. sigma [px].

Definition at line 33 of file extract_spec.c.

Referenced by main().

#define SMAX   1.2
 

Maximum X-disp. sigma [px].

Definition at line 34 of file extract_spec.c.

Referenced by main().

#define NEIGHBRANGE_C   0.5
 

Definition at line 40 of file extract_spec.c.

Referenced by main().

#define NEIGHBRANGE_F   1.3
 

Definition at line 42 of file extract_spec.c.

Referenced by main().

#define TOOFAR   3
 

Definition at line 44 of file extract_spec.c.

Referenced by main().


Function Documentation

long funct1 long *  n,
double *  I,
double *  result
 

Definition at line 49 of file extract_spec.c.

Referenced by main().

int main int  argc,
char **  argv
 

Definition at line 111 of file extract_spec.c.

References alpha, BLUE_CHANNEL, SnifsConfig::ccd, SnifsOptics::center, SnifsOptics::channel, Channel, channel_names, check_airmass(), check_jdate(), comp_calibration_offsets(), comp_specres(), DBG_PREFIX, DBGSIDEWIN, SpectrumCCD::dx, SnifsOptics::enlarger, SnifsOptics::filter, Fit_polynom2(), funct1(), glnpeaks, glpeaks, good_neighbor_spectrum(), init_snifs(), interpolate_y2lbda(), CorePSF::Ipsf, LAB_COL_I, LAB_COL_J, LENSIZE3, SpectrumCCD::lmin, SpectrumCCD::lofy, LOFY_DEGMAX, LRANGE4, SnifsOptics::MLA, MSK_ARC, SpectrumCCD::ncoeff, NEIGHBRANGE_C, NEIGHBRANGE_F, CorePSF::nggeo, CorePSF::ngpsf, SpectrumCCD::no, OBJECT, open_image_ext(), open_mask(), SnifsConfig::optics, ORDER, SnifsDetector::pixsize, POLY_NPTS, print_snifs_config(), read_airmass(), read_channel(), read_corePSF(), read_jdate(), read_lbdaref(), read_mask_arc(), read_mean_RoN(), read_snifs_config_from_mask(), read_spectra_chromatic_model(), read_spectra_refcoord(), Telescope::scale, SpectrumCCD::sig, SMAX, SMIN, snifs_optics_CCD2MLA(), snifs_optics_MLA2CCD(), SNIFS_SAMPL, SNIFSB_LSTEP, SNIFSR_LSTEP, CorePSF::Spsf, SnifsConfig::telescope, TOOFAR, SpectrumCCD::total, SpectrumCCD::useful, x, xc, xdisp_profile(), SpectrumCCD::xlo, SpectrumCCD::xofy, XOFY_DEGMAX, XTRALENGTH, SpectrumCCD::xup, yc, SpectrumCCD::yofl, YOFL_DEGMAX, and SpectrumCCD::yup.

Here is the call graph for this function:


Variable Documentation

int const ORDER = 1 [static]
 

Order of the extracted spectra.

Definition at line 26 of file extract_spec.c.

Referenced by main().

int const XOFY_DEGMAX = 7 [static]
 

Max. degree for xd = f(yd) polynomial.

Definition at line 28 of file extract_spec.c.

Referenced by main().

int const YOFL_DEGMAX = 7 [static]
 

Max. degree for yd = f(lbda) polynomial.

Definition at line 29 of file extract_spec.c.

Referenced by main().

int const LOFY_DEGMAX = 7 [static]
 

Max. degree for lbda = f(yd) polynomial.

Definition at line 30 of file extract_spec.c.

Referenced by main().

int const POLY_NPTS = 50 [static]
 

Number of points in polynoms.

Definition at line 31 of file extract_spec.c.

Referenced by main().

int const DBGSIDEWIN = 3 [static]
 

Size of the debug storage window.

Definition at line 36 of file extract_spec.c.

Referenced by main().

int const XTRALENGTH = 30 [static]
 

Filter extra-length for neighbor finding.

Definition at line 37 of file extract_spec.c.

Referenced by main().

long* glnpeaks
 

Definition at line 46 of file extract_spec.c.

Referenced by main().

double* glpeaks
 

Definition at line 47 of file extract_spec.c.

Referenced by main().


Generated on Thu Oct 27 00:00:12 2005 for Snifs by doxygen 1.3.5