OpendTect-6_4  6.4
seiscbvsimpfromothersurv.h
Go to the documentation of this file.
1 #ifndef seiscbvsimpfromothersurv_h
2 #define seiscbvsimpfromothersurv_h
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: Nanne Hemstra
8  Date: July 2015
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "seismod.h"
15 
16 #include "arrayndimpl.h"
17 #include "executor.h"
18 #include "fourier.h"
19 #include "position.h"
20 #include "trckeyzsampling.h"
21 #include "uistring.h"
22 
23 class ArrayNDWindow;
25 class IOObj;
26 class SeisTrc;
27 class SeisTrcWriter;
28 class SeisTrcInfo;
29 namespace Pos { class IdxPair2Coord; }
30 
33 public:
34 
35  enum Interpol { Sinc, Nearest };
36 
39 
40  uiString uiMessage() const { return tr("Importing CBVS"); }
41  od_int64 nrDone() const { return nrdone_; }
42  uiString uiNrDoneText() const { return tr("Traces handled"); }
43  od_int64 totalNr() const { return totnr_; }
44  int nextStep();
45 
46  uiString errMsg() const { return errmsg_; }
47  bool prepareRead(const char*);
48  void setPars(Interpol&,int,const TrcKeyZSampling&);
49  inline void setOutput( IOObj& obj ) { outioobj_ = &obj; }
50 
51  const TrcKeyZSampling& cubeSampling() const { return data_.tkzs_; }
52 
53 protected:
54 
55  const IOObj& inioobj_;
59 
61  mutable od_int64 totnr_;
63  const char* fullusrexp_;
64 
66 
67  mStruct(Seis) PosData
68  {
69  PosData()
70  : hsit_(0)
71  , tkzs_(false) {}
72 
73  BinID curbid_;
74  TrcKeyZSampling tkzs_;
76  };
77 
78  PosData data_, olddata_;
79 
80  int padfac_;
81  int sz_;
82  int newsz_;
83  int szz_;
84 
90 
91  bool createTranslators(const char*);
92  bool createWriter();
93 
94  bool findSquareTracesAroundCurbid(ObjectSet<SeisTrc>&) const;
95  void getCubeInfo(TypeSet<Coord>&,TypeSet<BinID>&) const;
96  float getInlXlnDist(const Pos::IdxPair2Coord&,bool,int) const;
97  SeisTrc* readTrc(const BinID&) const;
98  void sincInterpol(ObjectSet<SeisTrc>&) const;
99 };
100 
101 #endif
#define mExpClass(module)
Definition: commondefs.h:160
Does Fourier Transforms of any size.
Definition: fourier.h:30
Summary for a Seismic object.
Definition: segydirectdef.h:23
uiString errmsg_
Definition: seiscbvsimpfromothersurv.h:62
IOObj * outioobj_
Definition: seiscbvsimpfromothersurv.h:56
void setOutput(IOObj &obj)
Definition: seiscbvsimpfromothersurv.h:49
Definition: ioobj.h:58
#define mStruct(module)
Definition: commondefs.h:165
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Tapers the N-dimentional ArrayND with a windowFunction.
Definition: arrayndalgo.h:309
SeisTrcWriter * wrr_
Definition: seiscbvsimpfromothersurv.h:57
#define od_int64
Definition: plftypes.h:36
int newsz_
Definition: seiscbvsimpfromothersurv.h:82
uiString uiMessage() const
will be message() again in 7.x
Definition: seiscbvsimpfromothersurv.h:40
Definition: seiswrite.h:41
int padfac_
Definition: seiscbvsimpfromothersurv.h:80
Finds next BinID in TrcKeySampling; initializes to first position.
Definition: trckeysampling.h:189
Array3DImpl< float_complex > * fftarr_
Definition: seiscbvsimpfromothersurv.h:88
Definition: uistring.h:89
od_int64 totnr_
Definition: seiscbvsimpfromothersurv.h:61
Definition: seiscbvsimpfromothersurv.h:31
CBVSSeisTrcTranslator * tr_
Definition: seiscbvsimpfromothersurv.h:58
ObjectSet< SeisTrc > trcsset_
Definition: seiscbvsimpfromothersurv.h:86
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:35
od_int64 nrdone_
Definition: seiscbvsimpfromothersurv.h:60
Position.
Definition: commontypes.h:42
Definition: seiscbvsimpfromothersurv.h:35
Information for a seismic trace, AKA trace header info.
Definition: seisinfo.h:27
od_int64 totalNr() const
Definition: seiscbvsimpfromothersurv.h:43
int szz_
Definition: seiscbvsimpfromothersurv.h:83
uiString uiNrDoneText() const
will be nrDoneText() in 7.x
Definition: seiscbvsimpfromothersurv.h:42
Array3DImpl< float_complex > * arr_
Definition: seiscbvsimpfromothersurv.h:87
Interpol
Definition: seiscbvsimpfromothersurv.h:35
Interpol interpol_
Definition: seiscbvsimpfromothersurv.h:65
ArrayNDWindow * taper_
Definition: seiscbvsimpfromothersurv.h:89
const char * fullusrexp_
Definition: seiscbvsimpfromothersurv.h:63
od_int64 nrDone() const
Definition: seiscbvsimpfromothersurv.h:41
uiString errMsg() const
Definition: seiscbvsimpfromothersurv.h:46
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:30
Seismic trace.
Definition: seistrc.h:34
BufferString errmsg_
Definition: horizontracker.h:119
PosData olddata_
Definition: seiscbvsimpfromothersurv.h:76
const IOObj & inioobj_
Definition: seiscbvsimpfromothersurv.h:55
Fourier::CC * fft_
Definition: seiscbvsimpfromothersurv.h:85
Encapsulates linear transform from (i,j) index to (x,y) coordinates.
Definition: posidxpair2coord.h:26
Definition: seiscbvs.h:26
Specification to enable chunkwise execution of a process.
Definition: executor.h:39
int sz_
Definition: seiscbvsimpfromothersurv.h:81
const TrcKeyZSampling & cubeSampling() const
Definition: seiscbvsimpfromothersurv.h:51

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