X-shooter Pipeline Reference Manual 3.8.15
Macros | Enumerations | Functions | Variables
Test Data type ORDER functions

Macros

#define MODULE_ID   "XSH_DATA_ORDER"
 
#define SYNTAX
 
#define MODULE_ID   "XSH_DATA_STAR_FLUX"
 
#define SYNTAX
 
#define MODULE_ID   "XSH_DATA_WAVE_TAB_2D"
 
#define MODULE_ID   "XSH_DATA_WAVE_TAB_2D_SAMPLE"
 
#define SYNTAX
 

Enumerations

enum  {
  POINT_OPT , SIZE_OPT , STEP_OPT , C_COLOR_OPT ,
  BINX_OPT , BINY_OPT
}
 
enum  {
  LAMBDA_STEP_OPT , SLIT_STEP_OPT , BINX_OPT , BINY_OPT ,
  DEBUG_OPT , HELP_OPT
}
 
enum  { SLIT_STEP_OPT }
 

Functions

static void HandleOptions (int argc, char **argv)
 
int main (int argc, char **argv)
 Unit test of xsh_data_order.
 
static void Help (void)
 

Variables

static const char * Options = "?"
 
static struct option LongOptions []
 
static char PointType [16]
 
static char PointSize [8]
 
static int PointStep = 8
 
static char CentralColor [32]
 
int binx =1
 
int biny =1
 
static float lambda_step = 0.5
 
static float slit_step = 1.458
 
int binx =1
 
int biny =1
 
static struct option LongOptions []
 
static const char * Options = ""
 
static float slit_step = 1.4
 
static struct option LongOptions []
 

Detailed Description

Macro Definition Documentation

◆ MODULE_ID [1/4]

#define MODULE_ID   "XSH_DATA_ORDER"

Definition at line 59 of file test-xsh_data_order.c.

◆ MODULE_ID [2/4]

#define MODULE_ID   "XSH_DATA_STAR_FLUX"

Definition at line 58 of file test-xsh_data_star_flux.c.

◆ MODULE_ID [3/4]

#define MODULE_ID   "XSH_DATA_WAVE_TAB_2D"

Definition at line 62 of file test-xsh_data_wave_tab_2d.c.

◆ MODULE_ID [4/4]

#define MODULE_ID   "XSH_DATA_WAVE_TAB_2D_SAMPLE"

Definition at line 62 of file test-xsh_data_wave_tab_2d_sample.c.

◆ SYNTAX [1/3]

#define SYNTAX
Value:
"Test the order table\n"\
"usage : ./the_xsh_data_order [options] ORDER_TAB \n"\
"ORDER_TAB => the order table\n"\
"Options:\n"\
" --binx=<n> : binning in X (default 1)\n"\
" --biny=<n> : binning in Y (default 1)\n"\
" --point=<str> : Point Type (cross, x, diamond, ...)\n"\
" Default is 'cross'\n"\
" --size=<n> : Point size (pixels). Default is default DS9 value\n"\
" --step=<nn> : Step in pixels. Default '8'\n"

Definition at line 61 of file test-xsh_data_order.c.

◆ SYNTAX [2/3]

#define SYNTAX
Value:
"Test the order table\n"\
"usage : test_xsh_data_star_flux std_star_flux_table \n"\
"std_star_flux_table => the Standard Star Flux tabe FITS file\n"

Definition at line 60 of file test-xsh_data_star_flux.c.

◆ SYNTAX [3/3]

#define SYNTAX
Value:
"Test the wave tab 2d\n"\
"usage : ./the_xsh_data_wave_tab_2d [OPTIONS] WAVE_TAB_2D ARC_LIST SPECTRAL_FORMAT\n"\
"WAVE_TAB_2D => The wave tab 2d\n"\
"ARC_LIST => An arclist\n"\
"SPECTRAL_FORMAT => The spectral format\n"\
"OPTIONS => :\n"\
" --slit-step=<nn> : Step in slit. Default 0.2 \n"

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

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
POINT_OPT 
SIZE_OPT 
STEP_OPT 
C_COLOR_OPT 
BINX_OPT 
BINY_OPT 

