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

extract/lib/proc_shift.c File Reference

Calibration-offset related procedures. More...

Go to the source code of this file.

Functions

void comp_mean_disp (double parpeak[6], double eparpeak[6], double *msig, double *emsig)
 Convert correlation-peak quantities to intrinsic quantities.

void print_parpeak (double parpeak[6], double eparpeak[6])
 Print-out correlation-peak quantities.

int comp_calibration_offsets (char *refName, char *arcName, float *arcAirmass, float *arcJDate, char *arc2Name, float *arc2Airmass, float *arc2JDate, float offset[2])
 Compute the offset between reference and calibration frames.

int comp_specres (char *arcName, float *specres)

Variables

int const  ARCWIDTH = 128
 Offset computation arc raster full-width.


Detailed Description

Calibration-offset related procedures.

Copyright:
(c) 2004 IPNL
Date:
Tue Jan 25 12:32:58 2005
Author:
Yannick Copin <y.copin@ipnl.in2p3.fr>

Author
ycopin
Version:
Revision
1.11
Id
proc_shift.c,v 1.11 2005/10/05 22:44:30 ycopin Exp

Definition in file proc_shift.c.


Function Documentation

void comp_mean_disp double  parpeak[6],
double  eparpeak[6],
double *  msig,
double *  emsig
 

Convert correlation-peak quantities to intrinsic quantities.

Parameters:
parpeak 
eparpeak X-corr. peak fit parameters and errors (x-, y-offset, intensity, x-, y-sigma, background)
msig 
emsig Mean dispersion and error

Definition at line 35 of file proc_shift.c.

Referenced by main(), and print_parpeak().

void print_parpeak double  parpeak[6],
double  eparpeak[6]
 

Print-out correlation-peak quantities.

Note:
Includes a call to comp_mean_disp

Definition at line 54 of file proc_shift.c.

References comp_mean_disp().

Referenced by comp_calibration_offsets(), comp_specres(), and main().

Here is the call graph for this function:

int comp_calibration_offsets char *  refName,
char *  arcName,
float *  arcAirmass,
float *  arcJDate,
char *  arc2Name,
float *  arc2Airmass,
float *  arc2JDate,
float  offset[2]
 

Compute the offset between reference and calibration frames.

Parameters:
refName Name of the input reference calibration frame
arcName Name of the calibration frame
arcAirmass 
arcJDate Airmass and julian date of the calibration frame
arc2Name Name of the 2nd calibration frame (if any, or NULL)
arc2Airmass 
arc2JDate Airmass and julian date of the 2nd calibration frame
offset Computed calibration offset [px]
Returns:
Error status
Warning:
Logically, but conter-intuitively, it computes the offset to be subtracted to the reference frame (from which the optical model is derived) to get back to the calibration frame position (to which the optical model has to be applied)!

Definition at line 90 of file proc_shift.c.

References ARCWIDTH, Channel, channel_names, extract_arc(), Fit_Xpeak(), open_image(), print_parpeak(), read_airmass(), read_channel(), and read_jdate().

Referenced by main().

Here is the call graph for this function:

int comp_specres char *  arcName,
float *  specres
 

Definition at line 211 of file proc_shift.c.

References ARCWIDTH, extract_arc(), Fit_Xpeak(), open_image(), and print_parpeak().

Referenced by main().

Here is the call graph for this function:


Variable Documentation

int const ARCWIDTH = 128 [static]
 

Offset computation arc raster full-width.

Definition at line 21 of file proc_shift.c.


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