00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef PM_DETREND_DB_H
00017 #define PM_DETREND_DB_H
00018
00019
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;
00040 psTime time;
00041 pmDetrendType type;
00042 char *filter;
00043 float exptime;
00044 float airmass;
00045 }
00046 pmDetrendSelectOptions;
00047
00048 typedef struct
00049 {
00050 char *detID;
00051 pmFPALevel level;
00052 }
00053 pmDetrendSelectResults;
00054
00055 typedef struct
00056 {
00057 char *detID;
00058 char *classID;
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