X-shooter Pipeline Reference Manual 3.8.15
Macros | Enumerations | Functions | Variables
Test Remove Crh Multi function(s)

Macros

#define MODULE_ID   "XSH_ATROUS"
 
#define MODULE_ID   "XSH_COMPUTE_ABSORP"
 
#define MODULE_ID   "XSH_GAUSSIAN_FIT"
 
#define MODULE_ID   "XSH_LOCALIZE_OBJ"
 
#define MODULE_ID   "XSH_MARK_TELL"
 
#define MODULE_ID   "XSH_REMOVE_CRH_SINGLE"
 

Enumerations

enum  { NSCALES_OPT , HELP_OPT }
 
enum  { FILTER_HSIZE_OPT , THRESH_OPT , HELP_OPT }
 
enum  { HELP_OPT }
 
enum  {
  NBCHUNK_OPT , TRESHOLD_OPT , DEG_POLY_OPT , METHOD_OPT ,
  SLIT_POS_OPT , SLIT_HHEIGHT_OPT , KAPPA_OPT , NITER_OPT ,
  SKYMASK_OPT , HELP_OPT
}
 
enum  { HELP_OPT }
 
enum  {
  SIGMA_LIM_OPT , F_LIM_OPT , ITER_OPT , FRAC_MAX_OPT ,
  DEBUG_OPT , HELP_OPT
}
 

Functions

static void Help (void)
 
static void HandleOptions (int argc, char **argv, int *nscales)
 
int main (int argc, char **argv)
 Unit test of xsh_localize_obj.
 
static void HandleOptions (int argc, char **argv, int *filter_hsize, double *threshold)
 
static void HandleOptions (int argc, char **argv)
 
static void HandleOptions (int argc, char **argv, xsh_localize_obj_param *loc_par, char **skymask_name)
 
static void analyse_localization (cpl_frame *merge_frame, cpl_frame *loc_frame, xsh_instrument *instr)
 
static void analyse_spectrum (cpl_frame *spectrum_frame)
 
static void HandleOptions (int argc, char **argv, xsh_remove_crh_single_param *single_par)
 

Variables

static struct option long_options []
 
static struct option long_options []
 
static struct option long_options []
 
static struct option long_options []
 
static struct option long_options []
 
static struct option long_options []
 

Detailed Description

Macro Definition Documentation

◆ MODULE_ID [1/6]

#define MODULE_ID   "XSH_ATROUS"

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

◆ MODULE_ID [2/6]

#define MODULE_ID   "XSH_COMPUTE_ABSORP"

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

◆ MODULE_ID [3/6]

#define MODULE_ID   "XSH_GAUSSIAN_FIT"

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

◆ MODULE_ID [4/6]

#define MODULE_ID   "XSH_LOCALIZE_OBJ"

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

◆ MODULE_ID [5/6]

#define MODULE_ID   "XSH_MARK_TELL"

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

◆ MODULE_ID [6/6]

#define MODULE_ID   "XSH_REMOVE_CRH_SINGLE"

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

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
FILTER_HSIZE_OPT 
THRESH_OPT 
HELP_OPT 

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

◆ anonymous enum

anonymous enum
Enumerator
HELP_OPT 

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

◆ anonymous enum

anonymous enum
Enumerator
NBCHUNK_OPT 
TRESHOLD_OPT 
DEG_POLY_OPT 
METHOD_OPT 
SLIT_POS_OPT 
SLIT_HHEIGHT_OPT 
KAPPA_OPT 
NITER_OPT 
SKYMASK_OPT 
HELP_OPT 

Definition at line 68 of file test-xsh_localize_obj.c.

◆ anonymous enum

anonymous enum
Enumerator
HELP_OPT 

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

◆ anonymous enum

anonymous enum
Enumerator
SIGMA_LIM_OPT 
F_LIM_OPT 
ITER_OPT 
FRAC_MAX_OPT 
DEBUG_OPT 
HELP_OPT 

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

◆ anonymous enum

anonymous enum
Enumerator
NSCALES_OPT 
HELP_OPT 

Definition at line 68 of file test-xsh_atrous.c.

Function Documentation

◆ analyse_localization()

static void analyse_localization ( cpl_frame *  merge_frame,
cpl_frame *  loc_frame,
xsh_instrument instr 
)
static

◆ analyse_spectrum()

