HOPS
HOPS class reference
adata.h
Go to the documentation of this file.
1 #ifndef ADATA_H
2 #define ADATA_H
3 
4 #define CURRENT_VERSION 5
5 #define AFILEMX_VERSION 6
6 
7 typedef struct {
8  short version; /* Disk format version number */
9  char fname[6]; /* FMGR name without "<" */
10  short expt_no; /* Experiment serial # */
11  short extent_no; /* From HP-1000 system */
12  short size; /* file size in 256-byte blocks */
13  char corel_vers; /* Corel version used */
14  int procdate; /* Creation date for this extent */
15  int time_tag; /* Secs since 0h, Jan 1 1980 */
16  short ssec; /* scan time seconds, if available */
17  char source[32]; /* Source name */
18  char stations[20]; /* station list */
19  char root_id[7]; /* Unique 6-char root id code */
20  short archiv; /* A-file number */
21 
22  /* Added for version 5 */
23 
24  char scan_id[32]; /* From VEX, not necessarily scantime */
25 } rootsum;
26 
27 /* The total length of this structure in bytes is 120 */
28 
29 
30 
31 typedef struct {
32  short version; /* Disk format version number */
33  char fname[6]; /* FMGR name without "<" */
34  short expt_no; /* Experiment serial # */
35  short extent_no; /* From HP-1000 system */
36  short size; /* file size in 256-byte blocks */
37  char corel_vers; /* Corel version used */
38  int procdate; /* Creation date for this extent */
39  int time_tag; /* Secs since 0h, Jan 1 1980 */
40  short ssec; /* scan time seconds, if available */
41  char source[32]; /* Source name */
42  char baseline[3]; /* standard baseline id */
43  char quality; /* corel quality code */
44  short startsec; /* UT seconds of scheduled start */
45  short sduration; /* Scheduled duration of scan secs */
46  short corstart; /* Correlation start in secs after sch. strt */
47  short corstop; /* Correlation stop in secs after sch. strt */
48  short refdrive; /* Correlator tape drive # reference station */
49  short remdrive; /* Correlator tape drive # reference station */
50  short eqts; /* # of EQTs configured into this b'line (?) */
51  char freqs[3]; /* Frequencies processed */
52  float refclock_err; /* Ref station apriori clock error (usec) */
53  float clock_diff; /* Difference between station clocks (usec) */
54  char root_id[7]; /* Unique 6-char root id code */
55  int status; /* Correlation status bits */
56  short archiv; /* A-file number */
57 
58  /* Added for version 4 */
59 
60  int lags; /* Number of lags in correlation */
61 
62  /* Added for version 5 */
63 
64  char scan_id[32]; /* From VEX, not necessarily scantime */
65 } corelsum;
66 
67 /* The total length of this structure in bytes is 140 */
68 
69 
70 typedef struct {
71  short version; /* Disk format version number */
72  char fname[6]; /* FMGR name without "<" */
73  short expt_no; /* Experiment serial # */
74  short extent_no; /* From HP-1000 system */
75  short length; /* scan length in seconds */
76  char corel_vers; /* Corel version used */
77  int procdate; /* Creation date for this extent */
78  int time_tag; /* Seconds since 0h, Jan 1 1980 */
79  short ssec; /* scan time seconds, version 1 */
80  char source[32]; /* Source name */
81  char baseline[3]; /* standard baseline id */
82  char quality; /* frnge quality code */
83  char freq_code; /* type 2 only */
84  char mode; /* recording mode */
85  short no_freq; /* number of freqs through frnge */
86  short archiv; /* A-file number */
87  char reftape[9]; /* Reference tape label */
88  char remtape[9]; /* Remote tape label */
89  float amp; /* Correlation amplitude */
90  float snr; /* SNR from frnge, v1 clips at 9999 */
91  float resid_phas; /* residual earth-centered phase deg */
92  float sbdelay; /* resid singleband delay usec */
93  float mbdelay; /* resid multiband delay usec */
94  float delay_rate; /* resid delay rate psec/sec */
95  int esdesp; /* Various numbers describing data */
96  short epoch[2]; /* reference epoch mins,secs */
97  float total_phas; /* tot earth-centered phase deg */
98  double total_rate; /* tot delay rate usec/sec */
99  double total_mbdelay; /* tot multiband delay usec */
100  float total_sbresid; /* tot sbdelay - mbdelay usec */
101  float ambiguity; /* mbdelay ambiguity */
102  short pcals[4]; /* Phasecals deg, ref1,reflast, */
103  char root_id[7]; /* Unique 6-char root id code */
104 
105  /* Added for version 2 */
106 
107  double ref_freq; /* Reference frequency */
108  char datatype[3]; /* Origin and phase type */
109  float ref_elev; /* Reference elevation */
110  float rem_elev; /* Remote elevation */
111  float ref_az; /* Reference azimuth */
112  float rem_az; /* Remote azimuth */
113  float u; /* u in megalambda */
114  float v; /* v in megalambda */
115  short parents[4]; /* Parent corel extent(s) */
116 
117  /* Added for version 3 */
118 
119  short duration; /* Nominal duration of scan (secs) */
120  short offset; /* mean time minus scan_time (sec) */
121 
122  /* Added for version 4 */
123 
124  short scan_offset; /* time_tag minus scan time */
125  int lags; /* Number of lags in correlation*/
126  float phase_snr; /* When independent of amp. snr */
127  short srch_cotime; /* Coh. time for max. snr (sec) */
128  short noloss_cotime; /* Coh. time for negligible loss (sec) */
129 
130  /* Added for version 5 */
131 
132  char scan_id[32]; /* From VEX, not necessarily scantime */
133  char polarization[3]; /* RR, LL, RL or LR */
134  char errcode; /* for Mk3-style letter codes */
135 
136  /* Added for version 6 */
137 
138  float ra_hrs; /* derived from sky_coord */
139  float dec_deg; /* derived from sky_coord */
140 
141  float resid_delay; /* N*AMB + MBD to match SBD */
142 
143 } fringesum;
144 
145 /* The total length of this structure in bytes is 280 */
146 
147 
148 typedef struct {
149  short version; /* Disk format version number */
150  short expt_no; /* Experiment serial # */
151  int time_tag; /* Seconds since 0h, Jan 1 1980 */
152  char source[32]; /* Source name */
153  char freq_code; /* type 2 only */
154  char mode; /* recording mode */
155  char triangle[4]; /* Stations in closure triangle */
156  char root_id[3][7]; /* 3 comma-separated root id codes */
157  short extent_no[3]; /* From HP-1000 system */
158  short length[3]; /* scan lengths in seconds */
159  char scan_quality; /* closure quality code, scan-derived */
160  char data_quality; /* closure quality code, calc'd by average */
161  int esdesp; /* Max diff around triangle per digit */
162  float bis_amp; /* Bispectrum amplitude, e-12 */
163  float bis_snr; /* Bispectrum SNR */
164  float bis_phas; /* Bispectrum phase = closure phase */
165  float csbdelay; /* closure singleband delay usec */
166  float cmbdelay; /* closure multiband delay usec */
167  float ambiguity; /* mbdelay ambiguity */
168  float cdelay_rate; /* closure delay rate psec/sec */
169  float elevation[3]; /* By station */
170  float azimuth[3]; /* By station */
171  short epoch[2]; /* reference epoch mins,secs */
172  double ref_freq; /* Reference frequency */
173 
174  /* Added for version 3 */
175 
176  short duration; /* Nominal duration of scan (secs) */
177  short offset; /* mean time minus scan_time (sec) */
178  char datatype[3]; /* Meaning TBD */
179 
180  /* Added for version 4 */
181 
182  short scan_offset; /* time_tag minus scan time */
183  int lags; /* Number of lags in correlation */
184  short cotime; /* Coherence time of worst b'line */
185 
186  /* Added for version 5 */
187 
188  char scan_id[32]; /* From VEX, not necessarily scantime */
189 } trianglesum;
190 
191 /* The total length of this structure in bytes is 208 */
192 
193 
194 
195 typedef struct {
196  short version; /* Disk format version number */
197  short expt_no; /* Experiment serial # */
198  int time_tag; /* Seconds since 0h, Jan 1 1980 */
199  char source[32]; /* Source name */
200  char freq_code; /* type 2 only */
201  char mode; /* recording mode */
202  char quad[5]; /* Stations in closure quad */
203  char root_id[42]; /* 6 comma-separated root id codes */
204  short extent_no[6]; /* From HP-1000 system */
205  short length[6]; /* scan lengths in seconds */
206  char quality; /* closure quality code */
207  int esdesp; /* Max diff around quad per digit */
208  float cl_amp; /* Closure amplitude */
209  float elevation[4]; /* By station */
210  float azimuth[4]; /* By station */
211  short epoch[2]; /* reference epoch mins,secs */
212  double ref_freq; /* Reference frequency */
213 
214  /* Added for version 3 */
215 
216  short duration; /* Nominal duration of scan (secs) */
217  short offset; /* mean time minus scan_time (sec) */
218  char datatype[3]; /* Meaning TBD */
219 
220  /* Added for version 4 */
221 
222  short scan_offset; /* time_tag minus scan time */
223  int lags; /* Number of lags in correlation */
224 
225  /* Added for version 5 */
226 
227  char scan_id[32]; /* From VEX, not necessarily scantime */
228 } quadsum;
229 
230 /* The total length of this structure in bytes is 216 */
231 
232 #endif
float cdelay_rate
Definition: adata.h:168
short version
Definition: adata.h:149
short ssec
Definition: adata.h:40
int time_tag
Definition: adata.h:198
short offset
Definition: adata.h:120
char quality
Definition: adata.h:43
short cotime
Definition: adata.h:184
float u
Definition: adata.h:113
double total_rate
Definition: adata.h:98
int time_tag
Definition: adata.h:15
short corstart
Definition: adata.h:46
short version
Definition: adata.h:196
float refclock_err
Definition: adata.h:52
float total_phas
Definition: adata.h:97
short version
Definition: adata.h:8
float ambiguity
Definition: adata.h:101
int procdate
Definition: adata.h:38
short duration
Definition: adata.h:119
float total_sbresid
Definition: adata.h:100
short extent_no
Definition: adata.h:74
float dec_deg
Definition: adata.h:139
short refdrive
Definition: adata.h:48
short ssec
Definition: adata.h:16
short srch_cotime
Definition: adata.h:127
int time_tag
Definition: adata.h:151
float ref_az
Definition: adata.h:111
float resid_phas
Definition: adata.h:91
short expt_no
Definition: adata.h:150
float rem_az
Definition: adata.h:112
float csbdelay
Definition: adata.h:165
short length
Definition: adata.h:75
int status
Definition: adata.h:55
float clock_diff
Definition: adata.h:53
char data_quality
Definition: adata.h:160
short archiv
Definition: adata.h:56
float ambiguity
Definition: adata.h:167
float sbdelay
Definition: adata.h:92
float rem_elev
Definition: adata.h:110
int time_tag
Definition: adata.h:39
char corel_vers
Definition: adata.h:13
short expt_no
Definition: adata.h:197
char scan_quality
Definition: adata.h:159
short offset
Definition: adata.h:217
float cmbdelay
Definition: adata.h:166
char quality
Definition: adata.h:82
short offset
Definition: adata.h:177
short size
Definition: adata.h:36
int esdesp
Definition: adata.h:161
short ssec
Definition: adata.h:79
char freq_code
Definition: adata.h:200
char mode
Definition: adata.h:84
float snr
Definition: adata.h:90
short eqts
Definition: adata.h:50
char errcode
Definition: adata.h:134
float bis_snr
Definition: adata.h:163
short version
Definition: adata.h:32
short duration
Definition: adata.h:216
short expt_no
Definition: adata.h:10
short expt_no
Definition: adata.h:34
float phase_snr
Definition: adata.h:126
short size
Definition: adata.h:12
short scan_offset
Definition: adata.h:182
float mbdelay
Definition: adata.h:93
int procdate
Definition: adata.h:77
short noloss_cotime
Definition: adata.h:128
short no_freq
Definition: adata.h:85
short expt_no
Definition: adata.h:73
short scan_offset
Definition: adata.h:124
float bis_amp
Definition: adata.h:162
float cl_amp
Definition: adata.h:208
float delay_rate
Definition: adata.h:94
float amp
Definition: adata.h:89
char mode
Definition: adata.h:201
double ref_freq
Definition: adata.h:107
short extent_no
Definition: adata.h:35
float ra_hrs
Definition: adata.h:138
int procdate
Definition: adata.h:14
double ref_freq
Definition: adata.h:212
short sduration
Definition: adata.h:45
char corel_vers
Definition: adata.h:76
short duration
Definition: adata.h:176
short archiv
Definition: adata.h:20
int esdesp
Definition: adata.h:207
char corel_vers
Definition: adata.h:37
short scan_offset
Definition: adata.h:222
int lags
Definition: adata.h:60
int lags
Definition: adata.h:223
int lags
Definition: adata.h:125
short archiv
Definition: adata.h:86
char freq_code
Definition: adata.h:153
char mode
Definition: adata.h:154
char freq_code
Definition: adata.h:83
short version
Definition: adata.h:71
short extent_no
Definition: adata.h:11
short remdrive
Definition: adata.h:49
float v
Definition: adata.h:114
int esdesp
Definition: adata.h:95
int time_tag
Definition: adata.h:78
float bis_phas
Definition: adata.h:164
short startsec
Definition: adata.h:44
int lags
Definition: adata.h:183
float resid_delay
Definition: adata.h:141
double ref_freq
Definition: adata.h:172
char quality
Definition: adata.h:206
double total_mbdelay
Definition: adata.h:99
short corstop
Definition: adata.h:47
float ref_elev
Definition: adata.h:109
Definition: adata.h:31
Definition: adata.h:70
Definition: adata.h:195
Definition: adata.h:7
Definition: adata.h:148
int datatype
Definition: average.c:24
char * root_id(int, int, int, int, int)
Definition: applications/difx2mark4/src/root_id.c:59
Definition: difx2mark4.h:102
int baseline
Definition: fourfit3.c:62
fname
Definition: picking_aedit.py:14