isaac_img_darkron.c
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 "irplib_detmon.h"
00038 #include "irplib_plugin.h"
00039
00040 #include "isaac_dfs.h"
00041
00042 #define RECIPE_NAME "isaac_img_darkron"
00043
00044
00045
00046
00047
00048 CPL_RECIPE_DEFINE(isaac_img_darkron, ISAAC_BINARY_VERSION,
00049 irplib_detmon_darkron_fill_parlist_default(
00050 recipe->parameters,
00051 RECIPE_NAME,
00052 PACKAGE_TARNAME),
00053 "Lars Lundin", PACKAGE_BUGREPORT, "2008",
00054 "Dark/RON recipe",
00055 irplib_detmon_ronbias_get_description(RECIPE_NAME,
00056 PACKAGE_TARNAME,
00057 ISAAC_IMG_DARK_RAW));
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068 static int isaac_img_darkron(cpl_frameset * frameset,
00069 const cpl_parameterlist * parlist)
00070 {
00071 cpl_propertylist * master =
00072 irplib_detmon_fill_prolist("MASTER_BIAS", "TYPE", "TECH", CPL_TRUE);
00073
00074 cpl_propertylist * synth =
00075 irplib_detmon_fill_prolist("SYNTH", "TYPE", "TECH", CPL_TRUE);
00076
00077 cpl_propertylist * bpmhot =
00078 irplib_detmon_fill_prolist("BP_MAP_HP", "TYPE", "TECH", CPL_TRUE);
00079
00080 cpl_propertylist * bpmcold =
00081 irplib_detmon_fill_prolist("BP_MAP_CP", "TYPE", "TECH", CPL_TRUE);
00082
00083 cpl_propertylist * bpmdev =
00084 irplib_detmon_fill_prolist("BP_MAP_DP", "TYPE", "TECH", CPL_TRUE);
00085
00086 const cpl_error_code error =
00087 irplib_detmon_ronbias(frameset, parlist, ISAAC_IMG_DARK_RAW,
00088 RECIPE_NAME, PACKAGE_TARNAME, REGEXP,
00089 master, NULL, NULL, synth,
00090 bpmhot, bpmcold, bpmdev,
00091 PACKAGE "/" PACKAGE_VERSION, NULL, NIR);
00092
00093 cpl_propertylist_delete(master);
00094 cpl_propertylist_delete(synth);
00095 cpl_propertylist_delete(bpmhot);
00096 cpl_propertylist_delete(bpmcold);
00097 cpl_propertylist_delete(bpmdev);
00098
00099
00100 cpl_ensure_code(!error, error);
00101
00102 return CPL_ERROR_NONE;
00103 }