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

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