X-shooter Pipeline Reference Manual 3.8.15
Macros | Enumerations | Functions | Variables
Test Object extraction

Macros

#define MODULE_ID   "XSH_EXTRACT"
 
#define MODULE_ID   "XSH_FLAT_MERGE"
 
#define SYNTAX
 

Enumerations

enum  { METHOD_OPT , DEBUG_OPT , HELP_OPT }
 

Functions

static void Help (void)
 
static void HandleOptions (int argc, char **argv, xsh_extract_param *extract_par)
 
static void analyse_extraction (cpl_frame *rec_frame, xsh_instrument *instr)
 
int main (int argc, char **argv)
 Unit test of xsh_extract.
 

Variables

static struct option long_options []
 

Detailed Description

Macro Definition Documentation

◆ MODULE_ID [1/2]

#define MODULE_ID   "XSH_EXTRACT"

Definition at line 65 of file test-xsh_extract.c.

◆ MODULE_ID [2/2]

#define MODULE_ID   "XSH_FLAT_MERGE"

Definition at line 65 of file test-xsh_flat_merge.c.

◆ SYNTAX

#define SYNTAX
Value:
"Test the flat merge function\n"\
"use : ./test_xsh_flat_merge QTH_FRAME QTH_ORDER_TAB D2_FRAME D2_ORDER_TAB"\
" SPECTRAL_TAB\n"\
"QTH_FRAME => the qth flat frame\n"\
"QTH_ORDER_TAB => the qth order table\n"\
"D2_FRAME => the d2 flat frame\n"\
"D2_ORDER_TAB => the d2 order table\n"\

Definition at line 67 of file test-xsh_flat_merge.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
METHOD_OPT 
DEBUG_OPT 
HELP_OPT 

Definition at line 67 of file test-xsh_extract.c.

Function Documentation

◆ analyse_extraction()

static void analyse_extraction ( cpl_frame *  rec_frame,
xsh_instrument instr 
)
static

◆ HandleOptions()

static void HandleOptions ( int  argc,
char **  argv,
xsh_extract_param extract_par 
)
static

◆ Help()

static void Help ( void  )
static

Definition at line 78 of file test-xsh_extract.c.

References TEST_END.

Referenced by HandleOptions(), and main().

◆ main()

int main ( int  argc,
char **  argv 
)

Variable Documentation

◆ long_options

struct option long_options[]
static
Initial value:
= {
{"method", required_argument, 0, METHOD_OPT},
{"debug", required_argument, 0, DEBUG_OPT},
{"help", 0, 0, HELP_OPT},
{0, 0, 0, 0}
}
@ METHOD_OPT
@ HELP_OPT
@ DEBUG_OPT

Definition at line 71 of file test-xsh_extract.c.

Referenced by HandleOptions().