forked from scottransom/presto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprepdata_cmd.h
93 lines (86 loc) · 2.87 KB
/
prepdata_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
#ifndef __prepdata_cmd__
#define __prepdata_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;
/***** -window: Window correlator lags with a Hamming window before FFTing */
char windowP;
/***** -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;
/***** -nobary: Do not barycenter the data */
char nobaryP;
/***** -shorts: Use short ints for the output data instead of floats */
char shortsP;
/***** -numout: Output this many values. If there are not enough values in the original data file, will pad the output file with the average value */
char numoutP;
long numout;
int numoutC;
/***** -downsamp: The number of neighboring bins to co-add */
char downsampP;
int downsamp;
int downsampC;
/***** -offset: Number of spectra to offset into as starting data point */
char offsetP;
long offset;
int offsetC;
/***** -start: Starting point of the processing as a fraction of the full obs */
char startP;
double start;
int startC;
/***** -dm: The dispersion measure to de-disperse (cm^-3 pc) */
char dmP;
double dm;
int dmC;
/***** -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