7 #include <mix/General.h>
8 #include <ldb/vsp_trace.h>
10 #include <ldb/trselect.h>
77 #define GTA_SafeBase 1000
79 #define GABodySize (GTA_SafeBase+0)
80 #define GAEndTime (GTA_SafeBase+1)
81 #define GASamplesCnt (GTA_SafeBase+2)
82 #define GAStartTime (GTA_SafeBase+3)
83 #define GAStepTime (GTA_SafeBase+4)
84 #define GATimeWidth (GTA_SafeBase+5)
85 #define GATraceSize (GTA_SafeBase+6)
86 #define GATracesCnt (GTA_SafeBase+7)
88 # define TAComponent (GTA_SafeBase+8)
90 #define TA_Component TAComponent
92 # define TAProbeDepth (GTA_SafeBase+9)
94 #define TADeviceDepth TAProbeDepth
95 #define TA_ProbeDepth TAProbeDepth
96 #define TAIndex (GTA_SafeBase+10)
97 #define TAShotId (GTA_SafeBase+11)
98 #define TA_Actuality (GTA_SafeBase+12)
99 #define TA_Channel (GTA_SafeBase+13)
100 #define TA_Control (GTA_SafeBase+14)
101 #define TA_FNumber TAShotId
102 #define TA_Number (GTA_SafeBase+15)
103 #define TA_Xopv (GTA_SafeBase+16)
104 #define TA_Xspv (GTA_SafeBase+17)
105 #define TA_Yopv (GTA_SafeBase+18)
106 #define TA_Yspv (GTA_SafeBase+19)
107 #define TA_Zopv (GTA_SafeBase+20)
108 #define TA_Zspv (GTA_SafeBase+21)
109 #define TAFileIndex (GTA_SafeBase+22)
110 #define TA_Type (GTA_SafeBase+23)
114 #define itBackward (-1)
115 #define itForwardIter itForward
116 #define itBackwardIter itBackward
118 typedef int IterType;
119 typedef float AValue;
139 const char* szProject,
const char* szNmod);
142 void CloseTraceSet (
TraceSet* theTrSet);
147 int ReopenToEdit (
TraceSet theTrSet);
152 int ReopenToRead (
TraceSet theTrSet);
159 AValue GetGeneralAttr (
TraceSet theTrSet,
int gaName);
165 AValue GetTraceAttrDirectly (
TraceSet theTrSet, IterType it,
166 unsigned int index,
int taName);
169 const char* GetWellName (
TraceSet theTrSet);
172 int GetShotPoint (
TraceSet theTrSet);
177 IterType WhatIterNow (
TraceSet theTrSet);
195 unsigned int startIndex,
unsigned int trCnt);
197 int BackwardIter (
TraceSet theTrSet,
198 unsigned int startIndex,
unsigned int trCnt);
215 AValue GetTraceAttr (
TraceSet theTrSet,
int taName);
218 float* GetTraceData (
TraceSet theTrSet);
221 void ReadTraceDataDirectly (
TraceSet theTrSet, IterType it,
222 unsigned int index,
float* data);
225 float* AllocTraceDataDirectly (
TraceSet theTrSet, IterType it,
235 int WriteTraceDataDirectly (
TraceSet theTrSet, IterType it,
236 unsigned int index,
float* data);
245 int WriteTraceActualityDirectly (
TraceSet theTrSet, IterType it,
246 unsigned int index, Logic act);
249 unsigned int GetSampleIndex (
TraceSet theTrSet,
float time);
252 float GetAmaxOfTrace (
TraceSet theTrSet,
float* data);
255 void ApplyZeroThreshold (
TraceSet theTrSet,
float* data,
256 float zeroAmplLevel,
float Amax);
259 float* AllocEmptyTrace (
TraceSet theTrSet);
272 void AGCnormProc (
TraceSet theTrSet,
float gapWidth,
float fAGCDynAmplify,
float Amax,
273 float* srcData,
float* dstData,
float* dAmax);