GRAVI Pipeline Reference Manual 1.9.3
Loading...
Searching...
No Matches
Functions | Variables
gravity_eop.c File Reference
#include <cpl.h>
#include <time.h>
#include <hdrl_download.h>
#include <hdrl_utils.h>
#include "gravi_data.h"
#include "gravi_dfs.h"
#include "gravi_pfits.h"
#include "gravi_utils.h"
#include "gravi_eop.h"

Go to the source code of this file.

Functions

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

 
static int gravity_eop_exec (cpl_plugin *plugin)
 Execute the plugin instance given by the interface.
 
static int gravity_eop_destroy (cpl_plugin *plugin)
 Destroy what has been created by the 'create' function.
 
static int gravity_eop (cpl_frameset *frameset, const cpl_parameterlist *parlist)
 Implement the recipe functionality.
 
cpl_error_code gravity_eop_compute_qc (cpl_table *eop_table, cpl_propertylist *header, double *mjd_lastfinal)
 
int cpl_plugin_get_info (cpl_pluginlist *list)
 Build the list of available plugins, for this module.
 

Variables

static const char gravity_eop_short [] = "Download the last values of the Earth Orientation Parameters and DUT from IERS."
 
static const char gravity_eop_description []
 
static const char gravity_eop_name [] = "gravity_eop"
 

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 87 of file gravity_eop.c.

References gravity_eop_create(), gravity_eop_description, gravity_eop_destroy(), gravity_eop_exec(), gravity_eop_name, and gravity_eop_short.

◆ gravity_eop()

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

Implement the recipe functionality.

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

Definition at line 308 of file gravity_eop.c.

References cpl_msg_info(), cpl_table_save(), FREE, gravi_convert_to_timestamp(), GRAVI_EOP_MAP, gravi_msg_function_exit, gravi_msg_function_start, gravi_param_get_string(), gravity_eop_compute_qc(), and gravity_print_banner().

Referenced by gravity_eop_exec().

◆ gravity_eop_compute_qc()

cpl_error_code gravity_eop_compute_qc ( cpl_table *  eop_table,
cpl_propertylist *  header,
double *  mjd_lastfinal 
)

Definition at line 271 of file gravity_eop.c.

References cpl_msg_info(), and header.

Referenced by gravity_eop().

◆ gravity_eop_create()

static int gravity_eop_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 128 of file gravity_eop.c.

Referenced by cpl_plugin_get_info().

◆ gravity_eop_destroy()

static int gravity_eop_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 248 of file gravity_eop.c.

Referenced by cpl_plugin_get_info().

◆ gravity_eop_exec()

static int gravity_eop_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 191 of file gravity_eop.c.

References gravity_eop().

Referenced by cpl_plugin_get_info().

Variable Documentation

◆ gravity_eop_description

const char gravity_eop_description[]
static
Initial value:
=
"This recipe downloads the latest version of the Earth Orientation Parameter \n"
"and DUT from the IERS site. File is created in the current directory. A web connection is required.\n"
"* Download the IERS data\n"
"* Convert into CPL table\n"
"* Write product\n"
"None : No input\n"
GRAVI_EOP_MAP" : EOP calibration file (gravity_eop_calib.fits)\n"
""
#define GRAVI_RECIPE_OUTPUT
Definition: gravi_dfs.h:39
#define GRAVI_EOP_MAP
Definition: gravi_dfs.h:78
#define GRAVI_RECIPE_FLOW
Definition: gravi_dfs.h:37
#define GRAVI_RECIPE_INPUT
Definition: gravi_dfs.h:38

Definition at line 57 of file gravity_eop.c.

Referenced by cpl_plugin_get_info().

◆ gravity_eop_name

const char gravity_eop_name[] = "gravity_eop"
static

Definition at line 70 of file gravity_eop.c.

Referenced by cpl_plugin_get_info().

◆ gravity_eop_short

const char gravity_eop_short[] = "Download the last values of the Earth Orientation Parameters and DUT from IERS."
static

Definition at line 56 of file gravity_eop.c.

Referenced by cpl_plugin_get_info().