Test rectify function
[Unit Tests]

Defines

#define MODULE_ID   "XSH_DETECT_ORDER"
#define MODULE_ID   "XSH_RECTIFY"

Enumerations

enum  {
  SEARCH_WINDOW_HSIZE_OPT, FLUX_THRESH_OPT, MIN_SN_OPT, MIN_ORDER_SIZE_X_OPT,
  CHUNK_HSIZE_OPT, SLITLET_LOW_FACTOR_OPT, SLITLET_UP_FACTOR_OPT, FIXED_SLICE_OPT,
  METHOD_OPT, HELP_OPT
}
enum  {
  KERNEL_OPT, RADIUS_OPT, BIN_LAMBDA_OPT, BIN_SPACE_OPT,
  HELP_OPT, MIN_ORDER_OPT, MAX_ORDER_OPT, SLIT_MIN_OPT,
  NSLIT_OPT, DEBUG_OPT
}

Functions

static void Help (void)
static void HandleOptions (int argc, char **argv, xsh_detect_order_param *detectorder_par)
int main (int argc, char **argv)
 Unit test of xsh_rectify. Needs the PRE frame, order table, wave solution, instrument, rectify parameters, the map.
static void HandleOptions (int argc, char **argv, xsh_rectify_param *rectify_par, int *order_min, int *order_max, double *slit_min, int *nslit)

Variables

static const char * Options = ""
static struct option long_options []
static const char * Options = ""
static struct option long_options []

Define Documentation

#define MODULE_ID   "XSH_RECTIFY"

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

#define MODULE_ID   "XSH_DETECT_ORDER"

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


Enumeration Type Documentation

anonymous enum
Enumerator:
SEARCH_WINDOW_HSIZE_OPT 
FLUX_THRESH_OPT 
MIN_SN_OPT 
MIN_ORDER_SIZE_X_OPT 
CHUNK_HSIZE_OPT 
SLITLET_LOW_FACTOR_OPT 
SLITLET_UP_FACTOR_OPT 
FIXED_SLICE_OPT 
METHOD_OPT 
HELP_OPT 

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

anonymous enum
Enumerator:
KERNEL_OPT 
RADIUS_OPT 
BIN_LAMBDA_OPT 
BIN_SPACE_OPT 
HELP_OPT 
MIN_ORDER_OPT 
MAX_ORDER_OPT 
SLIT_MIN_OPT 
NSLIT_OPT 
DEBUG_OPT 

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


Function Documentation

static void HandleOptions ( int  argc,
char **  argv,
xsh_rectify_param rectify_par,
int *  order_min,
int *  order_max,
double *  slit_min,
int *  nslit 
) [static]
static void HandleOptions ( int  argc,
char **  argv,
xsh_detect_order_param detectorder_par 
) [static]
static void Help ( void   )  [static]

Definition at line 94 of file test-xsh_rectify.c.

References TEST_END.

Referenced by HandleOptions().

int main ( int  argc,
char **  argv 
)

Variable Documentation

struct option long_options[] [static]
Initial value:
 {
  {"kernel", required_argument, 0, KERNEL_OPT},
  {"radius", required_argument, 0, RADIUS_OPT},
  {"bin-lambda", required_argument, 0, BIN_LAMBDA_OPT},
  {"bin-space", required_argument, 0, BIN_SPACE_OPT},
  {"order-min", required_argument, 0, MIN_ORDER_OPT},
  {"order-max", required_argument, 0, MAX_ORDER_OPT},
  {"slit-min",required_argument, 0, SLIT_MIN_OPT},
  {"slit-n",required_argument, 0, NSLIT_OPT},
  {"debug", required_argument, 0, DEBUG_OPT},
  {"help", 0, 0, HELP_OPT},
  {0, 0, 0, 0}
}

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

Referenced by HandleOptions().

struct option long_options[] [static]
Initial value:
 {
  {"search-window-hsize", required_argument, 0, SEARCH_WINDOW_HSIZE_OPT},
  {"flux-thresh", required_argument, 0, FLUX_THRESH_OPT},
  {"min-sn", required_argument, 0, MIN_SN_OPT},
  {"min-order-size-x", required_argument, 0, MIN_ORDER_SIZE_X_OPT},
  {"chunk-hsize", required_argument, 0, CHUNK_HSIZE_OPT},
  {"slitlet-low-factor", required_argument, 0, SLITLET_LOW_FACTOR_OPT},
  {"slitlet-up-factor",required_argument, 0, SLITLET_UP_FACTOR_OPT},
  {"fixed-slice",required_argument, 0, FIXED_SLICE_OPT},
  {"method",required_argument, 0, METHOD_OPT},
  {"help", 0, 0, HELP_OPT},
  {0, 0, 0, 0}
}

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

Referenced by HandleOptions().

const char* Options = "" [static]

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

Referenced by HandleOptions().

const char* Options = "" [static]

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

Referenced by HandleOptions().


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