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

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