X-shooter Pipeline Reference Manual 3.8.15
Macros | Functions
Test Prepare functions

Macros

#define MODULE_ID   "XSH_DATA_SPECTRALFORMAT"
 
#define SYNTAX
 
#define MODULE_ID   "XSH_PREPARE"
 
#define SYNTAX
 

Functions

int main (int argc, char **argv)
 Test the spectral format.
 

Detailed Description

Macro Definition Documentation

◆ MODULE_ID [1/2]

#define MODULE_ID   "XSH_DATA_SPECTRALFORMAT"

Definition at line 57 of file test-xsh_data_spectralformat.c.

◆ MODULE_ID [2/2]

#define MODULE_ID   "XSH_PREPARE"

Definition at line 57 of file test-xsh_prepare.c.

◆ SYNTAX [1/2]

#define SYNTAX
Value:
"Test the xsh_data_spectralformat function \n"\
" analyse SPECTRAL_FORMAT tab frames\n"\
"use : ./test_xsh_data_spectralformat SOF\n"\
" SOF => [SPECTRAL_FORMAT, ORDER_TAB_EDGES, WAVE_TAB_2D|MODEL ]\n"

Definition at line 59 of file test-xsh_data_spectralformat.c.

◆ SYNTAX [2/2]

#define SYNTAX
Value:
"Test the xsh_prepare function \n"\
" transform RAW frames from a sof in PRE files\n"\
"use : ./test_xsh_prepare SOF\n"\
" SOF => the raw data FITS file\n"

Definition at line 59 of file test-xsh_prepare.c.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Test the spectral format.

Unit test of XSH_PREPARE.

Returns
0 if tests passed successfully
0 if tests passed successfully

Test the Data Reduction Library function XSH_PREPARE

Definition at line 78 of file test-xsh_data_spectralformat.c.

References check, instrument, MODULE_ID, sof_to_frameset(), SYNTAX, TEST_END, TESTS_INIT, xsh_data_check_spectralformat(), XSH_DEBUG_LEVEL_MEDIUM, xsh_debug_level_set(), xsh_dfs_set_groups(), xsh_error_dump, xsh_find_frame_with_tag(), xsh_find_order_tab_edges(), xsh_find_spectral_format(), xsh_find_wave_tab_2d(), xsh_free_frameset(), xsh_instrument_free(), XSH_MOD_CFG_TAB, and xsh_msg.