DECM module

It performs SPYKING or PREDICTIVE

 

DECONVOLUTION

 

.....Trace  = Seismic Trace to Deconvolve                                 

.....LenOpd = Length in point of Deconvolution Operator                   

.....GapLen = Length in point of Predictive Gap                           

.....PreWhi = 0.0 < PreWhitening Value <= 1.0                             

const

   LenDef = 128;

   MaxPtf = 1024;

 

var

   LenOpD,LenGap,NumLag,LenFil,LenSwp   : integer;

   E                                    : real;

   DeconRsp                             : DataRea;

Begin

   E:=0.0;

.....Operator Length     = INT(Len.MSec/SampleRate) = LENOPD              

.....Predictive gap      = INT(Gap.MSec/SampleRate) = LENGAP              

.....PreWhitening        =  0.0 < PREWHI < 1.0                            

   LenOpD:=OpdLen;

   if (LenOpd>MaxPtf) then LenOpd:=MaxPtf;

   if (LenOpd<=1)     then LenOpd:=LenDef;

   LenGap:=GapLen;

   if ((LenGap < 1) or ((LenOpd + LenGap) > NCamp)) then LenGap:=1;

.....It computes NumLag Items of Autocorrelation Function .................

   NumLag:=LenOpD + LenGap;

   CROSSAUTO(NCamp,NCamp,NumLag,Trace,Trace,Autfun);

.....It Normalizes relative to (1+p)r0 AutoCorrelation Function ............

   NRMAUT(NumLag,LenGap,PreWhi,Autfun,Gamma) ;

.....It Computes Prediction Filter Coefficients (A0,A1,.....,An-1)        

..... |  (1+p)r0   r1    .     .     .    rn-1  | | A0   | | ra     |     

..... |     r1   (1+p)r0 .     .     .    rn-2  | | A1   | | ra+1   |     

..... |     r2     r1  (1+p)r0 .     .    rn-3  |*|  .   |=|  .     |     

..... |     .      .     .     .     .     .    | |  .   | |  .     |     

..... |   rn-1    rn-2   .     .     .  (1+p)r0 | | An-1 | | ra+n-1 |     

.....  a = LENGAP , p = PREWHI, rn = nth termine dell' AutoCorrelazione   

   LEVINSON (LenOpD,AutFun,Gamma,A,E);

.....It Computes Error Prediction Filter:

.....  (LenGap-1 Zeri)

.....(1,0,..........0,-A0,-A1,....,-An-1)

   ERRPRF (LenGap,LenOpD,A,LenFil,DeconRsp);

.....It Convolves Signal with Filter ......................................

       LenSwp:=NCamp+LenFil-1;

   CONVOLUTION (NCamp,LenFil,LenSwp,false,Trace,DeconRsp,Trace);