X-shooter Pipeline Reference Manual 3.8.15
Macros | Functions | Variables
tests.c File Reference
#include <xsh_data_pre.h>
#include <xsh_error.h>
#include <xsh_msg.h>
#include <xsh_data_instrument.h>
#include <xsh_drl.h>
#include <xsh_pfits.h>
#include <xsh_badpixelmap.h>
#include <cpl.h>
#include <stdbool.h>
#include <xsh_data_order.h>
#include <xsh_utils.h>
#include <string.h>
#include <tests.h>
#include <xsh_cpl_size.h>

Go to the source code of this file.

Macros

#define NB_LAMBDA   100
 
#define FIRST_LAMBDA   500.0
 
#define LAST_LAMBDA   510.0
 
#define NB_SLIT   40
 
#define FIRST_SLIT   -5
 
#define LAST_SLIT   5
 
#define POS_PLUS   30
 
#define COEFF0_PLUS   30.
 
#define COEFF1_PLUS   0.03
 
#define POS_CENTER   30
 
#define POS_MINUS   5
 
#define COEFF0_MINUS   10.
 
#define COEFF1_MINUS   0.03
 
#define WIDTH   5
 
#define HALF_WIDTH   2
 

Functions

static int xsh_poisson_random (double expectedValue)
 generates random data with Poisson distribution
 
cpl_image * xsh_test_create_bias_image (const char *name, int nx, int ny, xsh_instrument *instrument)
 
cpl_frame * xsh_test_create_frame (const char *name, int nx, int ny, const char *tag, cpl_frame_group group, xsh_instrument *instrument)
 
void tests_set_defaults (cpl_parameterlist *parlist)
 Set unset parameters to default value.
 
cpl_propertylist * mkHeader (XSH_INSTRCONFIG *iconfig, int nx, int ny, double exptime)
 
void setHeader (cpl_propertylist *header, XSH_INSTRCONFIG *iconfig, int nx, int ny, double exptime)
 
cpl_image * create_order_image (xsh_order_list *list, int nx, int ny)
 
xsh_order_listcreate_order_list (int norder, xsh_instrument *instrument)
 
void add_to_order_list (xsh_order_list *list, int order, int absorder, cpl_polynomial *poly, int xdelta, int starty, int endy)
 
cpl_frame * create_rectify_nod_list (int sign, const char *fname, xsh_instrument *instr)
 
cpl_frameset * sof_to_frameset (const char *sof_name)
 
xsh_instrumentcreate_instrument (const char *filename)
 

Variables

static float Flux [WIDTH]
 
static cpl_polynomial * poly_plus = NULL
 
static cpl_polynomial * poly_minus = NULL