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 #ifdef HAVE_CONFIG_H
00028 #include <config.h>
00029 #endif
00030
00031
00032
00033
00034
00035 #include <cpl.h>
00036
00037 #include "detmon.h"
00038 #include "detmon_lg.h"
00039 #include "irplib_plugin.h"
00040
00041 #define RECIPE_NAME "detmon_opt_lg"
00042
00043 #define OPT FALSE
00044
00045
00046
00047
00048
00049 CPL_RECIPE_DEFINE(detmon_opt_lg, DETMON_BINARY_VERSION,
00050 detmon_lg_fill_parlist_opt_default(recipe->parameters,
00051 "detmon_opt_lg", "detmon"),
00052 "Lander de Bilbao", "lbilbao@eso.org", "2007",
00053 "Linearity/Gain recipe for the optical domain",
00054 detmon_lg_get_description("detmon_opt_lg", "DETMON",
00055 DETMON_LG_ON_RAW_NEW,
00056 DETMON_LG_OFF_RAW_NEW,
00057 DETMON_LG_ON_RAW_OLD,
00058 DETMON_LG_OFF_RAW_OLD));
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069 static int detmon_opt_lg(cpl_frameset * frameset,
00070 const cpl_parameterlist * parlist)
00071 {
00072
00073 const char * tag_on=NULL;
00074 const char * tag_off=NULL;
00075 cpl_propertylist * lintbl =
00076 detmon_fill_prolist("DET_LIN_INFO", "REDUCED", "TECH", CPL_FALSE);
00077
00078 cpl_propertylist * gaintbl =
00079 detmon_fill_prolist("GAIN_INFO", "REDUCED", "TECH", CPL_FALSE);
00080
00081 cpl_propertylist * coeffscube =
00082 detmon_fill_prolist("COEFFS_CUBE", "REDUCED", "TECH", CPL_FALSE);
00083
00084 cpl_propertylist * bpm =
00085 detmon_fill_prolist("BP_MAP_NL", "REDUCED", "TECH", CPL_FALSE);
00086
00087 cpl_propertylist * corr =
00088 detmon_fill_prolist("AUTOCORR", "REDUCED", "TECH", CPL_FALSE);
00089
00090 cpl_propertylist * diff_flat =
00091 detmon_fill_prolist("DIFF_FLAT", "REDUCED", "TECH", CPL_FALSE);
00092
00093 cpl_error_code error = CPL_ERROR_NONE;
00094 skip_if (detmon_lg_set_tag(frameset, &tag_on, &tag_off));
00095
00096 error = detmon_lg(frameset,
00097 parlist,
00098 tag_on,
00099 tag_off,
00100 RECIPE_NAME,
00101 PACKAGE_TARNAME,
00102 REGEXP,
00103 lintbl, gaintbl, coeffscube,
00104 bpm, corr, diff_flat,
00105 PACKAGE "/" PACKAGE_VERSION,
00106 NULL, NULL, OPT);
00107
00108 end_skip;
00109 cpl_propertylist_delete(lintbl);
00110 cpl_propertylist_delete(gaintbl);
00111 cpl_propertylist_delete(coeffscube);
00112 cpl_propertylist_delete(bpm);
00113 cpl_propertylist_delete(corr);
00114 cpl_propertylist_delete(diff_flat);
00115
00116
00117 cpl_ensure_code(!error, error);
00118
00119 return CPL_ERROR_NONE;
00120 }