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 #ifndef IRPLIB_DETMON_LG_H
00029 #define IRPLIB_DETMON_LG_H
00030
00031
00032
00033
00034
00035 #include <cpl.h>
00036
00037
00038
00039
00040
00041
00042
00043 #define irplib_detmon_lg_get_description(RECIPE_NAME, PIPE_NAME, \
00044 DETMON_IR_LG_ON_RAW, \
00045 DETMON_IR_LG_OFF_RAW) \
00046 RECIPE_NAME " -- " PIPE_NAME " linearity/gain recipe for IR.\n" \
00047 "The files listed in the Set Of Frames must be tagged:\n" \
00048 "the raw-on-file.fits "DETMON_IR_LG_ON_RAW" and\n" \
00049 "the raw-off-file.fits "DETMON_IR_LG_OFF_RAW"\n"
00050
00051 #define REGEXP "ARCFILE|MJD-OBS|ESO TPL ID|DATE-OBS|ESO DET DIT|ESO DET NDIT"
00052
00053 cpl_error_code
00054 irplib_detmon_lg(cpl_frameset *,
00055 const cpl_parameterlist *,
00056 const char *,
00057 const char *,
00058 const char *,
00059 const char *,
00060 const char *,
00061 const char *,
00062 const char *,
00063 const char *,
00064 const char *,
00065 const char *,
00066 const char *,
00067 const char *,
00068 int (*)(const cpl_frame *,
00069 const cpl_frame *),
00070 int (* load_fset) (const cpl_frameset *,
00071 cpl_type,
00072 cpl_imagelist *),
00073 const cpl_boolean );
00074
00075 cpl_image * irplib_detmon_image_correlate(const cpl_image *,
00076 const cpl_image *,
00077 const int ,
00078 const int );
00079
00080 int irplib_detmon_fill_params_default(cpl_parameterlist *,
00081 const char *,
00082 const char *);
00083
00084 int
00085 irplib_detmon_fill_params(cpl_parameterlist * parlist,
00086 const char *recipe_name, const char *pipeline_name,
00087 const char *method,
00088 int order,
00089 int kappa,
00090 int niter,
00091 int threshold_min,
00092 int threshold_max,
00093 int llx,
00094 int lly,
00095 int urx,
00096 int ury,
00097 int ref_level,
00098 int threshold,
00099 const char * intermediate,
00100 const char * autocorr,
00101 const char * collapse,
00102 const char * rescale,
00103 int filter,
00104 int m,
00105 int n,
00106 int llx1,
00107 int lly1,
00108 int urx1,
00109 int ury1,
00110 int llx2,
00111 int lly2,
00112 int urx2,
00113 int ury2,
00114 int llx3,
00115 int lly3,
00116 int urx3,
00117 int ury3,
00118 int llx4,
00119 int lly4,
00120 int urx4,
00121 int ury4,
00122 int llx5,
00123 int lly5,
00124 int urx5,
00125 int ury5,
00126 int exts);
00127
00128 cpl_image *
00129 irplib_detmon_autocorrelate(const cpl_image *,
00130 const int, const int);
00131
00132 #endif