forked from demorest/psrfits_utils
-
Notifications
You must be signed in to change notification settings - Fork 7
/
psrfits_subband_cmd.h
81 lines (75 loc) · 2.23 KB
/
psrfits_subband_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
#ifndef __psrfits_subband_cmd__
#define __psrfits_subband_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 {
/***** -dm: Dispersion measure to use for the subband de-dispersion */
char dmP;
double dm;
int dmC;
/***** -nsub: Number of output frequency subbands */
char nsubP;
int nsub;
int nsubC;
/***** -dstime: Power-of-2 number of samples to average in time */
char dstimeP;
int dstime;
int dstimeC;
/***** -startfile: Starting file number of sequence */
char startfileP;
int startfile;
int startfileC;
/***** -numfiles: Number of files to process */
char numfilesP;
int numfiles;
int numfilesC;
/***** -outbits: Number of output bits desired */
char outbitsP;
int outbits;
int outbitsC;
/***** -filetime: Desired length of the resulting files in sec */
char filetimeP;
float filetime;
int filetimeC;
/***** -filelen: Desired length of the resulting files in GB */
char filelenP;
float filelen;
int filelenC;
/***** -tgtstd: Target stdev. If 0, set in code based on outbits */
char tgtstdP;
float tgtstd;
int tgtstdC;
/***** -tgtavg: Target avg for UNSIGNED data. If 0, set in code based on outbits */
char tgtavgP;
float tgtavg;
int tgtavgC;
/***** -onlyI: Only output total intensity data */
char onlyIP;
/***** -adjustlevels: Adjust output scales and offsets every row (default is only row 0) */
char adjustlevelsP;
/***** -weights: Filename containing ASCII list of channels and weights to use */
char wgtsfileP;
char* wgtsfile;
int wgtsfileC;
/***** -bandpass: Filename containing ASCII list of channels, avgs, stdevs to use */
char bandpassfileP;
char* bandpassfile;
int bandpassfileC;
/***** -o: Basename for the output files */
char outputbasenameP;
char* outputbasename;
int outputbasenameC;
/***** 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);
#endif