X-shooter Pipeline Reference Manual 3.8.15
Macros | Enumerations | Functions | Variables
Test_xsh_localize_ifu

Macros

#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 []
 

Detailed Description

Macro Definition Documentation

◆ MODULE_ID [1/2]

#define MODULE_ID   "XSH_COMPUTE_SHIFT_IFU"

Definition at line 66 of file test-xsh_compute_shift_ifu.c.

◆ MODULE_ID [2/2]

#define MODULE_ID   "XSH_LOCALIZE_IFU"

Definition at line 67 of file test-xsh_localize_ifu.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
WAVEREF_OPT 
WAVEREF_HSIZE_OPT 
HELP_OPT 

Definition at line 68 of file test-xsh_compute_shift_ifu.c.

◆ anonymous enum

anonymous enum
Enumerator
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.

Function Documentation

◆ HandleOptions() [1/2]

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.

Referenced by main().

◆ HandleOptions() [2/2]

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

◆ Help()

static void Help ( void  )
static

Definition at line 79 of file test-xsh_compute_shift_ifu.c.

References TEST_END.

Referenced by HandleOptions(), and main().

◆ main()

int main ( int  argc,
char **  argv 
)

Variable Documentation

◆ long_options [1/2]

struct option long_options[]
static
Initial value:
= {
{"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().

◆ long_options [2/2]

struct option long_options[]
static
Initial value:
= {
{"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}
}
@ SNR_LOW_OPT
@ BOX_HSIZE_OPT
@ SNR_UP_OPT
@ HF_SKIP_OPT
@ SMOOTH_HSIZE_OPT
@ SKYMASK_OPT
@ SIGMA_UP_OPT
@ SLIT_MAX_OPT
@ SIGMA_LOW_OPT
@ SLIT_MIN_OPT
@ NSCALES_OPT

Definition at line 76 of file test-xsh_localize_ifu.c.

Referenced by HandleOptions().