forked from scottransom/presto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrfifind_cmd.h
115 lines (108 loc) · 3.74 KB
/
rfifind_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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
#ifndef __rfifind_cmd__
#define __rfifind_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;
/***** -o: Root of the output file names */
char outfileP;
char* outfile;
int outfileC;
/***** -filterbank: Raw data in SIGPROC filterbank format */
char filterbankP;
/***** -psrfits: Raw data in PSRFITS format */
char psrfitsP;
/***** -noweights: Do not apply PSRFITS weights */
char noweightsP;
/***** -noscales: Do not apply PSRFITS scales */
char noscalesP;
/***** -nooffsets: Do not apply PSRFITS offsets */
char nooffsetsP;
/***** -wapp: Raw data in Wideband Arecibo Pulsar Processor (WAPP) format */
char wappP;
/***** -window: Window correlator lags with a Hamming window before FFTing */
char windowP;
/***** -numwapps: Number of WAPPs used with contiguous frequencies */
char numwappsP;
int numwapps;
int numwappsC;
/***** -if: A specific IF to use if available (summed IFs is the default) */
char ifsP;
int ifs;
int ifsC;
/***** -clip: Time-domain sigma to use for clipping (0.0 = no clipping, 6.0 = default */
char clipP;
float clip;
int clipC;
/***** -noclip: Do not clip the data. (The default is to _always_ clip!) */
char noclipP;
/***** -invert: For rawdata, flip (or invert) the band */
char invertP;
/***** -zerodm: Subtract the mean of all channels from each sample (i.e. remove zero DM) */
char zerodmP;
/***** -xwin: Draw plots to the screen as well as a PS file */
char xwinP;
/***** -nocompute: Just plot and remake the mask */
char nocomputeP;
/***** -rfixwin: Show the RFI instances on screen */
char rfixwinP;
/***** -rfips: Plot the RFI instances in a PS file */
char rfipsP;
/***** -time: Seconds to integrate for stats and FFT calcs (use this or -blocks) */
char timeP;
double time;
int timeC;
/***** -blocks: Number of blocks (usually 16-1024 samples) to integrate for stats and FFT calcs */
char blocksP;
int blocks;
int blocksC;
/***** -timesig: The +/-sigma cutoff to reject time-domain chunks */
char timesigmaP;
float timesigma;
int timesigmaC;
/***** -freqsig: The +/-sigma cutoff to reject freq-domain chunks */
char freqsigmaP;
float freqsigma;
int freqsigmaC;
/***** -chanfrac: The fraction of bad channels that will mask a full interval */
char chantrigfracP;
float chantrigfrac;
int chantrigfracC;
/***** -intfrac: The fraction of bad intervals that will mask a full channel */
char inttrigfracP;
float inttrigfrac;
int inttrigfracC;
/***** -zapchan: Comma separated string (no spaces!) of channels to explicitly mask. Ranges are specified by min:max[:step] */
char zapchanstrP;
char* zapchanstr;
int zapchanstrC;
/***** -zapints: Comma separated string (no spaces!) of intervals to explicitly mask. Ranges are specified by min:max[:step] */
char zapintsstrP;
char* zapintsstr;
int zapintsstrC;
/***** -mask: File containing masking information to use */
char maskfileP;
char* maskfile;
int maskfileC;
/***** -ignorechan: Comma separated string (no spaces!) of channels to ignore (or file containing such string). Ranges are specified by min:max[:step] */
char ignorechanstrP;
char* ignorechanstr;
int ignorechanstrC;
/***** 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