OpendTect-6_4  6.4
seistrcprop.h
Go to the documentation of this file.
1 #ifndef seistrcprop_h
2 #define seistrcprop_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: A.H. Bril
9  Date: 10-5-1995
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "seismod.h"
16 #include "seistype.h"
17 #include "valseriesevent.h"
18 class SeisTrc;
19 class Scaler;
20 #define mFlValSerEv ValueSeriesEvent<float,float>
21 
22 
26 {
27 public:
28  SeisTrcPropCalc( const SeisTrc& t, int ic=0 )
29  : trc(t), curcomp(ic) {}
30 
31  void setComponent( int i ) { curcomp = i; }
32 
34  find(VSEvent::Type,Interval<float>,int occ=1) const;
35  double corr(const SeisTrc&,const SampleGate&,bool alpick=false) const;
36  double dist(const SeisTrc&,const SampleGate&,bool alpick=false) const;
37  float getFreq(float z) const;
38  float getFreq(int isamp) const;
39  float getPhase(float zpos,bool indegrees=false) const;
40  float getPhase(int isamp,bool indegrees=false) const;
41 
42  const SeisTrc& trace() const { return trc; }
43 
44 protected:
45 
46  const SeisTrc& trc;
47  int curcomp;
48 
49 };
50 
51 
57 {
58 public:
59  SeisTrcPropChg( SeisTrc& t, int ic=-1 )
60  : SeisTrcPropCalc(t,ic) {}
61 
62  void stack(const SeisTrc&,bool alongref=false,float wght=1);
63  void scale(float fac,float shft=0);
64  void scale(const Scaler&);
65  void normalize(bool aroundzero);
66  void corrNormalize();
67  void removeAVG();
68  void mute(float pos,float taperlen) {topMute(pos,taperlen);}
69  void topMute(float,float);
70  void tailMute(float,float);
71 
72  SeisTrc& trace() { return mtrc(); }
73 
74 protected:
75 
76  inline SeisTrc& mtrc() { return const_cast<SeisTrc&>(trc); }
77 
78 };
79 
80 
81 #endif
#define mExpClass(module)
Definition: commondefs.h:160
Summary for a Seismic object.
Definition: segydirectdef.h:23
int curcomp
Definition: seistrcprop.h:47
SeisTrc & mtrc()
Definition: seistrcprop.h:76
void mute(float pos, float taperlen)
Definition: seistrcprop.h:68
Event in value series.
Definition: valseriesevent.h:40
changes properties of one or all trace components. Component -1 (the default) changes all components...
Definition: seistrcprop.h:56
Scaling of floating point numbers.
Definition: scaler.h:33
void setComponent(int i)
Definition: seistrcprop.h:31
const T * find(const ObjectSet< T > &os, const S &val)
Get const object in set.
Definition: objectset.h:183
SeisTrc & trace()
Definition: seistrcprop.h:72
SeisTrcPropCalc(const SeisTrc &t, int ic=0)
Definition: seistrcprop.h:28
Seismic trace.
Definition: seistrc.h:34
const SeisTrc & trc
Definition: seistrcprop.h:46
const SeisTrc & trace() const
Definition: seistrcprop.h:42
calculates properties of a trace component
Definition: seistrcprop.h:25
virtual double scale(double) const =0
SeisTrcPropChg(SeisTrc &t, int ic=-1)
Definition: seistrcprop.h:59
Type
Definition: valseriesevent.h:26

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019