38 #include "detmon_lg.h"
39 #include "irplib_plugin.h"
41 #define RECIPE_NAME "detmon_opt_lg"
49 CPL_RECIPE_DEFINE(detmon_opt_lg, DETMON_BINARY_VERSION,
50 detmon_lg_fill_parlist_opt_default(recipe->parameters,
51 "detmon_opt_lg",
"detmon"),
52 "Lander de Bilbao",
"lbilbao@eso.org",
"2007",
53 "Linearity/Gain recipe for the optical domain",
54 detmon_lg_get_description(
"detmon_opt_lg",
"DETMON",
56 DETMON_LG_OFF_RAW_NEW,
58 DETMON_LG_OFF_RAW_OLD));
69 static int detmon_opt_lg(cpl_frameset * frameset,
70 const cpl_parameterlist * parlist)
73 const char * tag_on=NULL;
74 const char * tag_off=NULL;
75 cpl_propertylist * lintbl =
76 detmon_fill_prolist(
"DET_LIN_INFO",
"REDUCED",
"TECH", CPL_FALSE);
78 cpl_propertylist * gaintbl =
79 detmon_fill_prolist(
"GAIN_INFO",
"REDUCED",
"TECH", CPL_FALSE);
81 cpl_propertylist * coeffscube =
82 detmon_fill_prolist(
"COEFFS_CUBE",
"REDUCED",
"TECH", CPL_FALSE);
84 cpl_propertylist * bpm =
85 detmon_fill_prolist(
"BP_MAP_NL",
"REDUCED",
"TECH", CPL_FALSE);
87 cpl_propertylist * corr =
88 detmon_fill_prolist(
"AUTOCORR",
"REDUCED",
"TECH", CPL_FALSE);
90 cpl_propertylist * diff_flat =
91 detmon_fill_prolist(
"DIFF_FLAT",
"REDUCED",
"TECH", CPL_FALSE);
93 cpl_error_code error = CPL_ERROR_NONE;
94 skip_if (detmon_lg_set_tag(frameset, &tag_on, &tag_off));
96 error = detmon_lg(frameset,
103 lintbl, gaintbl, coeffscube,
104 bpm, corr, diff_flat,
105 PACKAGE
"/" PACKAGE_VERSION,
109 cpl_propertylist_delete(lintbl);
110 cpl_propertylist_delete(gaintbl);
111 cpl_propertylist_delete(coeffscube);
112 cpl_propertylist_delete(bpm);
113 cpl_propertylist_delete(corr);
114 cpl_propertylist_delete(diff_flat);
117 cpl_ensure_code(!error, error);
119 return CPL_ERROR_NONE;