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 SMAX   2.0
 Maximum X-disp. sigma [px].

#define SMIN   0.1
 Minimum 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

long * glnpeaks
double * glpeaks
double *** glScs
double *** glIcs
int glnggeo
double * glIgeo
double * glXgeo
double * glSgeo
int glngpsf
double ** glIpsf
double ** glSpsf
int glngloc


Detailed Description

Main file for extract_spec.

Copyright:
(c) 2003 CRAL-Observatoire de Lyon
Date:
Wed Mar 24 14:28:26 2004
Author:
Yannick Copin <y.copin@ipnl.in2p3.fr>

Author
ycopin
Version:
Adapted from Sauron 5.0

Revision
1.35
Id
extract_spec.c,v 1.35 2004/11/18 23:03:32 ycopin Exp

Definition in file extract_spec.c.


Define Documentation

#define DBG_PREFIX   "dbg_ext"
 

Prefix for debug files.

Definition at line 23 of file extract_spec.c.

#define SMAX   2.0
 

Maximum X-disp. sigma [px].

Definition at line 34 of file extract_spec.c.

Referenced by main().

#define SMIN   0.1
 

Minimum X-disp. sigma [px].

Definition at line 35 of file extract_spec.c.

Referenced by main().

#define NEIGHBRANGE_C   0.5
 

Definition at line 41 of file extract_spec.c.

Referenced by main().

#define NEIGHBRANGE_F   1.3
 

Definition at line 43 of file extract_spec.c.

Referenced by main().

#define TOOFAR   3
 

Definition at line 45 of file extract_spec.c.

Referenced by main().


Function Documentation

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

Function used by E04JAF for the linear fit of the intensity of the peaks

The array glnpeaks is a global variable:

  • glnpeaks[0] : size of the fitting area, in pixels
  • glnpeaks[1..n] : lens number associated to the peaks, from left to right
  • glpeaks[0..glnpeaks[0]-1] : data to fit, x
  • glpeaks[glnpeaks[0]..2*glnpeaks[0]-1] : data to fit, y
  • glpeaks[2*glnpeaks[0]..2*glnpeaks[0]+n-1] : x-position of the peak

Parameters:
n 
I 
result 
Returns:
OK

Definition at line 82 of file extract_spec.c.

References glnpeaks, glpeaks, and Mpup_PSF().

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 158 of file extract_spec.c.

References CALARC, CALARC2, SnifsConfig::ccd, SnifsOptics::center, SnifsOptics::channel, Channel, channel_names, check_airmass(), check_jdate(), comp_calibration_offsets(), DBG_PREFIX, SnifsOptics::enlarger, EXTMASK, SnifsOptics::filter, Fit_polynom2(), funct1(), glIcs, glIgeo, glIpsf, glnggeo, glngpsf, glnpeaks, glpeaks, glScs, glSgeo, glSpsf, glXgeo, good_neighbor(), init_snifs(), LAB_COL_I, LAB_COL_J, LENSIZE3, LRANGE4, SnifsOptics::MLA, Mpup_PSF(), MSK_ARC, NEIGHBRANGE_C, NEIGHBRANGE_F, OBJECT, OFFMASK, open_image_ext(), open_mask(), SnifsConfig::optics, SnifsDetector::pixsize, print_snifs_config(), read_airmass(), read_channel(), read_juliandate(), read_lbdaref(), read_local_model(), read_mean_RoN(), read_PSFgeo_param(), read_PSFglobal_param(), read_PSFlocal_ng(), read_snifs_config_from_mask(), Telescope::scale, set_corePSF(), SMAX, SMIN, snifs_optics_CCD2MLA(), snifs_optics_MLA2CCD(), SNIFS_SAMPL, SnifsConfig::telescope, and TOOFAR.


Variable Documentation

long* glnpeaks
 

Definition at line 47 of file extract_spec.c.

Referenced by funct1(), and main().

double* glpeaks
 

Definition at line 48 of file extract_spec.c.

Referenced by funct1(), and main().

double*** glScs
 

Definition at line 49 of file extract_spec.c.

Referenced by main(), and Mpup_PSF().

double *** glIcs
 

Definition at line 49 of file extract_spec.c.

Referenced by main(), and Mpup_PSF().

int glnggeo
 

Definition at line 52 of file extract_spec.c.

double* glIgeo
 

Definition at line 53 of file extract_spec.c.

double * glXgeo
 

Definition at line 53 of file extract_spec.c.

double * glSgeo
 

Definition at line 53 of file extract_spec.c.

int glngpsf
 

Definition at line 56 of file extract_spec.c.

double** glIpsf
 

Definition at line 59 of file extract_spec.c.

double ** glSpsf
 

Definition at line 59 of file extract_spec.c.

int glngloc
 

Definition at line 62 of file extract_spec.c.


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