X-shooter Pipeline Reference Manual 3.8.15
Macros | Enumerations | Functions | Variables
Test rectify function

Macros

#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 []
 

Detailed Description

Macro Definition Documentation

◆ MODULE_ID [1/2]

#define MODULE_ID   "XSH_DETECT_ORDER"

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

◆ MODULE_ID [2/2]

#define MODULE_ID   "XSH_RECTIFY"

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

Enumeration Type Documentation

◆ anonymous enum

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

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

◆ HandleOptions() [1/2]

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

◆ HandleOptions() [2/2]

static void HandleOptions ( int  argc,
char **  argv,
xsh_rectify_param rectify_par,
int *  order_min,
int *  order_max,
double *  slit_min,
int *  nslit 
)
static

◆ Help()

static void Help ( void  )
static

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

References TEST_END.

Referenced by HandleOptions(), and main().

◆ main()

int main ( int  argc,
char **  argv 
)

Variable Documentation

◆ long_options [1/2]

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}
}
@ SLITLET_LOW_FACTOR_OPT
@ METHOD_OPT
@ SLITLET_UP_FACTOR_OPT
@ FIXED_SLICE_OPT
@ CHUNK_HSIZE_OPT
@ SEARCH_WINDOW_HSIZE_OPT
@ MIN_ORDER_SIZE_X_OPT
@ FLUX_THRESH_OPT
@ MIN_SN_OPT

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

Referenced by HandleOptions().

◆ long_options [2/2]

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}
}
@ KERNEL_OPT
@ HELP_OPT
@ MAX_ORDER_OPT
@ RADIUS_OPT
@ BIN_SPACE_OPT
@ DEBUG_OPT
@ NSLIT_OPT
@ MIN_ORDER_OPT
@ SLIT_MIN_OPT
@ BIN_LAMBDA_OPT

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

Referenced by HandleOptions().

◆ Options [1/2]

const char* Options = ""
static

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

Referenced by HandleOptions().

◆ Options [2/2]

const char* Options = ""
static

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

Referenced by HandleOptions().