Test Create SLITMAP and WAVEMAP
[Unit Tests]

Defines

#define MODULE_ID   "XSH_CORRELATE_GAUSSIANS"
#define MODULE_ID   "XSH_CORRELATE_GAUSSIANS"
#define MODULE_ID   "XSH_CORRELATE_GAUSSIANS"
#define MODULE_ID   "XSH_CREATE_MAP"
#define MODULE_ID   "XSH_GSL_CORRELATE_GAUSSIANS"
#define MODULE_ID   "XSH_CORRELATE_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_correlate_profiles (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 []

Define Documentation

#define MODULE_ID   "XSH_CORRELATE_GAUSSIANS"

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

#define MODULE_ID   "XSH_GSL_CORRELATE_GAUSSIANS"

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

#define MODULE_ID   "XSH_CREATE_MAP"

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

#define MODULE_ID   "XSH_CORRELATE_GAUSSIANS"

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

#define MODULE_ID   "XSH_CORRELATE_GAUSSIANS"

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

#define MODULE_ID   "XSH_CORRELATE_GAUSSIANS"

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


Enumeration Type Documentation

anonymous enum
Enumerator:
DEBUG_OPT 
HELP_OPT 

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

anonymous enum
Enumerator:
DEBUG_OPT 
HELP_OPT 

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

anonymous enum
Enumerator:
DEBUG_OPT 
HELP_OPT 

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

anonymous enum
Enumerator:
DEBUG_OPT 
HELP_OPT 

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

anonymous enum
Enumerator:
DEBUG_OPT 
HELP_OPT 

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

anonymous enum
Enumerator:
DEBUG_OPT 
HELP_OPT 

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


Function Documentation

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

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

References TEST_END.

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 144 of file test-xsh_xcorrel_gaussians.c.

References check, HandleOptions(), Help(), MODULE_ID, size, TEST_END, TESTS_INIT, XSH_DEBUG_LEVEL_MEDIUM, xsh_debug_level_set(), xsh_error_dump, xsh_free_vector(), xsh_function1d_xcorrelate(), and xsh_gauss_gen().

static double xsh_correlate_profiles ( const double *  prof1,
const double *  prof2,
double *  correl,
const int  length,
const int  hsize 
) [static]

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

References xsh_msg.

static double xsh_correlate_profiles2 ( const double *  prof1,
const double *  prof2,
double *  correl,
const int  length,
const int  hsize 
) [static]
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 302 of file test-xsh_correl_gaussians.c.

References step, and xsh_msg.

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

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

References x.

Referenced by main().

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

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().

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.

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

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

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.

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.

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.


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