GRAVI Pipeline Reference Manual 1.9.2
Loading...
Searching...
No Matches
Functions | Variables
gravity_postprocess.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_vis.h"
#include "gravi_tf.h"
#include "gravi_preproc.h"

Go to the source code of this file.

Functions

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

 
static int gravity_postprocess_exec (cpl_plugin *plugin)
 Execute the plugin instance given by the interface.
 
static int gravity_postprocess_destroy (cpl_plugin *plugin)
 Destroy what has been created by the 'create' function.
 
static int gravity_postprocess (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_postprocess_short [] = "Post-process the products, to fine-tune their content."
 
static char gravity_postprocess_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 100 of file gravity_postprocess.c.

References gravi_get_license(), gravity_postprocess_create(), gravity_postprocess_description, gravity_postprocess_destroy(), gravity_postprocess_exec(), and gravity_postprocess_short.

◆ gravity_postprocess()

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

◆ gravity_postprocess_create()

static int gravity_postprocess_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 141 of file gravity_postprocess.c.

References gravi_parameter_add_average_vis(), gravi_parameter_add_force_uncertainties(), and gravi_parameter_copy_fluxdata().

Referenced by cpl_plugin_get_info().

◆ gravity_postprocess_destroy()

static int gravity_postprocess_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 306 of file gravity_postprocess.c.

Referenced by cpl_plugin_get_info().

◆ gravity_postprocess_exec()

static int gravity_postprocess_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 241 of file gravity_postprocess.c.

References gravity_postprocess().

Referenced by cpl_plugin_get_info().

Variable Documentation

◆ gravity_postprocess_description

char gravity_postprocess_description[]
static
Initial value:
=
"This recipe allows to manipulate the product of the GRAVITY pipeline, mostly the VIS. It permits to merge several files together into a single VIS file with all observations; to average the observations of one or several VIS file to increse the SNR; to remove some data (FT, SC); and to resample the SC observation with spectral binning.\n"
"\n"
"The list of input files can be P2VMRED, VIS, VIS_CALIBRATED (or even RAW for some parameters). However they should all be compatible in term of setup and observed objets !! Note that the recipe performs only litle checks of the input file content and structure. Thus the user shall ensure the input files are conformable (same polarisation and spectral mode for instante)\n"
"* Load the files\n"
"* Execute request from user\n"
"* Write product\n"
"Input files : see above\n"
"POSTPROCESSED : Output file\n"
""
#define GRAVI_RECIPE_OUTPUT
Definition: gravi_dfs.h:39
#define GRAVI_RECIPE_FLOW
Definition: gravi_dfs.h:37
#define GRAVI_RECIPE_INPUT
Definition: gravi_dfs.h:38

Definition at line 71 of file gravity_postprocess.c.

Referenced by cpl_plugin_get_info().

◆ gravity_postprocess_short

char gravity_postprocess_short[] = "Post-process the products, to fine-tune their content."
static

Definition at line 70 of file gravity_postprocess.c.

Referenced by cpl_plugin_get_info().