00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifdef HAVE_CONFIG_H
00029 #include <config.h>
00030 #endif
00031
00032 #ifndef SINFO_SKYCOR_H
00033 #define SINFO_SKYCOR_H
00034 #include <cpl.h>
00035
00036 #define SINFO_MASK_WAVE_MIN 1.4
00037 #define SINFO_MASK_WAVE_MAX 2.5
00038 #define SINFO_MIN_FRAC 0.8
00039 #define SINFO_LINE_HALF_WIDTH 4.0
00040 #define SINFO_SKY_BKG_FILTER_WIDTH 12
00041
00042
00043
00044 #define HISTO_NBINS 100
00045 #define HISTO_MIN_SIZE 10
00046 #define HISTO_Y_CUT 10
00047
00048 #define HISTO_X_LEFT_CUT 1.0
00049 #define HISTO_X_RIGHT_CUT 0.5
00050 #define HISTO_DIST_TEMPC_MIN_FCT 5.
00051 #define HISTO_DIST_TEMPC_MAX_FCT 0.25
00052
00053 struct sinfo_skycor_qc_ {
00054 int th_fit;
00055 };
00056 typedef struct sinfo_skycor_qc_ sinfo_skycor_qc;
00057
00058 sinfo_skycor_qc* sinfo_skycor_qc_new(void);
00059 void sinfo_skycor_qc_delete(sinfo_skycor_qc** s);
00060
00061
00062 int
00063 sinfo_skycor(cpl_parameterlist * config,
00064 cpl_frame* obj_frm,
00065 cpl_frame* sky_frm,
00066 sinfo_skycor_qc* sqc,
00067 cpl_imagelist** obj_cor,
00068 cpl_table** int_obj);
00069
00070
00071
00072 int
00073 sinfo_histogram(const cpl_table* data,
00074 const int nbins,
00075 const double min,
00076 const double max,
00077 cpl_table** histo);
00078 int
00079 sinfo_table_get_index_of_val(cpl_table* t,
00080 const char* name,
00081 double val,
00082 cpl_type type);
00083
00084 int
00085 sinfo_table_get_index_of_max(cpl_table* t,
00086 const char* name,
00087 cpl_type type);
00088
00089
00090 double
00091 sinfo_table_column_interpolate(const cpl_table* t,
00092 const char* name,
00093 const double x);
00094
00095
00096
00097
00098
00099 cpl_table*
00100 sinfo_where_tab_min_max(cpl_table* t,
00101 const char* col,
00102 cpl_table_select_operator op1,
00103 const double v1,
00104 cpl_table_select_operator op2,
00105 const double v2);
00106
00107 #endif