pmDetrendDB.h

Go to the documentation of this file.
00001 /* @file  pmDetrendDB.h
00002  * @brief Tools to query the detrend database system
00003  *
00004  * the functions in here do not perform the detrend database queries directly.  all interfaces
00005  * to the detrend database go through the external dettools functions.  this allows the modules
00006  * and directly dependent program to be sufficiently independent of the database schema that it
00007  * can be used with any properly defined detrend database tables.
00008  *
00009  * @author EAM, IfA
00010  *
00011  * @version $Revision: 1.8 $ $Name:  $
00012  * @date $Date: 2007/01/31 00:35:24 $
00013  * Copyright 2004-2005 Institute for Astronomy, University of Hawaii
00014  */
00015 
00016 #ifndef PM_DETREND_DB_H
00017 #define PM_DETREND_DB_H
00018 
00019 /// @addtogroup detrend Detrend Creation and Application
00020 /// @{
00021 
00022 #include "pmConfig.h"
00023 #include "pmFPALevel.h"
00024 
00025 typedef enum {
00026     PM_DETREND_TYPE_MASK,
00027     PM_DETREND_TYPE_BIAS,
00028     PM_DETREND_TYPE_DARK,
00029     PM_DETREND_TYPE_FLAT,
00030     PM_DETREND_TYPE_FLAT_CORRECTION,
00031     PM_DETREND_TYPE_SHUTTER,
00032     PM_DETREND_TYPE_FRINGE_IMAGE,
00033     PM_DETREND_TYPE_FRINGE_TABLE,
00034     PM_DETREND_TYPE_BACKGROUND,
00035 } pmDetrendType;
00036 
00037 typedef struct
00038 {
00039     char *camera;   // name of camera
00040     psTime time;   // time of input data
00041     pmDetrendType type;   // type of detrend data
00042     char *filter;   // name of filter
00043     float exptime;   // exposure time (for dark, maybe flat & fringe)
00044     float airmass;   // for fringe
00045 }
00046 pmDetrendSelectOptions;
00047 
00048 typedef struct
00049 {
00050     char *detID;   // identifier of detrend run
00051     pmFPALevel level;   // level in FPA hierarchy of individual file
00052 }
00053 pmDetrendSelectResults;
00054 
00055 typedef struct
00056 {
00057     char *detID;   // identifier of detrend image
00058     char *classID;   // level in FPA hierarchy of individual file
00059 }
00060 pmDetrendFileOptions;
00061 
00062 psString pmDetrendTypeToString (pmDetrendType type);
00063 
00064 pmDetrendSelectOptions *pmDetrendSelectOptionsAlloc(const char *camera, psTime time, pmDetrendType type);
00065 pmDetrendSelectResults *pmDetrendSelectResultsAlloc();
00066 pmDetrendSelectResults *pmDetrendSelect (const pmDetrendSelectOptions *options, const pmConfig *config);
00067 char *pmDetrendFile (const char *detID, const char *classID, const pmConfig *config);
00068 
00069 /// @}
00070 # endif

Generated on Fri Feb 2 22:35:28 2007 for Pan-STARRS Module Library by  doxygen 1.5.1