Defines | |
#define | MODULE_ID "XSH_COMPUTE_SHIFT_IFU" |
#define | MODULE_ID "XSH_LOCALIZE_IFU" |
Enumerations | |
enum | { WAVEREF_OPT, WAVEREF_HSIZE_OPT, HELP_OPT } |
enum | { SMOOTH_HSIZE_OPT, NSCALES_OPT, HF_SKIP_OPT, SIGMA_LOW_OPT, SIGMA_UP_OPT, SNR_LOW_OPT, SNR_UP_OPT, BOX_HSIZE_OPT, SLIT_MIN_OPT, SLIT_MAX_OPT, DEG_OPT, SKYMASK_OPT, HELP_OPT } |
Functions | |
static void | Help (void) |
static void | HandleOptions (int argc, char **argv, double *waveref, double *waveref_hsize) |
int | main (int argc, char **argv) |
static void | HandleOptions (int argc, char **argv, int *smooth_hsize, int *nscales, int *HF_skip, double *sigma_low, double *sigma_up, double *snr_low, double *snr_up, int *box_hsize, double *slitmin, double *slitmax, int *deg, char **skymask_name) |
Variables | |
static struct option | long_options [] |
static struct option | long_options [] |
#define MODULE_ID "XSH_LOCALIZE_IFU" |
Definition at line 67 of file test-xsh_localize_ifu.c.
#define MODULE_ID "XSH_COMPUTE_SHIFT_IFU" |
Definition at line 66 of file test-xsh_compute_shift_ifu.c.
anonymous enum |
Definition at line 68 of file test-xsh_compute_shift_ifu.c.
anonymous enum |
SMOOTH_HSIZE_OPT | |
NSCALES_OPT | |
HF_SKIP_OPT | |
SIGMA_LOW_OPT | |
SIGMA_UP_OPT | |
SNR_LOW_OPT | |
SNR_UP_OPT | |
BOX_HSIZE_OPT | |
SLIT_MIN_OPT | |
SLIT_MAX_OPT | |
DEG_OPT | |
SKYMASK_OPT | |
HELP_OPT |
Definition at line 69 of file test-xsh_localize_ifu.c.
static void HandleOptions | ( | int | argc, | |
char ** | argv, | |||
int * | smooth_hsize, | |||
int * | nscales, | |||
int * | HF_skip, | |||
double * | sigma_low, | |||
double * | sigma_up, | |||
double * | snr_low, | |||
double * | snr_up, | |||
int * | box_hsize, | |||
double * | slitmin, | |||
double * | slitmax, | |||
int * | deg, | |||
char ** | skymask_name | |||
) | [static] |
Definition at line 118 of file test-xsh_localize_ifu.c.
References BOX_HSIZE_OPT, DEG_OPT, Help(), HF_SKIP_OPT, long_options, NSCALES_OPT, SIGMA_LOW_OPT, SIGMA_UP_OPT, SKYMASK_OPT, SLIT_MAX_OPT, SLIT_MIN_OPT, SMOOTH_HSIZE_OPT, SNR_LOW_OPT, and SNR_UP_OPT.
Referenced by main().
static void HandleOptions | ( | int | argc, | |
char ** | argv, | |||
double * | waveref, | |||
double * | waveref_hsize | |||
) | [static] |
Definition at line 95 of file test-xsh_compute_shift_ifu.c.
References Help(), long_options, WAVEREF_HSIZE_OPT, and WAVEREF_OPT.
static void Help | ( | void | ) | [static] |
Definition at line 93 of file test-xsh_localize_ifu.c.
References TEST_END.
Referenced by HandleOptions().
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 175 of file test-xsh_localize_ifu.c.
References check, HandleOptions(), Help(), instrument, MODULE_ID, TEST_END, TESTS_INIT, TESTS_XSH_FRAME_CREATE, TESTS_XSH_INSTRUMENT_CREATE, XSH_ARM_UNDEFINED, XSH_DEBUG_LEVEL_MEDIUM, xsh_debug_level_set(), xsh_error_dump, xsh_free_frame(), xsh_free_propertylist(), XSH_GET_TAG_FROM_ARM, xsh_instrument_free(), XSH_LAMP_UNDEFINED, xsh_localize_ifu_slitlet(), XSH_MERGE2D, XSH_MODE_IFU, xsh_msg, XSH_OBJPOS_COLNAME_SLIT, XSH_OBJPOS_COLNAME_WAVELENGTH, xsh_pfits_get_arm(), XSH_SKY_LINE_LIST, XSH_TABLE_FREE, and XSH_TABLE_LOAD.
struct option long_options[] [static] |
{ {"smooth-hsize", required_argument, 0, SMOOTH_HSIZE_OPT}, {"nscales", required_argument, 0, NSCALES_OPT}, {"HF-skip", required_argument, 0, HF_SKIP_OPT}, {"cut-sigma-low", required_argument, 0, SIGMA_LOW_OPT}, {"cut-sigma-up", required_argument, 0, SIGMA_UP_OPT}, {"cut-snr-low", required_argument, 0, SNR_LOW_OPT}, {"cut-snr-up", required_argument, 0, SNR_UP_OPT}, {"box-hsize", required_argument, 0, BOX_HSIZE_OPT}, {"slit-min", required_argument, 0, SLIT_MIN_OPT}, {"slit-max", required_argument, 0, SLIT_MAX_OPT}, {"deg", required_argument, 0, DEG_OPT}, {"skymask", required_argument, 0, SKYMASK_OPT}, {"help", 0, 0, HELP_OPT}, {0, 0, 0, 0} }
Definition at line 76 of file test-xsh_localize_ifu.c.
Referenced by HandleOptions().
struct option long_options[] [static] |
{ {"wave-ref", required_argument, 0, WAVEREF_OPT}, {"wave-ref-hsize", required_argument, 0, WAVEREF_HSIZE_OPT}, {"help", 0, 0, HELP_OPT}, {0, 0, 0, 0} }
Definition at line 72 of file test-xsh_compute_shift_ifu.c.
Referenced by HandleOptions().