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

extract/lib/proc_misc.c File Reference

Misc. routines. More...

Go to the source code of this file.

Functions

int open_image (IMAGE2D *frame, char *name, char *mode, int class, char *type)
 Open a frame and check FCLASS.

int open_image_ext (IMAGE2D *signal, IMAGE2D *variance, char *name, char *mode, int class, char *type)
float read_mean_RoN (void *anyfile, Channel channel)
 Compute mean RoN from RDNOISE descriptors.

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

float read_juliandate (void *anyfile)
 Read MJDATE descriptor (defaulted to 0) from open file.

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

float check_jdate (char *arcname, float cal_jdate, char *objname, float obj_jdate)
 Check julian date consistency between two exposures.


Detailed Description

Misc. routines.

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

Author
ycopin
Version:
Revision
1.12
Id
proc_misc.c,v 1.12 2004/11/19 12:55:14 ycopin Exp

Definition in file proc_misc.c.


Function Documentation

int open_image IMAGE2D *  frame,
char *  name,
char *  mode,
int  class,
char *  type
 

Open a frame and check FCLASS.

Parameters:
frame Frame structure
name Name of the frame
mode I/O mode (same as open_frame)
class Required FCLASS
  • >0 for a known fclass
  • 0 if unknown (no check)
  • <0 to disable check explicitely
type The msg will be ("Opening %s frame",type)
Returns:
Error status

Definition at line 37 of file proc_misc.c.

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

int open_image_ext IMAGE2D *  signal,
IMAGE2D *  variance,
char *  name,
char *  mode,
int  class,
char *  type
 

Open a frame (possibly with extensions [signal] and [variance]) and check FCLASS

Parameters:
signal Frame structure with signal
variance Frame structure with variance (or NULL if not needed)
name Name of the frame
mode I/O mode (same as open_frame)
class Required FCLASS
  • >0 for a known fclass
  • 0 if unknown (no check)
  • <0 to disable check explicitely
type The msg will be ("Opening %s frame",type)
Returns:
Error status

Definition at line 89 of file proc_misc.c.

References open_image().

Referenced by main().

float read_mean_RoN void *  anyfile,
Channel  channel
 

Compute mean RoN from RDNOISE descriptors.

Definition at line 127 of file proc_misc.c.

References BLUE_CHANNEL, CCDB_RON, CCDR_RON, channel_names, and RDNOISE2.

Referenced by main().

float read_airmass void *  anyfile  ) 
 

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

Definition at line 153 of file proc_misc.c.

References AIRMASS.

Referenced by comp_calibration_offsets(), and main().

float read_juliandate void *  anyfile  ) 
 

Read MJDATE descriptor (defaulted to 0) from open file.

Definition at line 178 of file proc_misc.c.

References MJDATE.

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.

Definition at line 203 of file proc_misc.c.

Referenced by main().

float check_jdate char *  arcname,
float  cal_jdate,
char *  objname,
float  obj_jdate
 

Check julian date consistency between two exposures.

Definition at line 226 of file proc_misc.c.

Referenced by main().


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