15 #define SEGD_HdrSize 32
16 #define SEGD_GH1_Size SEGD_HdrSize
17 #define SEGD_GH2_Size SEGD_HdrSize
18 #define SEGD_GHN_Size SEGD_HdrSize
19 #define SEGD_CS_Size SEGD_HdrSize
20 #define SEGD_SS_Size SEGD_HdrSize
21 #define SEGD_XH_Size SEGD_HdrSize
22 #define SEGD_SOS_Size 4
23 #define SEGD_TW_Size 4
24 #define SEGD_DTH_Size 20
25 #define SEGD_ETH_Size SEGD_HdrSize
28 #define SEGD_SOS_TWI (1<<0)
29 #define SEGD_SOS_ITB (1<<1)
30 #define SEGD_SOS_DP (1<<2)
36 #define DEC2n(x1,x2) ((x1)*10+(x2))
39 #define DEC3n(x1,x2,x3) (DEC2n(x1,x2)*10+(x3))
42 #define DEC4n(x1,x2,x3,x4) (DEC3n(x1,x2,x3)*10+(x4))
47 #define BCDn(x,d) (((x)&(0x0f<<(4*(d))))>>(4*(d)))
51 #define BCDb(x) (DEC2n(BCDn(x,1),BCDn(x,0)))
55 #define BCD3b(x1,x2,x3) (BCDb(x1)*10000+BCDb(x2)*100+BCDb(x3))
63 #define SEGD_GH1_FILE_NUMBER 0
64 #define SEGD_GH1_FORMAT_CODE 2
65 #define SEGD_GH1_GENERAL_CONSTANTS 4
66 #define SEGD_GH1_YEAR 10
67 #define SEGD_GH1_GHNUM_DAY 11
68 #define SEGD_GH1_DAY 12
69 #define SEGD_GH1_HOUR 13
70 #define SEGD_GH1_MINUTE 14
71 #define SEGD_GH1_SECOND 15
72 #define SEGD_GH1_MANUFACTURER_CODE 16
73 #define SEGD_GH1_MANUFACTURER_FORMAT 17
74 #define SEGD_GH1_BYTES_PER_SCAN 18
75 #define SEGD_GH1_BASE_SCAN_INTERVAL 22
76 #define SEGD_GH1_POLARITY_SB_EXP 23
77 #define SEGD_GH1_SCAN_BLOCK 24
78 #define SEGD_GH1_REC_TYPE_REC_LEN 25
79 #define SEGD_GH1_RECORD_LENGTH 26
80 #define SEGD_GH1_SCAN_TYPES 27
81 #define SEGD_GH1_CHANNEL_SETS 28
82 #define SEGD_GH1_SKEW_BLOCKS 29
83 #define SEGD_GH1_EXTENDED_HDR_BLOCKS 30
84 #define SEGD_GH1_EXTERNAL_HDR_BLOCKS 31
92 #define SEGD_GH2_FILE_NUMBER 0
93 #define SEGD_GH2_CHANNEL_SETS 3
94 #define SEGD_GH2_EXTENDED_HDR_BLOCKS 5
95 #define SEGD_GH2_EXTERNAL_HDR_BLOCKS 7
96 #define SEGD_GH2_REVISION_MAJOR 10
97 #define SEGD_GH2_REVISION_MINOR 11
98 #define SEGD_GH2_GENERAL_TRAILER_BLOCKS 12
99 #define SEGD_GH2_RECORD_LENGTH 14
100 #define SEGD_GH2_GH_BLOCK_NUMBER 18
108 #define SEGD_GHN_SRC_LINE_NUM_CARD 3
109 #define SEGD_GHN_SRC_LINE_NUM_FRAC 6
110 #define SEGD_GHN_SRC_POINT_NUM_CARD 8
111 #define SEGD_GHN_SRC_POINT_NUM_FRAC 11
112 #define SEGD_GHN_SRC_POINT_INDEX 13
113 #define SEGD_GHN_PHASE_CONTROL 14
114 #define SEGD_GHN_VIBRATOR_TYPE 15
115 #define SEGD_GHN_PHASE_ANGLE 16
116 #define SEGD_GHN_GH_BLOCK_NUMBER 18
117 #define SEGD_GHN_SRC_SET_NUMBER 19
125 #define SEGD_CS_SCAN_TYPE_NUMBER 0
126 #define SEGD_CS_CHANNEL_SET_NUMBER 1
127 #define SEGD_CS_CHANNEL_SET_START_TIME 2
128 #define SEGD_CS_CHANNEL_SET_END_TIME 4
129 #define SEGD_CS_DESCALE_MULTIPLIER 6
130 #define SEGD_CS_NUMBER_OF_CHANNELS 8
131 #define SEGD_CS_CHANNEL_TYPE 10
132 #define SEGD_CS_SAMPLES_PER_CHAN_GAIN 11
133 #define SEGD_CS_ALIAS_FILTER_FREQ 12
134 #define SEGD_CS_ALIAS_FILTER_SLOPE 14
135 #define SEGD_CS_LOW_CUT_FILTER 16
136 #define SEGD_CS_LOW_CUT_FILTER_SLOPE 18
137 #define SEGD_CS_1ST_NOTCH_FILTER 20
138 #define SEGD_CS_2ND_NOTCH_FILTER 22
139 #define SEGD_CS_3RD_NOTCH_FILTER 24
140 #define SEGD_CS_EXTENDED_CS_NUMBER 26
141 #define SEGD_CS_EXTENDED_HDR_FLAG 28
142 #define SEGD_CS_VERTICAL_STACK 29
143 #define SEGD_CS_STREAMER_CABLE_NUMBER 30
144 #define SEGD_CS_ARRAY_FORMING 31
152 #define SEGD_DTH_FILE_NUMBER 0
153 #define SEGD_DTH_SCAN_TYPE_NUMBER 2
154 #define SEGD_DTH_CHANNEL_SET_NUMBER 3
155 #define SEGD_DTH_TRACE_NUMBER 4
156 #define SEGD_DTH_FIRST_TIMING_WORD 6
157 #define SEGD_DTH_TRACE_HDR_EXTENSIONS 9
158 #define SEGD_DTH_SAMPLE_SKEW 10
159 #define SEGD_DTH_TRACE_EDIT 11
160 #define SEGD_DTH_TIME_BREAK_WINDOW 12
161 #define SEGD_DTH_EXT_CHANNEL_SET_NUMBER 15
162 #define SEGD_DTH_EXT_FILE_NUMBER 17
169 #define SEGD_ETH_RECEIVER_LINE_NUMBER 0
170 #define SEGD_ETH_RECEIVER_POINT_NUMBER 3
171 #define SEGD_ETH_RECEIVER_POINT_INDEX 6
172 #define SEGD_ETH_NUMBER_OF_SAMPLES 7
181 #include <mix/Types.h>
187 SEGD_FC_0015 = 0x0015,
188 SEGD_FC_0022 = 0x0022,
189 SEGD_FC_0042 = 0x0042,
190 SEGD_FC_0024 = 0x0024,
191 SEGD_FC_0044 = 0x0044,
192 SEGD_FC_0036 = 0x0036,
193 SEGD_FC_0038 = 0x0038,
194 SEGD_FC_0048 = 0x0048,
195 SEGD_FC_0058 = 0x0058,
197 SEGD_FC_8015 = 0x8015,
198 SEGD_FC_8022 = 0x8022,
199 SEGD_FC_8042 = 0x8042,
200 SEGD_FC_8024 = 0x8024,
201 SEGD_FC_8044 = 0x8044,
202 SEGD_FC_8036 = 0x8036,
203 SEGD_FC_8038 = 0x8038,
204 SEGD_FC_8048 = 0x8048,
205 SEGD_FC_8058 = 0x8058
212 SEGD_RT_TestRecord = 2,
213 SEGD_RT_ParallelChannelTest = 4,
214 SEGD_RT_DirectChannelTest = 6,
215 SEGD_RT_NormalRecord = 9,
223 SEGD_VT_NotRecorded = 0,
224 SEGD_VT_PWaveVibrator = 1,
225 SEGD_VT_SWaveVibrator = 2,
226 SEGD_VT_MarineVibrator = 3,
234 SEGD_CT_ExternalData = 6,
235 SEGD_CT_TimeCounter = 5,
236 SEGD_CT_WaterBreak = 4,
238 SEGD_CT_TimeBreak = 2,
241 SEGD_CT_SignatureUnfiltered = 8,
242 SEGD_CT_SignatureFiltered = 9,
243 SEGD_CT_AuxiliaryDataTrailer = 12
250 SEGD_GC_Undefined = 0,
251 SEGD_GC_IndividualAGC = 1,
252 SEGD_GC_GangedAGC = 2,
253 SEGD_GC_FixedGain = 3,
254 SEGD_GC_ProgrammedGain = 4,
255 SEGD_GC_BinaryGainControl = 8,
256 SEGD_GC_IFPGainControl = 9
263 SEGD_TE_NoEditApplied = 0,
264 SEGD_TE_DeadZeroChannels = 1,
267 SEGD_TE_ZeroedChannels = 2
281 int general_constants[12];
288 int manufacturer_code;
289 int manufacturer_format;
296 SEGD_RecordType record_type;
343 int channel_set_number;
346 float descale_multiplier;
347 int number_of_channels;
348 SEGD_ChannelType channel_type;
351 SEGD_GainControl gain_control;
352 int alias_filter_freq;
353 int alias_filter_slope;
355 int low_cut_filter_slope;
356 int notch_filter_1st;
357 int notch_filter_2nd;
358 int notch_filter_3rd;
359 int extended_hdr_flag;
361 int streamer_cable_number;
383 int scan_type_number;
384 int channel_set_number;
399 int receiver_line_number;
400 int receiver_point_number;
401 int receiver_point_index;
402 int number_of_samples;
408 #include <mix/misc.h>
410 #ifndef __segd_file_vars
413 extern unsigned SEGD_FormatCode_Labels_n;
415 extern unsigned SEGD_RecordType_Labels_n;
417 extern unsigned SEGD_VibratorType_Labels_n;
419 extern unsigned SEGD_ChannelType_Labels_n;
421 extern unsigned SEGD_GainControl_Labels_n;
423 extern unsigned SEGD_ManCodes_n;
425 extern unsigned SEGD_TraceEdit_Labels_n;
int subscan_number
Definition: segd_file.h:349
int samples
Definition: segd_file.h:374
unsigned char * ss
Definition: segd_file.h:373
int channel_set_start_time
Definition: segd_file.h:344
int ss_n
Definition: segd_file.h:372
Definition: segd_file.h:340
SEGD_ChannelSet * cs
Definition: segd_file.h:371
int scan_type_number
Definition: segd_file.h:342
int channel_set_end_time
Definition: segd_file.h:345
Definition: segd_file.h:368
int cs_n
Definition: segd_file.h:370