X-shooter Pipeline Reference Manual 3.8.15
Macros | Enumerations | Functions | Variables
Test model functionality

Macros

#define MODULE_ID   "XSH_MODEL_MAPS_CREATE"
 
#define SYNTAX
 

Enumerations

enum  { BINX_OPT , BINY_OPT }
 

Functions

static void HandleOptions (int argc, char **argv)
 
int main (int argc, char **argv)
 

Variables

static const char * Options = "?"
 Unit test of xsh_model_maps_create.
 
static struct option LongOptions []
 
static char mode [32]
 
int binx =1
 
int biny =1
 

Detailed Description

Macro Definition Documentation

◆ MODULE_ID

#define MODULE_ID   "XSH_MODEL_MAPS_CREATE"

Definition at line 64 of file test-xsh_model_maps_create.c.

◆ SYNTAX

#define SYNTAX
Value:
"Create a wave and a slit map from model\n"\
"use : ./test_xsh_model_maps_create SOF\n"\
"SOF => model config and arclist\n"\
"Options:\n"\
" --binx=<n> : binning in X (default 1)\n"\
" --biny=<n> : binning in Y (default 1)\n"

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

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
BINX_OPT 
BINY_OPT 

Definition at line 89 of file test-xsh_model_maps_create.c.

Function Documentation

◆ HandleOptions()

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

Definition at line 103 of file test-xsh_model_maps_create.c.

References binx, BINX_OPT, biny, BINY_OPT, LongOptions, mode, Options, SYNTAX, and TEST_END.

Referenced by main().

◆ main()

int main ( int  argc,
char **  argv 
)

Variable Documentation

◆ binx

int binx =1

Definition at line 100 of file test-xsh_model_maps_create.c.

Referenced by HandleOptions(), and main().

◆ biny

int biny =1

Definition at line 101 of file test-xsh_model_maps_create.c.

Referenced by HandleOptions(), and main().

◆ LongOptions

struct option LongOptions[]
static
Initial value:
= {
{"binx", required_argument, 0, BINX_OPT},
{"biny", required_argument, 0, BINY_OPT},
{NULL, 0, 0, 0}
}

Definition at line 93 of file test-xsh_model_maps_create.c.

Referenced by HandleOptions().

◆ mode

char mode[32]
static

◆ Options

const char* Options = "?"
static

Unit test of xsh_model_maps_create.

Returns
0 if success

Definition at line 87 of file test-xsh_model_maps_create.c.

Referenced by HandleOptions().