X-shooter Pipeline Reference Manual 3.8.15
Macros | Enumerations | Functions | Variables
Test Create SLITMAP and WAVEMAP

Macros

#define MODULE_ID   "XSH_CORREL_GAUSSIANS"
 
#define MODULE_ID   "XSH_CPL_VECTOR_CORREL_GAUSSIANS"
 
#define MODULE_ID   "XSH_CPL_VECTOR_CORREL_HDELTA"
 
#define MODULE_ID   "XSH_CREATE_MAP"
 
#define MODULE_ID   "XSH_GSL_CORRELATE_GAUSSIANS"
 
#define MODULE_ID   "XSH_XCORREL_GAUSSIANS"
 

Enumerations

enum  { DEBUG_OPT , HELP_OPT }
 
enum  { DEBUG_OPT , HELP_OPT }
 
enum  { DEBUG_OPT , HELP_OPT }
 
enum  { DEBUG_OPT , HELP_OPT }
 
enum  { DEBUG_OPT , HELP_OPT }
 
enum  { DEBUG_OPT , HELP_OPT }
 

Functions

static void Help (void)
 
static void HandleOptions (int argc, char **argv)
 
static double xsh_correlate_profiles2 (const double *prof1, const double *prof2, double *correl, const int length, const int hsize)
 
static double xsh_function1d_xcorrelate2 (double *line_i, int width_i, double *line_t, int width_t, int half_search, double *delta)
 
cpl_error_code xsh_gauss_gen (double *data, const double center, const double sigma, const int size)
 
int main (int argc, char **argv)
 Create a SLITMAP and a WAVEMAP from Set Of Files (SOF)
 
cpl_vector * xsh_vector_supersample (cpl_vector *v, const int factor)
 

Variables

static struct option LongOptions []
 
static struct option LongOptions []
 
static struct option LongOptions []
 
static struct option LongOptions []
 
static struct option LongOptions []
 
static struct option LongOptions []
 

Detailed Description

Macro Definition Documentation

◆ MODULE_ID [1/6]

#define MODULE_ID   "XSH_CORREL_GAUSSIANS"

Definition at line 56 of file test-xsh_correl_gaussians.c.

◆ MODULE_ID [2/6]

#define MODULE_ID   "XSH_CPL_VECTOR_CORREL_GAUSSIANS"

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

◆ MODULE_ID [3/6]

#define MODULE_ID   "XSH_CPL_VECTOR_CORREL_HDELTA"

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

◆ MODULE_ID [4/6]

#define MODULE_ID   "XSH_CREATE_MAP"

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

◆ MODULE_ID [5/6]

#define MODULE_ID   "XSH_GSL_CORRELATE_GAUSSIANS"

Definition at line 56 of file test-xsh_gsl_correl_gaussians.c.

◆ MODULE_ID [6/6]

#define MODULE_ID   "XSH_XCORREL_GAUSSIANS"

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

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
DEBUG_OPT 
HELP_OPT 

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

◆ anonymous enum

anonymous enum
Enumerator
DEBUG_OPT 
HELP_OPT 

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

◆ anonymous enum

anonymous enum
Enumerator
DEBUG_OPT 
HELP_OPT 

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

◆ anonymous enum

anonymous enum
Enumerator
DEBUG_OPT 
HELP_OPT 

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

◆ anonymous enum

anonymous enum
Enumerator
DEBUG_OPT 
HELP_OPT 

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

◆ anonymous enum

anonymous enum
Enumerator
DEBUG_OPT 
HELP_OPT 

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

Function Documentation

◆ HandleOptions()

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

◆ Help()

static void Help ( void  )
static

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

References MODULE_ID, TEST_END, and TESTS_CLEAN_WORKSPACE.

Referenced by HandleOptions(), and main().

◆ main()

int main ( int  argc,
char **  argv 
)

Create a SLITMAP and a WAVEMAP from Set Of Files (SOF)

Returns
0 if success

Test the Data Reduction Library function XSH_CREATE_MAP

Definition at line 429 of file test-xsh_correl_gaussians.c.

References check, HandleOptions(), Help(), max, MODULE_ID, size, TEST_END, TESTS_CLEAN_WORKSPACE, TESTS_INIT, TESTS_INIT_WORKSPACE, xsh_correlate_profiles2(), XSH_DEBUG_LEVEL_MEDIUM, xsh_debug_level_set(), xsh_error_dump, xsh_free_vector(), xsh_function1d_xcorrelate2(), xsh_gauss_gen(), and xsh_msg.

◆ xsh_correlate_profiles2()

static double xsh_correlate_profiles2 ( const double *  prof1,
const double *  prof2,
double *  correl,
const int  length,
const int  hsize 
)
static

Definition at line 124 of file test-xsh_correl_gaussians.c.

References max, XSH_ASSURE_NOT_ILLEGAL_MSG, XSH_ASSURE_NOT_NULL_MSG, and xsh_msg.

Referenced by main().

◆ xsh_function1d_xcorrelate2()

static double xsh_function1d_xcorrelate2 ( double *  line_i,
int  width_i,
double *  line_t,
int  width_t,
int  half_search,
double *  delta 
)
static

Definition at line 307 of file test-xsh_correl_gaussians.c.

References step, and xsh_msg.

Referenced by main().

◆ xsh_gauss_gen()

cpl_error_code xsh_gauss_gen ( double *  data,
const double  center,
const double  sigma,
const int  size 
)

Definition at line 399 of file test-xsh_correl_gaussians.c.

References sigma, size, and x.

Referenced by main().

◆ xsh_vector_supersample()

cpl_vector * xsh_vector_supersample ( cpl_vector *  v,
const int  factor 
)

Definition at line 111 of file test-xsh_cpl_vector_correl_hdelta.c.

References m, size, and xsh_msg.

Variable Documentation

◆ LongOptions [1/6]

struct option LongOptions[]
static
Initial value:
= {
{"debug", required_argument, 0, DEBUG_OPT},
{"help", 0, 0, HELP_OPT},
{NULL, 0, 0, 0}
}

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

Referenced by HandleOptions().

◆ LongOptions [2/6]

struct option LongOptions[]
static
Initial value:
= {
{"debug", required_argument, 0, DEBUG_OPT},
{"help", 0, 0, HELP_OPT},
{NULL, 0, 0, 0}
}

Definition at line 61 of file test-xsh_cpl_vector_correl_gaussians.c.

Referenced by HandleOptions().

◆ LongOptions [3/6]

struct option LongOptions[]
static
Initial value:
= {
{"debug", required_argument, 0, DEBUG_OPT},
{"help", 0, 0, HELP_OPT},
{NULL, 0, 0, 0}
}

Definition at line 61 of file test-xsh_cpl_vector_correl_hdelta.c.

Referenced by HandleOptions().

◆ LongOptions [4/6]

struct option LongOptions[]
static
Initial value:
= {
{"debug", required_argument, 0, DEBUG_OPT},
{"help", 0, 0, HELP_OPT},
{NULL, 0, 0, 0}
}
@ HELP_OPT
@ DEBUG_OPT

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

Referenced by HandleOptions().

◆ LongOptions [5/6]

struct option LongOptions[]
static
Initial value:
= {
{"debug", required_argument, 0, DEBUG_OPT},
{"help", 0, 0, HELP_OPT},
{NULL, 0, 0, 0}
}

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

Referenced by HandleOptions().

◆ LongOptions [6/6]

struct option LongOptions[]
static
Initial value:
= {
{"debug", required_argument, 0, DEBUG_OPT},
{"help", 0, 0, HELP_OPT},
{NULL, 0, 0, 0}
}

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

Referenced by HandleOptions().