X-shooter Pipeline Reference Manual 3.8.15
Macros | Functions | Variables

Macros

#define RECIPE_ID   "xsh_mbias"
 
#define RECIPE_AUTHOR   "P.Goldoni, L.Guglielmi, R. Haigron, F. Royer, D. Bramich, A. Modigliani"
 
#define RECIPE_CONTACT   "amodigli@eso.org"
 

Functions

static int xsh_mbias_create (cpl_plugin *plugin)
 Setup the recipe options.
 
static int xsh_mbias_exec (cpl_plugin *plugin)
 Execute the plugin instance given by the interface.
 
static int xsh_mbias_destroy (cpl_plugin *plugin)
 Destroy what has been created by the 'create' function.
 
static void xsh_mbias (cpl_parameterlist *parameters, cpl_frameset *frameset)
 Interpret the command line options and execute the data processing.
 
int cpl_plugin_get_info (cpl_pluginlist *list)
 Build the list of available plugins, for this module.
 
static cpl_error_code xsh_mbias_fpn (cpl_frameset *frames, const cpl_parameterlist *parameters, xsh_instrument *instrument, const char *recipe_id)
 

Variables

static char xsh_mbias_description_short [] = "Create the master bias frame"
 
static char xsh_mbias_description []
 

Detailed Description

This recipe calculates the master bias frame See man-page for details.

Macro Definition Documentation

◆ RECIPE_AUTHOR

#define RECIPE_AUTHOR   "P.Goldoni, L.Guglielmi, R. Haigron, F. Royer, D. Bramich, A. Modigliani"

Definition at line 76 of file xsh_mbias.c.

◆ RECIPE_CONTACT

#define RECIPE_CONTACT   "amodigli@eso.org"

Definition at line 77 of file xsh_mbias.c.

◆ RECIPE_ID

#define RECIPE_ID   "xsh_mbias"

Definition at line 75 of file xsh_mbias.c.

Function Documentation

◆ cpl_plugin_get_info()

int cpl_plugin_get_info ( cpl_pluginlist *  list)

Build the list of available plugins, for this module.

Parameters
listthe plugin list
Returns
0 if everything is ok, -1 otherwise

Create the recipe instance and make it available to the application using the interface. This function is exported.

Definition at line 123 of file xsh_mbias.c.

References RECIPE_AUTHOR, RECIPE_CONTACT, RECIPE_ID, xsh_get_license(), xsh_mbias_create(), xsh_mbias_description, xsh_mbias_description_short, xsh_mbias_destroy(), and xsh_mbias_exec().

◆ xsh_mbias()

static void xsh_mbias ( cpl_parameterlist *  parameters,
cpl_frameset *  frameset 
)
static

◆ xsh_mbias_create()

static int xsh_mbias_create ( cpl_plugin *  plugin)
static

Setup the recipe options.

Parameters
pluginthe plugin
Returns
0 if everything is ok

Create the recipe instance and make it available to the application using the interface.

Definition at line 165 of file xsh_mbias.c.

References assure, check, DECODE_BP_FLAG_DEF, RECIPE_ID, xsh_error_dump, xsh_init(), xsh_parameters_decode_bp(), xsh_parameters_fpn_create(), xsh_parameters_generic(), xsh_parameters_pd_noise_create(), xsh_parameters_ron_create(), xsh_parameters_stack_create(), and xsh_parameters_struct_create().

Referenced by cpl_plugin_get_info().

◆ xsh_mbias_destroy()

static int xsh_mbias_destroy ( cpl_plugin *  plugin)
static

Destroy what has been created by the 'create' function.

Parameters
pluginthe plugin
Returns
0 if everything is ok

Definition at line 251 of file xsh_mbias.c.

References assure, xsh_error_reset, and xsh_free_parameterlist().

Referenced by cpl_plugin_get_info().

◆ xsh_mbias_exec()

static int xsh_mbias_exec ( cpl_plugin *  plugin)
static

Execute the plugin instance given by the interface.

Parameters
pluginthe plugin
Returns
0 if everything is ok

Definition at line 218 of file xsh_mbias.c.

References assure, xsh_error_dump, and xsh_mbias().

Referenced by cpl_plugin_get_info().

◆ xsh_mbias_fpn()

static cpl_error_code xsh_mbias_fpn ( cpl_frameset *  frames,
const cpl_parameterlist *  parameters,
xsh_instrument instrument,
const char *  recipe_id 
)
static

Variable Documentation

◆ xsh_mbias_description

char xsh_mbias_description[]
static
Initial value:
=
"This recipe creates a master bias frame by computing the median of all \
input bias frames.\n\
Input Frames : \n\
- A set of n RAW frames (Format=RAW, n >=3, Tag = BIAS_arm)\n\
- [OPTIONAL] A map of non linear bad pixels (Format=QUP, Tag = BP_MAP_NL_arm)\n\
- [OPTIONAL] A map of reference bad pixels (Format = QUP,RAW, Tag = BP_MAP_RP_arm)\n\
Products : \n\
- A master bias frame (Format=PRE, PRO.CATG = MASTER_BIAS_arm)\n"

Definition at line 99 of file xsh_mbias.c.

Referenced by cpl_plugin_get_info().

◆ xsh_mbias_description_short

char xsh_mbias_description_short[] = "Create the master bias frame"
static

Definition at line 97 of file xsh_mbias.c.

Referenced by cpl_plugin_get_info(), and xsh_mbias().