static void analyse_spectrum ( cpl_frame *  spectrum_frame)
static

◆ HandleOptions() [1/5]

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

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

References Help(), and long_options.

◆ HandleOptions() [2/5]

static void HandleOptions ( int  argc,
char **  argv,
int *  filter_hsize,
double *  threshold 
)
static

Definition at line 87 of file test-xsh_compute_absorp.c.

References FILTER_HSIZE_OPT, Help(), long_options, THRESH_OPT, and threshold.

◆ HandleOptions() [3/5]

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

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

References Help(), long_options, and NSCALES_OPT.

Referenced by main().

◆ HandleOptions() [4/5]

static void HandleOptions ( int  argc,
char **  argv,
xsh_localize_obj_param loc_par,
char **  skymask_name 
)
static

◆ HandleOptions() [5/5]

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

◆ Help()

static void Help ( void  )
static

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

References TEST_END.

Referenced by HandleOptions(), and main().

◆ main()

int main ( int  argc,
char **  argv 
)

Unit test of xsh_localize_obj.

Unit test of xsh_remove_crh_single.

Returns
0 if success
0 if success

Test behaviour of xsh_remove_crh_single function.

Definition at line 114 of file test-xsh_atrous.c.

References check, HandleOptions(), Help(), max, MODULE_ID, size, TEST_END, TESTS_INIT, xsh_atrous(), XSH_DEBUG_LEVEL_MEDIUM, xsh_debug_level_set(), xsh_error_dump, xsh_free_matrix(), xsh_msg, and xsh_unwrap_vector().

Variable Documentation

◆ long_options [1/6]

struct option long_options[]
static
Initial value:
= {
{"nscales", required_argument, 0, NSCALES_OPT},
{"help", 0, 0, HELP_OPT},
{0, 0, 0, 0}
}
@ HELP_OPT
@ NSCALES_OPT

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

Referenced by HandleOptions().

◆ long_options [2/6]

struct option long_options[]
static
Initial value:
= {
{"filter-hsize", required_argument, 0, FILTER_HSIZE_OPT},
{"threshold", required_argument, 0, THRESH_OPT},
{"help", 0, 0, HELP_OPT},
{0, 0, 0, 0}
}
@ FILTER_HSIZE_OPT

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

Referenced by HandleOptions().

◆ long_options [3/6]

struct option long_options[]
static
Initial value:
= {
{"help", 0, 0, HELP_OPT},
{0, 0, 0, 0}
}

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

Referenced by HandleOptions().

◆ long_options [4/6]

struct option long_options[]
static
Initial value:
= {
{"nbchunk", required_argument, 0, NBCHUNK_OPT},
{"threshold", required_argument, 0, TRESHOLD_OPT},
{"deg_poly", required_argument, 0, DEG_POLY_OPT},
{"method", required_argument, 0, METHOD_OPT},
{"slit_position", required_argument, 0, SLIT_POS_OPT},
{"slit_hheight", required_argument, 0, SLIT_HHEIGHT_OPT},
{"kappa", required_argument, 0, KAPPA_OPT},
{"niter", required_argument, 0, NITER_OPT},
{"skymask", required_argument, 0, SKYMASK_OPT},
{"help", 0, 0, HELP_OPT},
{0, 0, 0, 0}
}
@ METHOD_OPT
@ TRESHOLD_OPT
@ NBCHUNK_OPT
@ SLIT_POS_OPT
@ SKYMASK_OPT
@ SLIT_HHEIGHT_OPT
@ DEG_POLY_OPT

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

Referenced by HandleOptions().

◆ long_options [5/6]

struct option long_options[]
static
Initial value:
= {
{"help", 0, 0, HELP_OPT},
{0, 0, 0, 0}
}
@ HELP_OPT

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

Referenced by HandleOptions().

◆ long_options [6/6]

struct option long_options[]
static
Initial value:
= {
{"sigma_lim", required_argument, 0, SIGMA_LIM_OPT},
{"f_lim", required_argument, 0, F_LIM_OPT},
{"iter", required_argument, 0, ITER_OPT},
{"frac_max", required_argument, 0, FRAC_MAX_OPT},
{"debug", required_argument, 0, DEBUG_OPT},
{"help", 0, 0,HELP_OPT},
{0, 0, 0, 0}
}

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

Referenced by HandleOptions().