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

lib/misc.c File Reference

Misc. project-wide routines. More...

Go to the source code of this file.

Functions

void banner_snifs (void)
 Goodbye banner, to be called by atexit.

void init_snifs (char *cvsname, char *cvsversion)
 Snifs-specific initialisation.

float read_exptime (void *anyfile)
 Read exposure time descriptor (defaulted to -1) from open file.

float read_airmass (void *anyfile)
 Read AIRMASS descriptor (defaulted to -1) from open file.

float check_airmass (char *arcname, float cal_airmass, char *objname, float obj_airmass)
 Check airmass consistency between two exposures.


Detailed Description

Misc. project-wide routines.

Copyright:
(c) 2004 CRAL-Observatoire de Lyon
Date:
Thu Apr 28 11:08:02 2005
Author:
Yannick Copin <y.copin@ipnl.in2p3.fr>

Author
ycopin
Version:
Revision
1.8
Id
misc.c,v 1.8 2005/09/18 22:49:00 ycopin Exp

Note:
Previously known as pkg/lib/lib/misc.c (v1.8)

Definition in file misc.c.


Function Documentation

void banner_snifs void   ) 
 

Goodbye banner, to be called by atexit.

Definition at line 29 of file misc.c.

Referenced by init_snifs().

void init_snifs char *  cvsname,
char *  cvsversion
 

Snifs-specific initialisation.

Parameters:
cvsname CVS-name (in the standard form "$Name: $")
cvsversion CVS-revision (in the standard form "$Revision: 1.8 $")
The init_snifs will call set_version with properly parsed CVS-strings. It should be called just before the standard init_session.

Definition at line 53 of file misc.c.

References banner_snifs().

Referenced by main().

Here is the call graph for this function:

float read_exptime void *  anyfile  ) 
 

Read exposure time descriptor (defaulted to -1) from open file.

Deprecated:
The spectrographic channel exposure time keyword EXPTIME is 10s too long wrt. real exposure time (as can be read from photometric channel). We therefore use the keyword EFFTIME which has to be correct.

Definition at line 93 of file misc.c.

References EFFTIME.

Referenced by main().

float read_airmass void *  anyfile  ) 
 

Read AIRMASS descriptor (defaulted to -1) from open file.

Definition at line 122 of file misc.c.

References AIRMASS.

Referenced by comp_calibration_offsets(), and main().

float check_airmass char *  arcname,
float  cal_airmass,
char *  objname,
float  obj_airmass
 

Check airmass consistency between two exposures.

Parameters:
arcname Arc name
cal_airmass Arc airmass (<0 if unset)
objname Object name
obj_airmass Object airmass (<0 if unset)
Returns:
Zenithal distance (or -1 if cannot be computed)

Definition at line 152 of file misc.c.

Referenced by main().


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