xstruct.h
来自「该程序是用vc开发的对动态数组进行管理的DLL」· C头文件 代码 · 共 735 行 · 第 1/2 页
H
735 行
18 = Amplitude of complex trace from 0 to Nyquist 19 = Phase of complex trace from 0 to Nyquist 21 = Wavenumber time domain (k-t) 22 = Wavenumber frequency (k-omega) 23 = Envelope of the complex time trace 24 = Phase of the complex time trace 25 = Frequency of the complex time trace 30 = Depth-Range (z-x) traces 43 = Seismic Data, Vertical Component 44 = Seismic Data, Horizontal Component 1 45 = Seismic Data, Horizontal Component 2 46 = Seismic Data, Radial Component 47 = Seismic Data, Transverse Component 101 = Seismic data packed to bytes (by supack1) 102 = Seismic data packed to 2 bytes (by supack2) */ short nvs; /* number of vertically summed traces (see vscode in bhed structure) */ short nhs; /* number of horizontally summed traces (see vscode in bhed structure) */ short duse; /* data use: 1 = production 2 = test */ int offset; /* distance from source point to receiver group (negative if opposite to direction in which the line was shot) */ int gelev; /* receiver group elevation from sea level (above sea level is positive) */ int selev; /* source elevation from sea level (above sea level is positive) */ int sdepth; /* source depth (positive) */ int gdel; /* datum elevation at receiver group */ int sdel; /* datum elevation at source */ int swdep; /* water depth at source */ int gwdep; /* water depth at receiver group */ short scalel; /* scale factor for previous 7 entries with value plus or minus 10 to the power 0, 1, 2, 3, or 4 (if positive, multiply, if negative divide) */ short scalco; /* scale factor for next 4 entries with value plus or minus 10 to the power 0, 1, 2, 3, or 4 (if positive, multiply, if negative divide) */ int sx; /* X source coordinate */ int sy; /* Y source coordinate */ int gx; /* X group coordinate */ int gy; /* Y group coordinate */ short counit; /* coordinate units code: for previous four entries 1 = length (meters or feet) 2 = seconds of arc (in this case, the X values are longitude and the Y values are latitude, a positive value designates the number of seconds east of Greenwich or north of the equator */ short wevel; /* weathering velocity */ short swevel; /* subweathering velocity */ short sut; /* uphole time at source */ short gut; /* uphole time at receiver group */ short sstat; /* source static correction */ short gstat; /* group static correction */ short tstat; /* total static applied */ short laga; /* lag time A, time in ms between end of 240- byte trace identification header and time break, positive if time break occurs after end of header, time break is defined as the initiation pulse which maybe recorded on an auxiliary trace or as otherwise specified by the recording system */ short lagb; /* lag time B, time in ms between the time break and the initiation time of the energy source, may be positive or negative */ short delrt; /* delay recording time, time in ms between initiation time of energy source and time when recording of data samples begins (for deep water work if recording does not start at zero time) */ short muts; /* mute time--start */ short mute; /* mute time--end */ unsigned short ns; /* number of samples in this trace */ unsigned short dt; /* sample interval; in micro-seconds */ short gain; /* gain type of field instruments code: 1 = fixed 2 = binary 3 = floating point 4 ---- N = optional use */ short igc; /* instrument gain constant */ short igi; /* instrument early or initial gain */ short corr; /* correlated: 1 = no 2 = yes */ short sfs; /* sweep frequency at start */ short sfe; /* sweep frequency at end */ short slen; /* sweep length in ms */ short styp; /* sweep type code: 1 = linear 2 = cos-squared 3 = other */ short stas; /* sweep trace length at start in ms */ short stae; /* sweep trace length at end in ms */ short tatyp; /* taper type: 1=linear, 2=cos^2, 3=other */ short afilf; /* alias filter frequency if used */ short afils; /* alias filter slope */ short nofilf; /* notch filter frequency if used */ short nofils; /* notch filter slope */ short lcf; /* low cut frequency if used */ short hcf; /* high cut frequncy if used */ short lcs; /* low cut slope */ short hcs; /* high cut slope */ short year; /* year data recorded */ short day; /* day of year */ short hour; /* hour of day (24 hour clock) */ short minute; /* minute of hour */ short sec; /* second of minute */ short timbas; /* time basis code: 1 = local 2 = GMT 3 = other */ short trwf; /* trace weighting factor, defined as 1/2^N volts for the least sigificant bit */ short grnors; /* geophone group number of roll switch position one */ short grnofr; /* geophone group number of trace one within original field record */ short grnlof; /* geophone group number of last trace within original field record */ short gaps; /* gap size (total number of groups dropped) */ short otrav; /* overtravel taper code: 1 = down (or behind) 2 = up (or ahead) */ /* local assignments */ float d1; /* sample spacing for non-seismic data */ float f1; /* first sample location for non-seismic data */ float d2; /* sample spacing between traces */ float f2; /* first trace location */ float ungpow; /* negative of power used for dynamic range compression */ float unscale; /* reciprocal of scaling factor to normalize range */ int ntr; /* number of traces */ short mark; /* mark selected traces */ short shortpad; /* alignment padding */ short unass[12]; /* unassigned--NOTE: last entry causes a break in the word alignment, if we REALLY want to maintain 240 bytes, the following entry should be an odd number of short/UINT2 OR do the insertion above the "mark" keyword entry */ int index;} XSegyhead;typedef struct { /* bhed - binary header */ int jobid; /* 1 job identification number */ int lino; /* 2 line number (only one line per reel) */ int reno; /* 3 reel number */ short ntrpr; /* 4 number of data traces per record */ short nart; /*5 number of auxiliary traces per record */ unsigned short hdt; /* 6 sample interval in micro secs for this reel */ unsigned short dto; /* 7 same for original field recording */ unsigned short hns; /* 8 number of samples per trace for this reel */ unsigned short nso; /* 9 same for original field recording */ short format; /* 10 data sample format code: 1 = floating point (4 bytes) 2 = fixed point (4 bytes) 3 = fixed point (2 bytes) 4 = fixed point w/gain code (4 bytes) */ short fold; /* 11 CDP fold expected per CDP ensemble */ short tsort; /* 12 trace sorting code: 1 = as recorded (no sorting) 2 = CDP ensemble 3 = single fold continuous profile 4 = horizontally stacked */ short vscode; /* 13 vertical sum code: 1 = no sum 2 = two sum ... N = N sum (N = 32,767) */ short hsfs; /* 14 sweep frequency at start */ short hsfe; /* 15 sweep frequency at end */ short hslen; /* 16 sweep length (ms) */ short hstyp; /* 17 sweep type code: 1 = linear 2 = parabolic 3 = exponential 4 = other */ short schn; /* 18 trace number of sweep channel */ short hstas; /* 19 sweep trace taper length at start if tapered (the taper starts at zero time and is effective for this length) */ short hstae; /* 20 sweep trace taper length at end (the ending taper starts at sweep length minus the taper length at end) */ short htatyp; /* 21 sweep trace taper type code: 1 = linear 2 = cos-squared 3 = other */ short hcorr; /* 22 correlated data traces code: 1 = no 2 = yes */ short bgrcv; /* 23 binary gain recovered code: 1 = yes 2 = no */ short rcvm; /* 24 amplitude recovery method code: 1 = none 2 = spherical divergence 3 = AGC 4 = other */ short mfeet; /*25 measurement system code: 1 = meters 2 = feet */ short polyt; /* 26 impulse signal polarity code: 1 = increase in pressure or upward geophone case movement gives negative number on tape 2 = increase in pressure or upward geophone case movement gives positive number on tape */ short vpol; /* 27 vibratory polarity code: code seismic signal lags pilot by 1 337.5 to 22.5 degrees 2 22.5 to 67.5 degrees 3 67.5 to 112.5 degrees 4 112.5 to 157.5 degrees 5 157.5 to 202.5 degrees 6 202.5 to 247.5 degrees 7 247.5 to 292.5 degrees 8 293.5 to 337.5 degrees */ short hunass[170]; /* unassigned */} XSegybhead;typedef struct // 简化道头数组结构{ int cdp; // cdp Number int ep; // shot Number int gx; // X group coordinate int gy; // Y group coordinate int tl; // trace Number int XLine; int InLine; int Index; // from 0 to MaxTrace,physical position}Xinfo_trace ; // 定义的简化道头结构指针typedef struct // 检索后简化道头数组生成的顺序道集结构{ int No; // cdp,ep,gx,gy,tl,道集的标号 int Index; // physical position}XInfo_query; // 定义的顺序道集结构指针#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?