GRAVI Pipeline Reference Manual 1.7.2
Loading...
Searching...
No Matches
Functions | Variables
gravity_image.c File Reference
#include <cpl.h>
#include <ctype.h>
#include "gravi_utils.h"
#include "gravi_pfits.h"
#include "gravi_dfs.h"
#include "gravi_image.h"

Go to the source code of this file.

Functions

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

 
static int gravity_image_exec (cpl_plugin *plugin)
 Execute the plugin instance given by the interface.
 
static int gravity_image_destroy (cpl_plugin *plugin)
 Destroy what has been created by the 'create' function.
 
static int gravity_image (cpl_frameset *frameset, const cpl_parameterlist *parlist)
 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.
 

Variables

static char gravity_image_short [] = GRAVI_UNOFFERED"Reconstruct an image from visibilities."
 
static char gravity_image_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 80 of file gravity_image.c.

References gravi_get_license(), gravity_image_create(), gravity_image_description, gravity_image_destroy(), gravity_image_exec(), and gravity_image_short.

◆ gravity_image()

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

Interpret the command line options and execute the data processing.

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

Definition at line 260 of file gravity_image.c.

References cpl_image_delete(), cpl_msg_info(), FILESHORT, FREE, gravi_data_delete(), gravi_data_get_table(), gravi_data_load_ext(), gravi_dfs_set_groups(), gravi_image(), GRAVI_MIRA_INPUT_PROCATG, GRAVI_MIRA_OUTPUT_PROCATG, and gravi_param_get_bool().

Referenced by gravity_image_exec().

◆ gravity_image_create()

static int gravity_image_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 121 of file gravity_image.c.

References gravi_parameter_add_image().

Referenced by cpl_plugin_get_info().

◆ gravity_image_destroy()

static int gravity_image_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 228 of file gravity_image.c.

Referenced by cpl_plugin_get_info().

◆ gravity_image_exec()

static int gravity_image_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 166 of file gravity_image.c.

References gravity_image().

Referenced by cpl_plugin_get_info().

Variable Documentation

◆ gravity_image_description

char gravity_image_description[]
static
Initial value:
"This recipe launch a Yorick batch executing mira-script.i to process an\n"
"input OIFITS file to produce an image in fits file.\n"
"The input frame is an OIFITS file :\n"
"GRAVI-GRAVI_MIRA-input-file.oifits " GRAVI_MIRA_INPUT_PROCATG "\n"
"and the recipe generates a fits image\n"
"GRAVI-GRAVI_MIRA-image-file.fits " GRAVI_MIRA_OUTPUT_PROCATG "\n"
#define GRAVI_MIRA_OUTPUT_PROCATG
Definition: gravi_dfs.h:130
#define GRAVI_UNOFFERED
Definition: gravi_dfs.h:36
#define GRAVI_MIRA_INPUT_PROCATG
Definition: gravi_dfs.h:129

Definition at line 57 of file gravity_image.c.

Referenced by cpl_plugin_get_info().

◆ gravity_image_short

char gravity_image_short[] = GRAVI_UNOFFERED"Reconstruct an image from visibilities."
static

Definition at line 56 of file gravity_image.c.

Referenced by cpl_plugin_get_info().