X-shooter Pipeline Reference Manual 3.8.15
Macros | Functions | Variables
Test Flux Conservation

Macros

#define MODULE_ID   "XSH_FLUX_CONSERVATION"
 

Functions

static double derivative_x (const double a1, const double a2, const double x)
 
static double derivative_y (const double a1, const double a2, const double y)
 
static void verify_order_table (cpl_frame *result)
 
int main (void)
 

Variables

static const double poly0_coeff []
 Unit test of XSH_DETECT_CONTINUUM.
 
static const double step = 40.
 
static int nx = 400
 
static int ny = 400
 
static int starty = 10
 
static int endy = 380
 
static int dimension = 1
 
static int degree = 2
 
static int width = 10
 
static int norder = 3
 
static double exptime = 1.
 
static const char * img_name = "dtc_img.fits"
 
static const char * tbl_name = "dtc_tbl.fits"
 
static const char * dtc_pre_name = "dtc_img_pre.fits"
 

Detailed Description

Macro Definition Documentation

◆ MODULE_ID

#define MODULE_ID   "XSH_FLUX_CONSERVATION"

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

Function Documentation

◆ derivative_x()

static double derivative_x ( const double  a1,
const double  a2,
const double  x 
)
static

Definition at line 91 of file test-xsh_flux_conservation.c.

References x.

Referenced by main().

◆ derivative_y()

static double derivative_y ( const double  a1,
const double  a2,
const double  y 
)
static

Definition at line 98 of file test-xsh_flux_conservation.c.

References y.

Referenced by main().

◆ main()

int main ( void  )

◆ verify_order_table()

static void verify_order_table ( cpl_frame *  result)
static

Variable Documentation

◆ degree

int degree = 2
static

Definition at line 83 of file test-xsh_flux_conservation.c.

Referenced by main().

◆ dimension

int dimension = 1
static

Definition at line 83 of file test-xsh_flux_conservation.c.

Referenced by main().

◆ dtc_pre_name

const char* dtc_pre_name = "dtc_img_pre.fits"
static

Definition at line 88 of file test-xsh_flux_conservation.c.

Referenced by main().

◆ endy

int endy = 380
static

Definition at line 82 of file test-xsh_flux_conservation.c.

Referenced by main().

◆ exptime

double exptime = 1.
static

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

Referenced by main().

◆ img_name

const char* img_name = "dtc_img.fits"
static

Definition at line 86 of file test-xsh_flux_conservation.c.

Referenced by main().

◆ norder

int norder = 3
static

Definition at line 84 of file test-xsh_flux_conservation.c.

Referenced by main().

◆ nx

int nx = 400
static

Definition at line 81 of file test-xsh_flux_conservation.c.

Referenced by main().

◆ ny

int ny = 400
static

Definition at line 81 of file test-xsh_flux_conservation.c.

Referenced by main().

◆ poly0_coeff

const double poly0_coeff[]
static
Initial value:
= {
280., 0.3, -0.0025 }

Unit test of XSH_DETECT_CONTINUUM.

Returns
0 if tests passed successfully

Test the Data Reduction Library function XSH_DETECT_CONTINUUM

Definition at line 77 of file test-xsh_flux_conservation.c.

Referenced by main().

◆ starty

int starty = 10
static

Definition at line 82 of file test-xsh_flux_conservation.c.

Referenced by main().

◆ step

const double step = 40.
static

Definition at line 79 of file test-xsh_flux_conservation.c.

Referenced by main().

◆ tbl_name

const char* tbl_name = "dtc_tbl.fits"
static

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

Referenced by main().

◆ width

int width = 10
static

Definition at line 83 of file test-xsh_flux_conservation.c.

Referenced by main().