Test Subtract Background
[Unit Tests]

Defines

#define MODULE_ID   "XSH_COMPUTE_RESPONSE"
#define MODULE_ID   "XSH_SUBTRACT_BACKGROUND"

Enumerations

enum  { ARM_OPT, DBG_OPT }
enum  {
  NB_Y_OPT, RADIUS_X_OPT, RADIUS_Y_OPT, HELP_OPT,
  MAX_FRAC_GRID_OPT, METHOD_OPT, SMOOTH_X_OPT, SMOOTH_Y_OPT,
  MIN_FRAC_OPT
}

Functions

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

Variables

XSH_ARM TheArm = XSH_ARM_VIS
char DbgLevel [8]
static struct option LongOptions []
static const char * Options = "?"
static const char * Options = ""
static struct option long_options []

Define Documentation

#define MODULE_ID   "XSH_SUBTRACT_BACKGROUND"

Definition at line 55 of file test-xsh_subtract_background.c.

#define MODULE_ID   "XSH_COMPUTE_RESPONSE"

Definition at line 57 of file test-xsh_compute_response.c.


Enumeration Type Documentation

anonymous enum
Enumerator:
ARM_OPT 
DBG_OPT 

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

anonymous enum
Enumerator:
NB_Y_OPT 
RADIUS_X_OPT 
RADIUS_Y_OPT 
HELP_OPT 
MAX_FRAC_GRID_OPT 
METHOD_OPT 
SMOOTH_X_OPT 
SMOOTH_Y_OPT 
MIN_FRAC_OPT 

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


Function Documentation

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

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

References TEST_END.

Referenced by HandleOptions().

int main ( int  argc,
char **  argv 
)

Unit test of XSH_COMPUTE_RESPONSE.

Unit test of XSH_PREPARE.

Returns:
0 if tests passed successfully

Test the Data Reduction Library function XSH_COMPUTE_RESPONSE

Returns:
0 if tests passed successfully

Test the Data Reduction Library function XSH_PREPARE

Definition at line 127 of file test-xsh_subtract_background.c.

References check, xsh_background_param::debug, HandleOptions(), Help(), instrument, MODULE_ID, xsh_background_param::radius_x, xsh_background_param::radius_y, xsh_background_param::sampley, sof_to_frameset(), TEST_END, TESTS_INIT, TESTS_XSH_FRAME_CREATE, XSH_DEBUG_LEVEL_MEDIUM, xsh_debug_level_set(), xsh_dfs_set_groups(), xsh_error_dump, xsh_find_order_tab_edges(), xsh_free_frame(), xsh_free_frameset(), xsh_instrument_free(), xsh_msg, and xsh_subtract_background().


Variable Documentation

char DbgLevel[8]

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

Referenced by HandleOptions().

struct option long_options[] [static]
Initial value:
 {
  {"nb-y", required_argument, 0, NB_Y_OPT},
  {"radius-x", required_argument, 0, RADIUS_X_OPT},
  {"radius-y", required_argument, 0, RADIUS_Y_OPT},
  {"help", 0, 0, HELP_OPT},
  {0, 0, 0, 0}
}

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

Referenced by HandleOptions().

struct option LongOptions[] [static]
Initial value:
 {
  {"arm", required_argument, 0, ARM_OPT},
  {"debug-level", required_argument, 0, DBG_OPT},
  {NULL, 0, 0, 0}
}

Definition at line 66 of file test-xsh_compute_response.c.

Referenced by HandleOptions().

const char* Options = "" [static]

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

Referenced by HandleOptions().

const char* Options = "?" [static]

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

Referenced by HandleOptions().

XSH_ARM TheArm = XSH_ARM_VIS

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

Referenced by HandleOptions().


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