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.

Defines

#define ARCWIDTH   128
 Full-width of arc raster used for offset computations.


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], double msig, double emsig)
 Print-out correlation-peak quantities.

int comp_calibration_offsets (char *refname, float *ref_airmass, char *arcname, float *cal_airmass, float *cal_jdate, char *arc2name, float *cal2_airmass, float *cal2_jdate, double offset[2])
 Compute the offset between reference and calibration frames.


Detailed Description

Calibration-offset related procedures.

Copyright:
(c) 2004 IPNL
Date:
Mon Jul 5 17:56:27 CEST 2004
Author:
Yannick Copin <y.copin@ipnl.in2p3.fr>

Author
ycopin
Version:
Revision
1.4
Id
proc_shift.c,v 1.4 2004/09/03 16:08:56 ycopin Exp

Definition in file proc_shift.c.


Define Documentation

#define ARCWIDTH   128
 

Full-width of arc raster used for offset computations.

Definition at line 21 of 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 comp_calibration_offsets(), and main().

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

Print-out correlation-peak quantities.

Definition at line 52 of file proc_shift.c.

Referenced by comp_calibration_offsets(), and main().

int comp_calibration_offsets char *  refname,
float *  ref_airmass,
char *  arcname,
float *  cal_airmass,
float *  cal_jdate,
char *  arc2name,
float *  cal2_airmass,
float *  cal2_jdate,
double  offset[2]
 

Compute the offset between reference and calibration frames.

Parameters:
refname Name of the input reference calibration frame
ref_airmass Airmass of the reference frame
arcname Name of the calibration frame
cal_airmass 
cal_jdate Airmass and julian date of the calibration frame
arc2name Name of the 2nd calibration frame (if any, or NULL)
cal2_airmass 
cal2_jdate Airmass and julian date of the 2nd calibration frame
offset Computed calibration offset
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 87 of file proc_shift.c.

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

Referenced by main().


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