GRAVI Pipeline Reference Manual 1.9.3
Loading...
Searching...
No Matches
Functions | Variables
gravity_vis_from_p2vmred.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_vis_from_p2vmred_create (cpl_plugin *plugin)
 Setup the recipe options

 
static int gravity_vis_from_p2vmred_exec (cpl_plugin *plugin)
 Execute the plugin instance given by the interface.
 
static int gravity_vis_from_p2vmred_destroy (cpl_plugin *plugin)
 Destroy what has been created by the 'create' function.
 
static int gravity_vis_from_p2vmred (cpl_frameset *frameset, 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_vis_from_p2vmred_short [] = "Compute the visibilities from P2VMRED intermediate product."
 
static char gravity_vis_from_p2vmred_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 94 of file gravity_vis_from_p2vmred.c.

References gravi_get_license(), gravity_vis_from_p2vmred_create(), gravity_vis_from_p2vmred_description, gravity_vis_from_p2vmred_destroy(), gravity_vis_from_p2vmred_exec(), and gravity_vis_from_p2vmred_short.

◆ gravity_vis_from_p2vmred()

static int gravity_vis_from_p2vmred ( cpl_frameset *  frameset,
cpl_parameterlist *  parlist 
)
static

◆ gravity_vis_from_p2vmred_create()

static int gravity_vis_from_p2vmred_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 135 of file gravity_vis_from_p2vmred.c.

References gravi_parameter_add_average_vis(), gravi_parameter_add_compute_snr(), gravi_parameter_add_compute_vis(), gravi_parameter_add_pca(), gravi_parameter_add_rejection(), and gravi_parameter_add_static_name().

Referenced by cpl_plugin_get_info().

◆ gravity_vis_from_p2vmred_destroy()

static int gravity_vis_from_p2vmred_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 280 of file gravity_vis_from_p2vmred.c.

Referenced by cpl_plugin_get_info().

◆ gravity_vis_from_p2vmred_exec()

static int gravity_vis_from_p2vmred_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 215 of file gravity_vis_from_p2vmred.c.

References gravity_vis_from_p2vmred().

Referenced by cpl_plugin_get_info().

Variable Documentation

◆ gravity_vis_from_p2vmred_description

char gravity_vis_from_p2vmred_description[]
static
Initial value:
=
"This recipe averages the real-time data of P2VMRED files into a VIS product. It allows to run the reduction with different parameters (for instance for SNR thresholding) without having to re-reduce the files from scratch. Typically the reduction is 4x faster when started from this intermediate product.\n"
"\n"
"The tag in the DO category can be SINGLE/DUAL and CAL/SCI. They should reflect the mode (SINGLE or DUAL) and the DPR.CATG of the observation (SCIENCE or CALIB). The tag in the PRO.CATG category will be SINGLE/DUAL and CAL/SCI depending on the input tag.\n"
"* Load the input file (loop on input files)\n"
"* Update the selection flag\n"
"* Average the real-time visibilities\n"
"* Write the product\n"
GRAVI_P2VMRED_SINGLE_SCIENCE" : Input intermediate product\n"
GRAVI_VIS_SINGLE_SCIENCE" : OIFITS with uncalibrated visibilities\n"
""
#define GRAVI_RECIPE_OUTPUT
Definition: gravi_dfs.h:39
#define GRAVI_RECIPE_FLOW
Definition: gravi_dfs.h:37
#define GRAVI_VIS_SINGLE_SCIENCE
Definition: gravi_dfs.h:96
#define GRAVI_P2VMRED_SINGLE_SCIENCE
Definition: gravi_dfs.h:64
#define GRAVI_RECIPE_INPUT
Definition: gravi_dfs.h:38

Definition at line 64 of file gravity_vis_from_p2vmred.c.

Referenced by cpl_plugin_get_info().

◆ gravity_vis_from_p2vmred_short

char gravity_vis_from_p2vmred_short[] = "Compute the visibilities from P2VMRED intermediate product."
static

Definition at line 63 of file gravity_vis_from_p2vmred.c.

Referenced by cpl_plugin_get_info().