GRAVI Pipeline Reference Manual 1.9.4
Loading...
Searching...
No Matches
Functions | Variables
gravity_dark.c File Reference
#include <cpl.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include "gravi_utils.h"
#include "gravi_pfits.h"
#include "gravi_dfs.h"
#include "gravi_calib.h"
#include "gravi_data.h"

Go to the source code of this file.

Functions

static int gravity_dark_create (cpl_plugin *plugin)
 Setup the recipe options

 
static int gravity_dark_exec (cpl_plugin *plugin)
 Execute the plugin instance given by the interface.
 
static int gravity_dark_destroy (cpl_plugin *plugin)
 Destroy what has been created by the 'create' function.
 
static int gravity_dark (cpl_frameset *frameset, const cpl_parameterlist *parlist)
 Compute the master dark for each dark frames.
 
int cpl_plugin_get_info (cpl_pluginlist *list)
 Build the list of available plugins, for this module.
 

Variables

static char gravity_dark_short [] = "Calibrate the detector noise and background level."
 
static char gravity_dark_description []
 

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
Note
Only this function is exported

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

Definition at line 89 of file gravity_dark.c.

References gravi_get_license(), gravity_dark_create(), gravity_dark_description, gravity_dark_destroy(), gravity_dark_exec(), and gravity_dark_short.

◆ gravity_dark()

static int gravity_dark ( cpl_frameset *  frameset,
const cpl_parameterlist *  parlist 
)
static

◆ gravity_dark_create()

static int gravity_dark_create ( cpl_plugin *  plugin)
static

Setup the recipe options

Parameters
pluginthe plugin
Returns
0 if everything is ok

Defining the command-line/configuration parameters for the recipe.

Definition at line 130 of file gravity_dark.c.

References gravi_parameter_add_biasmethod(), gravi_parameter_add_biassub_file(), and gravi_parameter_add_static_name().

Referenced by cpl_plugin_get_info().

◆ gravity_dark_destroy()

static int gravity_dark_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 242 of file gravity_dark.c.

Referenced by cpl_plugin_get_info().

◆ gravity_dark_exec()

static int gravity_dark_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 180 of file gravity_dark.c.

References gravity_dark().

Referenced by cpl_plugin_get_info().

Variable Documentation

◆ gravity_dark_description

char gravity_dark_description[]
static
Initial value:
=
"This recipe computes the DARK calibration for the SC, the FT and the ACQ detectors. The SC detector is first debiased using the biaspixels, before computing the dark mean and rms. For detectors, the mean dark level of each pixel and the stdev of each pixel are saved in the output product.\n"
"* Loop on input dark files and concatenate them\n"
"* Compute the median and rms of these concatenated files\n"
"* Save the product (FT, SC, ACQ camera into same product)\n"
GRAVI_DARK_RAW" : raw dark, all shutters closed (DPR.TYPE=DARK)\n"
GRAVI_DARK_MAP" : dark calibration\n"
""
#define GRAVI_RECIPE_OUTPUT
Definition: gravi_dfs.h:39
#define GRAVI_DARK_RAW
Definition: gravi_dfs.h:46
#define GRAVI_RECIPE_FLOW
Definition: gravi_dfs.h:37
#define GRAVI_DARK_MAP
Definition: gravi_dfs.h:77
#define GRAVI_RECIPE_INPUT
Definition: gravi_dfs.h:38

Definition at line 62 of file gravity_dark.c.

Referenced by cpl_plugin_get_info().

◆ gravity_dark_short

char gravity_dark_short[] = "Calibrate the detector noise and background level."
static

Definition at line 61 of file gravity_dark.c.

Referenced by cpl_plugin_get_info().