High-Level Data Reduction Library 1.6.0a5
High-Level data reduction routines for ESO pipelines
Loading...
Searching...
No Matches
hdrl_response-test.c File Reference
#include "hdrl.h"
#include <math.h>
#include <cpl.h>
Include dependency graph for hdrl_response-test.c:

Macros

#define HDRL_DELTA_COMPARE_VALUE   HDRL_EPS_DATA * 1.
 
#define cpl_ensure_no_error   cpl_test_eq(get_error_and_reset(), CPL_ERROR_NONE);
 
#define cpl_ensure_error   cpl_test_noneq(get_error_and_reset(), CPL_ERROR_NONE);
 

Functions

hdrl_spectrum1Dcreate_spectrum (double *wavs, double *flux, double *flux_e, const cpl_size sz)
 
cpl_bivector * create_windows (const double *w1, const double *w2, const cpl_size sz)
 
cpl_array * create_array (const double *els, const cpl_size sz)
 
void test_response_basic (void)
 
void test_truncation (void)
 
void test_edges_of_response_outside_fit_points (void)
 
void test_telluric (void)
 
void test_ignore_abs_regions (void)
 
int main (void)
 Unit tests of efficiency calculation module.
 

Variables

const hdrl_spectrum1D_wave_scale scale = hdrl_spectrum1D_wave_scale_linear
 

Macro Definition Documentation

◆ cpl_ensure_error

#define cpl_ensure_error   cpl_test_noneq(get_error_and_reset(), CPL_ERROR_NONE);

◆ cpl_ensure_no_error

#define cpl_ensure_no_error   cpl_test_eq(get_error_and_reset(), CPL_ERROR_NONE);

◆ HDRL_DELTA_COMPARE_VALUE

#define HDRL_DELTA_COMPARE_VALUE   HDRL_EPS_DATA * 1.

Function Documentation

◆ create_array()

cpl_array * create_array ( const double *  els,
const cpl_size  sz 
)

◆ create_spectrum()

hdrl_spectrum1D * create_spectrum ( double *  wavs,
double *  flux,
double *  flux_e,
const cpl_size  sz 
)

◆ create_windows()

cpl_bivector * create_windows ( const double *  w1,
const double *  w2,
const cpl_size  sz 
)

◆ main()

int main ( void  )

Unit tests of efficiency calculation module.

◆ test_edges_of_response_outside_fit_points()

void test_edges_of_response_outside_fit_points ( void  )

◆ test_ignore_abs_regions()

void test_ignore_abs_regions ( void  )

◆ test_response_basic()

void test_response_basic ( void  )

◆ test_telluric()

void test_telluric ( void  )

◆ test_truncation()

void test_truncation ( void  )

Variable Documentation

◆ scale