36 #include "detmon_lg.h"
38 #include "irplib_utils.h"
44 #define RECIPE_NAME "detmon_ir_lg"
52 CPL_RECIPE_DEFINE(detmon_ir_lg, DETMON_BINARY_VERSION,
53 detmon_lg_fill_parlist_nir_default(recipe->parameters,
54 "detmon_ir_lg",
"detmon"),
55 "Lander de Bilbao", PACKAGE_BUGREPORT,
"2007",
56 "Linearity/Gain recipe for the IR domain",
57 detmon_lg_get_description(
"detmon_ir_lg",
"DETMON",
59 DETMON_LG_OFF_RAW_NEW,
61 DETMON_LG_OFF_RAW_OLD));
72 static int detmon_ir_lg(cpl_frameset * frameset,
73 const cpl_parameterlist * parlist)
77 const char * tag_on=NULL;
78 const char * tag_off=NULL;
79 cpl_propertylist * lintbl =
80 detmon_fill_prolist(
"DET_LIN_INFO",
"REDUCED",
"TECH", CPL_FALSE);
82 cpl_propertylist * gaintbl =
83 detmon_fill_prolist(
"GAIN_INFO",
"REDUCED",
"TECH", CPL_FALSE);
85 cpl_propertylist * coeffscube =
86 detmon_fill_prolist(
"COEFFS_CUBE",
"REDUCED",
"TECH", CPL_FALSE);
88 cpl_propertylist * bpm =
89 detmon_fill_prolist(
"BP_MAP_NL",
"REDUCED",
"TECH", CPL_FALSE);
91 cpl_propertylist * corr =
92 detmon_fill_prolist(
"AUTOCORR",
"REDUCED",
"TECH", CPL_FALSE);
94 cpl_propertylist * diff_flat =
95 detmon_fill_prolist(
"DIFF_FLAT",
"REDUCED",
"TECH", CPL_FALSE);
97 cpl_error_code error=CPL_ERROR_NONE;
98 skip_if (detmon_lg_set_tag(frameset, &tag_on, &tag_off));
100 error = detmon_lg(frameset,
107 lintbl, gaintbl, coeffscube,
108 bpm, corr, diff_flat,
109 PACKAGE
"/" PACKAGE_VERSION,
112 cpl_propertylist_delete(lintbl);
113 cpl_propertylist_delete(gaintbl);
114 cpl_propertylist_delete(coeffscube);
115 cpl_propertylist_delete(bpm);
116 cpl_propertylist_delete(corr);
117 cpl_propertylist_delete(diff_flat);
120 cpl_ensure_code(!error, error);
122 return cpl_error_get_code();