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

Macros

#define HDRL_DELTA_COMPARE_QC   HDRL_EPS_DATA * 2.0e1
 
#define HDRL_DELTA_COMPARE_IMAGE   HDRL_EPS_DATA * 2.5e1
 
#define HDRL_FPN_TEST_EVEN_IMG_OUT   "even_img_out.fits"
 
#define HDRL_FPN_TEST_EVEN_MASK_OUT   "even_mask_out.fits"
 
#define HDRL_FPN_TEST_ODD_IMG_OUT   "odd_img_out.fits"
 
#define HDRL_FPN_TEST_ODD_MASK_OUT   "odd_mask_out.fits"
 
#define HDRL_FPN_TEST_FILTER_IMG_OUT   "filter_img_out.fits"
 
#define HDRL_FPN_TEST_FILTER_MASK_OUT   "filter_mask_out.fits"
 
#define HDRL_FPN_TEST_FILTER_MASK_IMG_OUT   "filter_with_mask_img_out.fits"
 
#define HDRL_FPN_TEST_FILTER_MASK_MASK_OUT   "filter_with_mask_mask_out.fits"
 

Functions

int main (void)
 Unit tests of Fixed pattern noise module.
 

Variables

const double const_even_img [][4]
 
const double const_odd_img [][5]
 
const double const_filter_img [][5]
 
const double const_even_img_out_python [][4]
 
const double const_odd_img_out_python [][5]
 
const double const_filter_img_out_python [][10]
 

Macro Definition Documentation

◆ HDRL_DELTA_COMPARE_IMAGE

#define HDRL_DELTA_COMPARE_IMAGE   HDRL_EPS_DATA * 2.5e1

◆ HDRL_DELTA_COMPARE_QC

#define HDRL_DELTA_COMPARE_QC   HDRL_EPS_DATA * 2.0e1

Includes Defines and global variables

◆ HDRL_FPN_TEST_EVEN_IMG_OUT

#define HDRL_FPN_TEST_EVEN_IMG_OUT   "even_img_out.fits"

◆ HDRL_FPN_TEST_EVEN_MASK_OUT

#define HDRL_FPN_TEST_EVEN_MASK_OUT   "even_mask_out.fits"

◆ HDRL_FPN_TEST_FILTER_IMG_OUT

#define HDRL_FPN_TEST_FILTER_IMG_OUT   "filter_img_out.fits"

◆ HDRL_FPN_TEST_FILTER_MASK_IMG_OUT

#define HDRL_FPN_TEST_FILTER_MASK_IMG_OUT   "filter_with_mask_img_out.fits"

◆ HDRL_FPN_TEST_FILTER_MASK_MASK_OUT

#define HDRL_FPN_TEST_FILTER_MASK_MASK_OUT   "filter_with_mask_mask_out.fits"

◆ HDRL_FPN_TEST_FILTER_MASK_OUT

#define HDRL_FPN_TEST_FILTER_MASK_OUT   "filter_mask_out.fits"

◆ HDRL_FPN_TEST_ODD_IMG_OUT

#define HDRL_FPN_TEST_ODD_IMG_OUT   "odd_img_out.fits"

◆ HDRL_FPN_TEST_ODD_MASK_OUT

#define HDRL_FPN_TEST_ODD_MASK_OUT   "odd_mask_out.fits"

Function Documentation

◆ main()

int main ( void  )

Unit tests of Fixed pattern noise module.

Variable Documentation

◆ const_even_img

const double const_even_img[][4]
Initial value:
= {
{ 0.84, -0.27, 0.07, 0.74 },
{ 0.57, -0.265, -0.07, 0.32 },
{ 0.25, -0.268, 0.07, 0.72 },
{ -0.9, -0.2, -0.05, 0.57 }
}

◆ const_even_img_out_python

const double const_even_img_out_python[][4]
Initial value:
= {
{ 0.2827580625, 0.1036180625, 0.2962080625, 0.1036180625 },
{ 0.7368880625, 0.1449405625, 0.1099405625, 0.1804230625 },
{ 0.0200930625, 0.2151505625, 0.0874680625, 0.2151505625 },
{ 0.7368880625, 0.1804230625, 0.1099405625, 0.1449405625 }
}

◆ const_filter_img

const double const_filter_img[][5]
Initial value:
= {
{ 0.84, -0.27, 0.07, 0.74, 0.28 },
{ 0.57, -0.265, -0.07, 0.32, 0.37 },
{ 0.25, -0.268, 0.07, 0.72, 0.47 },
{ -1.2, -0.255, -0.06, 0.65, 0.74 },
{ -1.5, -0.25, 0.06, 0.64, 0.63 },
{ -0.84, -0.248, -0.06, -0.63, 0.56 },
{ 0.84, -0.236, 0.06, 0.59, 0.26 },
{ 0.94, -0.244, -0.06, 0.69, -0.16 },
{ -0.84, -0.23, 0.05, 0.43, -0.50 },
{ -0.9, -0.2, -0.05, 0.57, -1.05 }
}

◆ const_filter_img_out_python

const double const_filter_img_out_python[][10]
Initial value:
= {
{ 0.08193152, 0.063075752708677, 0.822150095300018, 0.344980107291323, 0.0179478446999824, 0.28697888, 0.0179478446999824, 0.344980107291323, 0.822150095300018, 0.0630757527086773 },
{ 1.58489635987986, 0.220252697693417, 0.896622688396041, 0.0654115585573622, 0.0653615133387257, 0.0349653602187383, 0.0286088875424546, 0.0741165605524927, 0.633926559509007, 0.179705468727281 },
{ 0.089400680120138, 0.595806301442638, 0.211423052457545, 0.125587391272719, 0.156505251603959, 0.0308983997812617, 0.0250233804909936, 0.0969931623065833, 0.786391426661275, 0.722799299447507 },
{ 0.089400680120138, 0.722799299447507, 0.786391426661275, 0.0969931623065836, 0.0250233804909936, 0.0308983997812617, 0.156505251603959, 0.125587391272719, 0.211423052457545, 0.595806301442638 },
{ 1.58489635987986, 0.179705468727281, 0.633926559509007, 0.0741165605524925, 0.0286088875424546, 0.0349653602187383, 0.0653615133387257, 0.0654115585573621, 0.896622688396041, 0.220252697693417 }
}

◆ const_odd_img

const double const_odd_img[][5]
Initial value:
= {
{ 0.84, -0.27, 0.07, 0.74, 0.28 },
{ -1.2, -0.255, -0.06, 0.65, 0.74 },
{ -1.5, -0.25, 0.06, 0.64, 0.63 },
{ -0.84, -0.248, -0.06, -0.63, 0.56 },
{ -0.9, -0.2, -0.05, 0.57, -1.05 }
}

◆ const_odd_img_out_python

const double const_odd_img_out_python[][5]
Initial value:
= {
{ 0.12013156, 0.383159364837234, 0.265579755162766, 0.265579755162766, 0.383159364837234 },
{ 1.54915433534651, 0.400709353348878, 0.29934484816896, 0.369019554281073, 0.0991814702143874 },
{ 0.359162784653486, 0.467499565718927, 0.400883766651123, 0.0112476497856126, 0.72090627183104 },
{ 0.359162784653486, 0.72090627183104, 0.0112476497856126, 0.400883766651123, 0.467499565718927 },
{ 1.54915433534651, 0.0991814702143874, 0.369019554281073, 0.29934484816896, 0.400709353348878 }
}