/home/amodigli/releases/xsh/1.2.10/pso/xsh.26608/xshp/xsh/tests/tests.h File Reference

#include <cpl.h>
#include <xsh_drl.h>
#include <stdbool.h>
#include <xsh_data_order.h>
#include <config.h>

Go to the source code of this file.

Defines

#define TESTS_INIT(DRL_ID)
#define TEST_END()
#define TESTS_XSH_INSTRUMENT_CREATE(instr, mode, arm, lamp, recipe)
#define TESTS_XSH_FRAME_CREATE(frame, tag, name)
#define TESTS_DATA(file)   XSH_TEST_DATA_PATH "/" file
#define XSH_DRL_FUNC_RMS   0.01
#define XSH_FLOAT_PRECISION   0.000001

Functions

void tests_set_defaults (cpl_parameterlist *parlist)
 Set unset parameters to default value.
cpl_image * xsh_test_create_bias_image (const char *name, int nx, int ny, xsh_instrument *instrument)
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_frame * xsh_test_create_frame (const char *name, int nx, int ny, const char *tag, cpl_frame_group group, 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)
xsh_order_listcreate_order_list (int norder, xsh_instrument *instrument)
cpl_image * create_order_image (xsh_order_list *list, int nx, int ny)
cpl_frame * create_rectify_nod_list (int dual, const char *fname, xsh_instrument *instr)
cpl_frameset * sof_to_frameset (const char *sof_name)

Define Documentation

 
#define TEST_END (  ) 
Value:
xsh_free_temporary_files(); \
  cpl_end()

Definition at line 106 of file tests.h.

Referenced by HandleOptions(), Help(), and main().

#define TESTS_DATA ( file   )     XSH_TEST_DATA_PATH "/" file

Definition at line 126 of file tests.h.

#define TESTS_INIT ( DRL_ID   ) 
Value:
do {         \
    cpl_init(CPL_INIT_DEFAULT);         \
    xsh_init();                         \
    cpl_msg_set_domain("Test-" DRL_ID); \
} while(false)

Definition at line 100 of file tests.h.

Referenced by main().

#define TESTS_XSH_FRAME_CREATE ( frame,
tag,
name   ) 
Value:
frame = cpl_frame_new();\
  cpl_frame_set_filename( frame, name);\
  cpl_frame_set_level( frame, CPL_FRAME_LEVEL_TEMPORARY);\
  cpl_frame_set_group( frame, CPL_FRAME_GROUP_RAW);\
  cpl_frame_set_tag( frame, tag)

Definition at line 118 of file tests.h.

Referenced by main().

#define TESTS_XSH_INSTRUMENT_CREATE ( instr,
mode,
arm,
lamp,
recipe   ) 
Value:
instr = xsh_instrument_new() ;\
  xsh_instrument_set_mode( instr, mode) ;\
  xsh_instrument_set_arm( instr, arm) ;\
  xsh_instrument_set_lamp( instr, lamp) ;\
  xsh_instrument_set_recipe_id( instr, recipe) ;\
  xsh_msg( "   recipe_id: %s", instr->recipe_id )

Definition at line 110 of file tests.h.

Referenced by main().

#define XSH_DRL_FUNC_RMS   0.01

Definition at line 130 of file tests.h.

#define XSH_FLOAT_PRECISION   0.000001

Definition at line 131 of file tests.h.


Generated on 9 Mar 2011 for X-shooter Pipeline Reference Manual by  doxygen 1.6.1