Definition at line 75 of file test-xsh_data_order.c.

◆ anonymous enum

anonymous enum
Enumerator
LAMBDA_STEP_OPT 
SLIT_STEP_OPT 
BINX_OPT 
BINY_OPT 
DEBUG_OPT 
HELP_OPT 

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

◆ anonymous enum

anonymous enum
Enumerator
SLIT_STEP_OPT 

Definition at line 75 of file test-xsh_data_wave_tab_2d_sample.c.

Function Documentation

◆ HandleOptions()

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

◆ Help()

static void Help ( void  )
static

Definition at line 84 of file test-xsh_data_wave_tab_2d.c.

References TEST_END.

Referenced by HandleOptions().

◆ main()

int main ( int  argc,
char **  argv 
)

Variable Documentation

◆ binx [1/2]

int binx =1

◆ binx [2/2]

int binx =1

Definition at line 70 of file test-xsh_data_wave_tab_2d.c.

Referenced by HandleOptions().

◆ biny [1/2]

int biny =1

◆ biny [2/2]

int biny =1

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

Referenced by HandleOptions().

◆ CentralColor

char CentralColor[32]
static

Definition at line 92 of file test-xsh_data_order.c.

Referenced by HandleOptions(), and main().

◆ lambda_step

float lambda_step = 0.5
static

◆ LongOptions [1/3]

struct option LongOptions[]
static
Initial value:
= {
{"point", required_argument, 0, POINT_OPT},
{"size", required_argument, 0, SIZE_OPT},
{"step", required_argument, 0, STEP_OPT},
{"c-color", required_argument, 0, C_COLOR_OPT},
{"binx", required_argument, 0, BINX_OPT},
{"biny", required_argument, 0, BINY_OPT},
{NULL, 0, 0, 0}
}
@ C_COLOR_OPT
@ BINX_OPT
@ STEP_OPT
@ BINY_OPT
@ SIZE_OPT
@ POINT_OPT

Definition at line 79 of file test-xsh_data_order.c.

Referenced by HandleOptions().

◆ LongOptions [2/3]

struct option LongOptions[]
static
Initial value:
= {
{"lambda-step", required_argument, 0, LAMBDA_STEP_OPT},
{"slit-step", required_argument, 0, SLIT_STEP_OPT},
{"binx", required_argument, 0, BINX_OPT},
{"biny", required_argument, 0, BINY_OPT},
{"debug", required_argument, 0, DEBUG_OPT},
{"help", 0, 0, HELP_OPT},
{NULL, 0, 0, 0}
}

Definition at line 73 of file test-xsh_data_wave_tab_2d.c.

Referenced by HandleOptions().

◆ LongOptions [3/3]

struct option LongOptions[]
static
Initial value:
= {
{"slit-step", required_argument, 0, SLIT_STEP_OPT},
{NULL, 0, 0, 0}
}

Definition at line 82 of file test-xsh_data_wave_tab_2d_sample.c.

Referenced by HandleOptions().

◆ Options [1/2]

const char* Options = "?"
static

Definition at line 73 of file test-xsh_data_order.c.

Referenced by HandleOptions().

◆ Options [2/2]

const char* Options = ""
static

Definition at line 73 of file test-xsh_data_wave_tab_2d_sample.c.

Referenced by HandleOptions().

◆ PointSize

char PointSize[8]
static

Definition at line 90 of file test-xsh_data_order.c.

Referenced by HandleOptions(), and main().

◆ PointStep

int PointStep = 8
static

Definition at line 91 of file test-xsh_data_order.c.

Referenced by HandleOptions(), main(), and xsh_order_list_save().

◆ PointType

char PointType[16]
static

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

Referenced by HandleOptions(), and main().

◆ slit_step [1/2]

float slit_step = 1.458
static

◆ slit_step [2/2]

float slit_step = 1.4
static

Definition at line 79 of file test-xsh_data_wave_tab_2d_sample.c.

Referenced by HandleOptions().