forked from scottransom/presto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaccelsearch_cmd.h
89 lines (82 loc) · 2.67 KB
/
accelsearch_cmd.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#ifndef __accelsearch_cmd__
#define __accelsearch_cmd__
/*****
command line parser interface -- generated by clig
(http://wsd.iitb.fhg.de/~geg/clighome/)
The command line parser `clig':
(C) 1995-2004 Harald Kirsch ([email protected])
*****/
typedef struct s_Cmdline {
/***** -ncpus: Number of processors to use with OpenMP */
char ncpusP;
int ncpus;
int ncpusC;
/***** -lobin: The first Fourier frequency in the data file */
char lobinP;
int lobin;
int lobinC;
/***** -numharm: The number of harmonics to sum (power-of-two) */
char numharmP;
int numharm;
int numharmC;
/***** -zmax: The max (+ and -) Fourier freq deriv to search */
char zmaxP;
int zmax;
int zmaxC;
/***** -wmax: The max (+ and -) Fourier freq double derivs to search */
char wmaxP;
int wmax;
int wmaxC;
/***** -sigma: Cutoff sigma for choosing candidates */
char sigmaP;
float sigma;
int sigmaC;
/***** -rlo: The lowest Fourier frequency (of the highest harmonic!) to search */
char rloP;
double rlo;
int rloC;
/***** -rhi: The highest Fourier frequency (of the highest harmonic!) to search */
char rhiP;
double rhi;
int rhiC;
/***** -flo: The lowest frequency (Hz) (of the highest harmonic!) to search */
char floP;
double flo;
int floC;
/***** -fhi: The highest frequency (Hz) (of the highest harmonic!) to search */
char fhiP;
double fhi;
int fhiC;
/***** -inmem: Compute full f-fdot plane in memory. Very fast, but only for short time series. */
char inmemP;
/***** -photon: Data is poissonian so use freq 0 as power normalization */
char photonP;
/***** -median: Use block-median power normalization (default) */
char medianP;
/***** -locpow: Use double-tophat local-power normalization (not usually recommended) */
char locpowP;
/***** -zaplist: A file of freqs+widths to zap from the FFT (only if the input file is a *.[s]dat file) */
char zaplistP;
char* zaplist;
int zaplistC;
/***** -baryv: The radial velocity component (v/c) towards the target during the obs */
char baryvP;
double baryv;
int baryvC;
/***** -otheropt: Use the alternative optimization (for testing/debugging) */
char otheroptP;
/***** -noharmpolish: Do not use 'harmpolish' by default */
char noharmpolishP;
/***** -noharmremove: Do not remove harmonically related candidates (never removed for numharm = 1) */
char noharmremoveP;
/***** uninterpreted command line parameters */
int argc;
/*@null*/char **argv;
/***** the whole command line concatenated */
char *full_cmd_line;
} Cmdline;
extern char *Program;
extern void usage(void);
extern /*@shared*/Cmdline *parseCmdline(int argc, char **argv);
extern void showOptionValues(void);
#endif