Defines | |
#define | MODULE_ID "XSH_EXTRACT_CLEAN" |
#define | MODULE_ID "XSH_EXTRACT_CLEAN" |
Enumerations | |
enum | { DECODEBP_OPT, METHOD_OPT, DEBUG_OPT, HELP_OPT } |
enum | { DECODEBP_OPT, METHOD_OPT, DEBUG_OPT, HELP_OPT } |
Functions | |
static void | Help (void) |
static void | HandleOptions (int argc, char **argv, xsh_extract_param *extract_par, int *decode_bp) |
static void | analyse_extraction (cpl_frame *rec_frame, xsh_instrument *instr) |
int | main (int argc, char **argv) |
Unit test of xsh_extract_clean. | |
cpl_error_code | xsh_set_wcs (cpl_propertylist *header, const double crpix1, const double crval1, const double cdelt1, const double crpix2, const double crval2, const double cdelt2) |
static cpl_frame * | xsh_extract_local_clean (cpl_frame *frame2D, xsh_instrument *instrument) |
Variables | |
static struct option | long_options [] |
static struct option | long_options [] |
#define MODULE_ID "XSH_EXTRACT_CLEAN" |
Definition at line 66 of file test-xsh_extract_clean_sym.c.
#define MODULE_ID "XSH_EXTRACT_CLEAN" |
Definition at line 66 of file test-xsh_extract_clean.c.
anonymous enum |
Definition at line 68 of file test-xsh_extract_clean.c.
anonymous enum |
Definition at line 68 of file test-xsh_extract_clean_sym.c.
static void analyse_extraction | ( | cpl_frame * | rec_frame, | |
xsh_instrument * | instr | |||
) | [static] |
Definition at line 156 of file test-xsh_extract_clean.c.
References check, order, xsh_rec_list::size, XSH_ASSURE_NOT_NULL, xsh_msg, xsh_rec_list_free(), xsh_rec_list_get_data1(), xsh_rec_list_get_errs1(), xsh_rec_list_get_lambda(), xsh_rec_list_get_nlambda(), xsh_rec_list_get_order(), and xsh_rec_list_load().
static void HandleOptions | ( | int | argc, | |
char ** | argv, | |||
xsh_extract_param * | extract_par, | |||
int * | decode_bp | |||
) | [static] |
Definition at line 98 of file test-xsh_extract_clean_sym.c.
References CLEAN_METHOD, DEBUG_OPT, DECODEBP_OPT, EXTRACT_METHOD_PRINT, FULL_METHOD, Help(), HELP_OPT, LOCALIZATION_METHOD, long_options, xsh_extract_param::method, METHOD_OPT, NOD_METHOD, XSH_DEBUG_LEVEL_HIGH, XSH_DEBUG_LEVEL_LOW, xsh_debug_level_set(), and xsh_msg.
static void Help | ( | void | ) | [static] |
Definition at line 80 of file test-xsh_extract_clean_sym.c.
References TEST_END.
int main | ( | int | argc, | |
char ** | argv | |||
) |
Unit test of xsh_extract_clean.
Definition at line 335 of file test-xsh_extract_clean_sym.c.
References check, CLEAN_METHOD, DECODE_BP_FLAG_DEF, HandleOptions(), instrument, MODULE_ID, TEST_END, TESTS_INIT, XSH_ARM_VIS, XSH_ASSURE_NOT_NULL, XSH_DEBUG_LEVEL_MEDIUM, xsh_debug_level_set(), xsh_error_dump, xsh_extract_local_clean(), XSH_FREE, xsh_free_frame(), xsh_free_image(), xsh_free_propertylist(), xsh_instrument_free(), xsh_instrument_new(), xsh_instrument_set_arm(), xsh_instrument_set_decode_bp(), xsh_instrument_set_lamp(), xsh_instrument_set_mode(), XSH_LAMP_QTH, XSH_MODE_IFU, xsh_msg, xsh_msg_debug, XSH_PRE_DATA_BPP, XSH_PRE_ERRS_BPP, XSH_PRE_QUAL_BPP, and xsh_set_wcs().
static cpl_frame* xsh_extract_local_clean | ( | cpl_frame * | frame2D, | |
xsh_instrument * | instrument | |||
) | [static] |
Definition at line 174 of file test-xsh_extract_clean_sym.c.
References check, m, xsh_extract_clean_slice(), XSH_FREE, xsh_free_image(), xsh_free_propertylist(), xsh_free_table(), xsh_msg_debug, xsh_pfits_get_cdelt1(), xsh_pfits_get_cdelt2(), xsh_pfits_get_crval1(), xsh_pfits_get_crval2(), xsh_pfits_get_naxis1(), and xsh_pfits_get_naxis2().
Referenced by main().
cpl_error_code xsh_set_wcs | ( | cpl_propertylist * | header, | |
const double | crpix1, | |||
const double | crval1, | |||
const double | cdelt1, | |||
const double | crpix2, | |||
const double | crval2, | |||
const double | cdelt2 | |||
) |
Definition at line 149 of file test-xsh_extract_clean_sym.c.
References xsh_pfits_set_cd11(), xsh_pfits_set_cd12(), xsh_pfits_set_cd21(), and xsh_pfits_set_cd22().
Referenced by main().
struct option long_options[] [static] |
{ {"decode-bp", required_argument, 0, DECODEBP_OPT}, {"method", required_argument, 0, METHOD_OPT}, {"debug", required_argument, 0, DEBUG_OPT}, {"help", 0, 0, HELP_OPT}, {0, 0, 0, 0} }
Definition at line 72 of file test-xsh_extract_clean_sym.c.
Referenced by HandleOptions().
struct option long_options[] [static] |
{ {"decode-bp", required_argument, 0, DECODEBP_OPT}, {"method", required_argument, 0, METHOD_OPT}, {"debug", required_argument, 0, DEBUG_OPT}, {"help", 0, 0, HELP_OPT}, {0, 0, 0, 0} }
Definition at line 72 of file test-xsh_extract_clean.c.