Test Data type ORDER functions
[Unit Tests]

Defines

#define XSH_FLOAT_PRECISION   0.000001
#define MODULE_ID   "XSH_DATA_ORDER"
#define SYNTAX
#define MODULE_ID   "XSH_DATA_STAR_FLUX"
#define SYNTAX
#define XSH_FLOAT_PRECISION   0.000001
#define MODULE_ID   "XSH_DATA_WAVE_TAB_2D"
#define XSH_FLOAT_PRECISION   0.000001
#define MODULE_ID   "XSH_DATA_WAVE_TAB_2D"
#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 []

Define Documentation

#define MODULE_ID   "XSH_DATA_WAVE_TAB_2D"

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

#define MODULE_ID   "XSH_DATA_WAVE_TAB_2D"

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

#define MODULE_ID   "XSH_DATA_STAR_FLUX"

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

#define MODULE_ID   "XSH_DATA_ORDER"

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

#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 65 of file test-xsh_data_wave_tab_2d_sample.c.

#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.

#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 62 of file test-xsh_data_order.c.

#define XSH_FLOAT_PRECISION   0.000001

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

#define XSH_FLOAT_PRECISION   0.000001

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

#define XSH_FLOAT_PRECISION   0.000001

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

Referenced by main().


Enumeration Type Documentation

anonymous enum
Enumerator:
POINT_OPT 
SIZE_OPT 
STEP_OPT 
C_COLOR_OPT 
BINX_OPT 
BINY_OPT 

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

anonymous enum
Enumerator:
LAMBDA_STEP_OPT 
SLIT_STEP_OPT 
BINX_OPT 
BINY_OPT 
DEBUG_OPT 
HELP_OPT 

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

anonymous enum
Enumerator:
SLIT_STEP_OPT 

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


Function Documentation

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

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

References LongOptions, Options, slit_step, SLIT_STEP_OPT, and SYNTAX.

static void Help ( void   )  [static]

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

References TEST_END.

int main ( int  argc,
char **  argv 
)

Variable Documentation

int binx = 1

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

int binx = 1
int biny = 1

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

int biny = 1
char CentralColor[32] [static]

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

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

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

Referenced by HandleOptions().

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 74 of file test-xsh_data_wave_tab_2d.c.

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}
}

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

const char* Options = "" [static]

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

Referenced by HandleOptions().

const char* Options = "?" [static]

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

char PointSize[8] [static]

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

int PointStep = 8 [static]

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

Referenced by xsh_order_list_save().

char PointType[16] [static]

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

float slit_step = 1.4 [static]

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

Referenced by HandleOptions(), and main().

float slit_step = 1.458 [static]

Generated on 13 Mar 2013 for X-shooter Pipeline Reference Manual by  doxygen 1.6.1