GRAVI Pipeline Reference Manual 1.9.3
Loading...
Searching...
No Matches
Functions | Variables
gravity_piezo.c File Reference
#include <cpl.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include "gravi_data.h"
#include "gravi_pfits.h"
#include "gravi_dfs.h"
#include "gravi_utils.h"
#include "gravi_calib.h"
#include "gravi_p2vmred.h"
#include "gravi_eop.h"
#include "gravi_metrology.h"
#include "gravi_signal.h"
#include "gravi_vis.h"
#include "gravi_tf.h"
#include "gravi_preproc.h"

Go to the source code of this file.

Functions

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

 
static int gravity_piezo_exec (cpl_plugin *plugin)
 Execute the plugin instance given by the interface.
 
static int gravity_piezo_destroy (cpl_plugin *plugin)
 Destroy what has been created by the 'create' function.
 
static int gravity_piezo (cpl_frameset *frameset, const cpl_parameterlist *parlist)
 Compute the visibilities, and closure phase and create the io fits file.
 
int cpl_plugin_get_info (cpl_pluginlist *list)
 Build the list of available plugins, for this module.
 

Variables

static char gravity_piezo_short [] = "Calibrate the response of the piezo actuators."
 
static char gravity_piezo_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 102 of file gravity_piezo.c.

References gravi_get_license(), gravity_piezo_create(), gravity_piezo_description, gravity_piezo_destroy(), gravity_piezo_exec(), and gravity_piezo_short.

◆ gravity_piezo()

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

Compute the visibilities, and closure phase and create the io fits file.

Parameters
framesetthe frames list
parlistthe parameters list
Returns
0 if everything is ok

Definition at line 290 of file gravity_piezo.c.

References cpl_msg_info(), CPLCHECK_CLEAN, FREE, gravi_compute_piezotf(), gravi_data_delete(), gravi_data_load_rawframe(), gravi_data_save_new(), gravi_dfs_set_groups(), gravi_frameset_extract_piezotf_data(), gravi_msg_function_exit, gravi_msg_function_start, GRAVI_PIEZOTF_MAP, and gravity_print_banner().

Referenced by gravity_piezo_exec().

◆ gravity_piezo_create()

static int gravity_piezo_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 143 of file gravity_piezo.c.

References gravi_parameter_add_static_name().

Referenced by cpl_plugin_get_info().

◆ gravity_piezo_destroy()

static int gravity_piezo_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 257 of file gravity_piezo.c.

Referenced by cpl_plugin_get_info().

◆ gravity_piezo_exec()

static int gravity_piezo_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 192 of file gravity_piezo.c.

References gravity_piezo().

Referenced by cpl_plugin_get_info().

Variable Documentation

◆ gravity_piezo_description

char gravity_piezo_description[]
static
Initial value:
= "This recipe compute the response (open loop transfer function) of the piezo actuators used to fringe-track in GRAVITY.\n"
"* Compute the piezo TF QC parameter"
"* Write product\n"
GRAVI_PIEZOTF_RAW" : dedicated observations (DPR.CATG=PIEZOTF)\n"
GRAVI_PIEZOTF_MAP" : Response of the piezo\n"
""
#define GRAVI_RECIPE_OUTPUT
Definition: gravi_dfs.h:39
#define GRAVI_PIEZOTF_MAP
Definition: gravi_dfs.h:86
#define GRAVI_RECIPE_FLOW
Definition: gravi_dfs.h:37
#define GRAVI_PIEZOTF_RAW
Definition: gravi_dfs.h:43
#define GRAVI_RECIPE_INPUT
Definition: gravi_dfs.h:38

Definition at line 77 of file gravity_piezo.c.

Referenced by cpl_plugin_get_info().

◆ gravity_piezo_short

char gravity_piezo_short[] = "Calibrate the response of the piezo actuators."
static

Definition at line 76 of file gravity_piezo.c.

Referenced by cpl_plugin_get_info().