Defines | |
#define | RECIPE_ID "xsh_linear" |
#define | RECIPE_AUTHOR "L.Guglielmi,R.Haigron,P.Goldoni,F.Royer" |
#define | RECIPE_CONTACT "laurent.guglielmi@apc.univ-paris7.fr" |
Functions | |
static int | create (cpl_plugin *plugin) |
Setup the recipe options. | |
static int | exec (cpl_plugin *plugin) |
Execute the plugin instance given by the interface. | |
static int | destroy (cpl_plugin *plugin) |
Destroy what has been created by the 'create' function. | |
static void | xsh_linear (cpl_parameterlist *parameters, cpl_frameset *frameset) |
Interpret the command line options and execute the data processing. | |
static void | xsh_gain (cpl_parameterlist *parameters, cpl_frameset *frameset, xsh_instrument *instr) |
computes detector's gain | |
static cpl_vector * | xsh_get_exptimes (cpl_frameset *set) |
get input frames exposure times | |
int | cpl_plugin_get_info (cpl_pluginlist *list) |
Build the list of available plugins, for this module. | |
Variables | |
static char | xsh_linear_description_short [] |
static char | xsh_linear_description [] |
This recipe creates a bad pixel mask from a series of linearity exposures See man-page for details.
#define RECIPE_AUTHOR "L.Guglielmi,R.Haigron,P.Goldoni,F.Royer" |
Definition at line 80 of file xsh_linear.c.
#define RECIPE_CONTACT "laurent.guglielmi@apc.univ-paris7.fr" |
Definition at line 81 of file xsh_linear.c.
#define RECIPE_ID "xsh_linear" |
Definition at line 79 of file xsh_linear.c.
int cpl_plugin_get_info | ( | cpl_pluginlist * | list | ) |
Build the list of available plugins, for this module.
list | the plugin list |
Create the recipe instance and make it available to the application using the interface. This function is exported.
Definition at line 138 of file xsh_linear.c.
References create(), destroy(), exec(), RECIPE_AUTHOR, RECIPE_CONTACT, RECIPE_ID, xsh_get_license(), xsh_linear_description, and xsh_linear_description_short.
static int create | ( | cpl_plugin * | plugin | ) | [static] |
Setup the recipe options.
plugin | the plugin |
Create the recipe instance and make it available to the application using the interface.
Definition at line 180 of file xsh_linear.c.
References assure, check, RECIPE_ID, xsh_error_dump, xsh_init(), and xsh_parameters_generic().
Referenced by cpl_plugin_get_info().
static int destroy | ( | cpl_plugin * | plugin | ) | [static] |
Destroy what has been created by the 'create' function.
plugin | the plugin |
Definition at line 406 of file xsh_linear.c.
References assure, and xsh_free_parameterlist().
Referenced by cpl_plugin_get_info().
static int exec | ( | cpl_plugin * | plugin | ) | [static] |
Execute the plugin instance given by the interface.
plugin | the plugin |
Definition at line 373 of file xsh_linear.c.
References assure, xsh_error_dump, and xsh_linear().
Referenced by cpl_plugin_get_info().
static void xsh_gain | ( | cpl_parameterlist * | parameters, | |
cpl_frameset * | frameset, | |||
xsh_instrument * | instr | |||
) | [static] |
computes detector's gain
parameters | the parameters list | |
frameset | the frames list | |
instr | instrument (arm) setting In case of failure the cpl_error_code is set. |
Definition at line 695 of file xsh_linear.c.
References check, IRPLIB_GAIN_COLLAPSE, IRPLIB_GAIN_NIR, IRPLIB_GAIN_NO_COLLAPSE, IRPLIB_GAIN_OPT, IRPLIB_GAIN_PTC, IRPLIB_GAIN_WITH_AUTOCORR, IRPLIB_GAIN_WITH_RESCALE, kappa, llx, lly, mode, RECIPE_ID, tolerance, urx, ury, xsh_add_product_table(), XSH_ARM_NIR, XSH_ARM_UVB, XSH_ARM_VIS, xsh_detmon_gain(), xsh_frameset_extract(), xsh_free_frame(), xsh_free_frameset(), xsh_free_image(), xsh_free_imagelist(), xsh_free_propertylist(), xsh_free_table(), XSH_GAIN, xsh_get_exptimes(), XSH_GET_TAG_FROM_ARM, xsh_instrument_get_arm(), xsh_msg, xsh_msg_error, xsh_msg_warning, and xsh_pfits_get_mjdobs().
Referenced by xsh_linear().
static cpl_vector * xsh_get_exptimes | ( | cpl_frameset * | set | ) | [static] |
get input frames exposure times
set | input frameset In case of failure the cpl_error_code is set. |
Definition at line 990 of file xsh_linear.c.
References check, n, xsh_free_propertylist(), and xsh_pfits_get_exptime().
Referenced by xsh_gain().
static void xsh_linear | ( | cpl_parameterlist * | parameters, | |
cpl_frameset * | frameset | |||
) | [static] |
Interpret the command line options and execute the data processing.
parameters | the parameters list | |
frameset | the frames list |
In case of failure the cpl_error_code is set.
Definition at line 441 of file xsh_linear.c.
References xsh_instrument::arm, assure, check, check_msg, crh_clipping, xsh_clipping_param::diff, xsh_clipping_param::frac, instrument, xsh_clipping_param::niter, RECIPE_ID, xsh_clipping_param::sigma, xsh_add_product_bpmap(), xsh_add_temporary_file(), XSH_ARM_NIR, xsh_begin(), xsh_compute_linearity(), xsh_end(), xsh_find_bpmap(), xsh_free_frame(), xsh_free_frameset(), xsh_free_image(), xsh_free_imagelist(), xsh_gain(), xsh_instrument_arm_tostring(), xsh_instrument_free(), xsh_linear_description_short, xsh_linear_group_by_exptime(), XSH_LINEARITY, xsh_msg, xsh_prepare(), xsh_remove_crh_multiple(), xsh_stringcat_any(), and xsh_subtract_on_off().
Referenced by exec().
char xsh_linear_description[] [static] |
"This recipe creates a bad pixel mask from several (at least 3x3)\n\ LINEARITY frames in increasing exposure times\n\ Input Frames:\n\ Raw Frames (Tag = LINEARITY_arm)\n\ Prepare PRE structures\n\ Group frames by exposure time\n\ Remove cosmic rays in each group and create\n\ the median frame\n\ Finally compute the linearity bad pixel mask. Linearity is obtained by\n\ a polynomial fit (degree 3)\n\ Product:\n\ Bad Pixel Map, PRO.CATG = BADPIXEL_MAP_arm\n"
Definition at line 110 of file xsh_linear.c.
Referenced by cpl_plugin_get_info().
char xsh_linear_description_short[] [static] |
"Create the linearity bad pixel mask"
Definition at line 107 of file xsh_linear.c.
Referenced by cpl_plugin_get_info(), and xsh_linear().