OpendTect  7.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
Attrib::DipFilter Class Reference

Dip filtering Attribute. More...

Inheritance diagram for Attrib::DipFilter:
[legend]

Public Member Functions

 DipFilter (Desc &)
 
- Public Member Functions inherited from Attrib::Provider
void addLocalCompZIntervals (const TypeSet< Interval< int > > &)
 
virtual void adjust2DLineStoredVolume ()
 
int alignInputs (ObjectSet< Provider > &)
 
int comparePosAndAlign (Provider *, bool, Provider *, bool, bool)
 
virtual bool compDistBetwTrcsStats (bool force=false)
 
void computeNewStartPos (BinID &)
 
void computeRefStep ()
 
void computeRefZ0 ()
 
void doParallel (bool yn)
 
void enableAllOutputs (bool yn=true)
 
void enableOutput (int output, bool yn=true)
 
uiString errMsg () const
 
virtual void fillDataPackWithTrc (RegularSeisDataPack *) const
 
float getApplicableCrlDist (bool) const
 
virtual void getCompNames (BufferStringSet &) const
 
virtual void getCompOutputIDs (TypeSet< int > &) const
 
Coord getCoord (const BinID &) const
 
Coord getCurrentCoord () const
 
BinID getCurrentPosition () const
 
virtual const SeisTrcInfogetCurrentTrcInfo () const
 
const DataHoldergetData (const BinID &relpos=BinID(0, 0), int idx=0)
 
const DataHoldergetDataDontCompute (const BinID &relpos) const
 
bool getDataUnavailableFlag () const
 
const BinIDgetDesBufStepout () const
 
DescgetDesc ()
 
const DescgetDesc () const
 
const TrcKeyZSamplinggetDesiredVolume () const
 
virtual float getDistBetwTrcs (bool, const char *linenm=0) const
 
BinID getElementStepout () const
 
virtual Pos::GeomID getGeomID () const
 
ObjectSet< Provider > & getInputs ()
 
const TrcKeyZSamplinggetPossibleVolume () const
 
virtual bool getPossibleVolume (int outp, TrcKeyZSampling &)
 
float getRefStep () const
 
float getRefZ0 () const
 
const BinIDgetReqBufStepout () const
 
virtual BinID getStepoutStep () const
 
int getTotalNrPos (bool)
 
BinID getTrcInfoBid () const
 
virtual void initSteering ()
 
bool is2D () const
 
virtual bool isOK () const
 
bool isOutputEnabled (int output) const
 
virtual bool isSingleTrace () const
 
const TypeSet< Interval< int > > & localCompZIntervals () const
 
virtual int moveToNextTrace (BinID startpos=BinID::udf(), bool firstcheck=false)
 
virtual bool needStoredInput () const
 
int nrOutputs () const
 
virtual void prepPriorToBoundsCalc ()
 
virtual bool prepPriorToOutputSetup ()
 
virtual void prepSteeringForStepout (const BinID &)
 
void resetDesiredVolume ()
 
void resetMoved ()
 
void resetZIntervals ()
 
void setCurLineName (const char *)
 
virtual bool setCurrentPosition (const BinID &)
 
void setDataUnavailableFlag (bool yn)
 
virtual void setDesBufStepout (const BinID &, bool wait=false)
 
void setDesiredVolume (const TrcKeyZSampling &)
 
void setExactZ (const TypeSet< float > &)
 
void setExtraZ (const Interval< float > &)
 
virtual void setGeomID (Pos::GeomID)
 
void setNeedInterpol (bool)
 
void setOutputInterestSize (bool preserve=false)
 
void setPossibleVolume (const TrcKeyZSampling &)
 
virtual void setRdmPaths (const TypeSet< BinID > &truepath, const TypeSet< BinID > &snappedpath)
 For directional attributes. More...
 
void setRefStep (float step)
 
void setRefZ0 (float z0)
 
virtual void setReqBufStepout (const BinID &, bool wait=false)
 
void setSelData (const Seis::SelData *)
 
void setUseSC ()
 
virtual void updateCSIfNeeded (TrcKeyZSampling &) const
 
void updateCurrentInfo ()
 
void updateInputReqs (int input=-1)
 
virtual void updateStorageReqs (bool all=false)
 
virtual bool usesTracePosition () const
 
- Public Member Functions inherited from RefCount::Referenced
void addObserver (WeakPtrBase *obs)
 Not for normal use. May become private. More...
 
int nrRefs () const
 Only for expert use. More...
 
void ref () const
 
bool refIfReffed () const
 Don't use in production, for debugging. More...
 
void removeObserver (WeakPtrBase *obs)
 Not for normal use. May become private. More...
 
bool tryRef () const
 Not for normal use. May become private. More...
 
void unRef () const
 
void unRefNoDelete () const
 

Static Public Member Functions

static const char * attribName ()
 
static const char * filteraziStr ()
 
static const char * filterTypeNamesStr (int)
 
static void initClass ()
 
static const char * maxaziStr ()
 
static const char * maxvelStr ()
 
static const char * minaziStr ()
 
static const char * minvelStr ()
 
static const char * sizeStr ()
 
static const char * taperlenStr ()
 
static const char * typeStr ()
 
- Static Public Member Functions inherited from Attrib::Provider
static Providercreate (Desc &, uiString &errmsg)
 
static uiString prepare (Desc &)
 
- Static Public Member Functions inherited from RefCount::Referenced
static bool isSane (const Referenced *)
 

Protected Member Functions

 ~DipFilter ()
 
bool allowParallelComputation () const override
 
bool computeData (const DataHolder &, const BinID &relpos, int t0, int nrsamples, int threadid) const override
 
const BinIDdesStepout (int input, int output) const override
 
const Interval< int > * desZSampMargin (int, int) const override
 
bool getInputData (const BinID &, int idx) override
 
bool getInputOutput (int input, TypeSet< int > &res) const override
 
bool initKernel ()
 
void prepareForComputeData () override
 
float taper (float) const
 
- Protected Member Functions inherited from Attrib::Provider
 Provider (Desc &)
 
virtual ~Provider ()
 
void addParent (Provider *prov)
 
virtual bool checkInpAndParsAtStart ()
 
void computeDesInputCube (int inp, int out, TrcKeyZSampling &, bool usestepout=true) const
 
float crlDist () const
 
virtual const Interval< float > * desZMargin (int input, int output) const
 
float dipFactor () const
 
virtual bool doNotReUseDH () const
 
void fillInputRangesArray (Array2DImpl< BasicInterval< int > > &, int, const BasicInterval< int > &)
 
virtual bool finalizeCalculation (bool scs)
 
DataHoldergetDataHolder (const BinID &relpos)
 
int getDataIndex (int input) const
 
float getExtraZFromSampInterval (int, int) const
 
float getExtraZFromSampPos (float) const
 
float getInputValue (const DataHolder &, int inputidx, int sampleidx, int z0) const
 
float getInterpolInputValue (const DataHolder &, int inputidx, float sample, int z0) const
 
float getInterpolInputValue (const DataHolder &, int inputidx, float zval) const
 
virtual SeisMSCProvidergetMSCProvider (bool &) const
 
virtual BinDataDesc getOutputFormat (int output) const
 
virtual bool getZ0StoredData (float &z0) const
 
float getZAtSample (int idx) const
 
virtual bool getZStepStoredData (float &step) const
 
float inlDist () const
 
bool isNew2DLine () const
 
bool isUsedMultTimes ()
 
float lineDist () const
 
float maxSecureDip () const
 
virtual int minTaskSize () const
 
virtual bool preProcCommonToAllThreads (const DataHolder &out, const BinID &relpos)
 
void removeDataHolder (const BinID &relpos)
 
virtual const BinIDreqStepout (int input, int output) const
 
virtual const Interval< float > * reqZMargin (int input, int output) const
 
virtual const Interval< int > * reqZSampMargin (int input, int output) const
 
void setInput (int input, Provider *)
 
virtual bool setNrThreads (int idx)
 
void setOutputValue (const DataHolder &output, int outputidx, int sampleidx, int z0, float val) const
 
void setUsedMultTimes ()
 
void stdPrepSteering (const BinID &)
 
float trcDist () const
 
virtual bool useInterTrcDist () const
 
float zFactor () const
 
bool zIsTime () const
 
- Protected Member Functions inherited from RefCount::Referenced
 Referenced ()
 
 Referenced (const Referenced &)
 
virtual ~Referenced ()
 
Referencedoperator= (const Referenced &)
 

Static Protected Member Functions

static ProvidercreateInstance (Desc &)
 
static void updateDefaults (Desc &)
 
static void updateDesc (Desc &)
 
- Static Protected Member Functions inherited from Attrib::Provider
static ProviderinternalCreate (Desc &, ObjectSet< Provider > &, bool &issame, uiString &)
 

Protected Attributes

float azi_
 
float aziaperture_
 
int dataidx_
 
bool filterazi_
 
ObjectSet< const DataHolderinputdata_
 
bool isinited_
 
Array3DImpl< float > kernel_
 
float maxazi_
 
float maxvel_
 
float minazi_
 
float minvel_
 
int size_
 
BinID stepout_
 
float taperlen_
 
int type_
 
Interval< float > valrange_
 
Interval< int > zmargin_
 
- Protected Attributes inherited from Attrib::Provider
ObjectSet< Providerallexistingprov_
 
bool alreadymoved_
 
BinID currentbid_
 
const SeisTrcInfocurtrcinfo_
 
bool dataunavailableflag_
 
BinID desbufferstepout_
 
Descdesc_
 
TrcKeyZSamplingdesiredvolume_
 
uiString errmsg_
 
TypeSet< float > exactz_
 
Interval< float > extraz_
 
Pos::GeomID geomid_
 
ObjectSet< Providerinputs_
 
bool isusedmulttimes_
 
DataHolderLineBufferlinebuffer_
 
TypeSet< Interval< int > > localcomputezintervals_
 
bool needinterp_
 
TypeSet< int > outputinterest_
 
bool parallel_ = true
 
ObjectSet< Providerparents_
 
TrcKeyZSamplingpossiblevolume_
 
int prevtrcnr_
 
ProviderTaskprovidertask_
 
float refstep_
 
float refz0_
 
BinID reqbufferstepout_
 
const Seis::SelDataseldata_
 
BinID trcinfobid_
 
bool useshortcuts_
 

Detailed Description

Dip filtering Attribute.

DipFilter convolves a signal with the on the command-line specified signal.

minvel/maxvel is the cutoff velocity (m/s) or dip (degrees), depending on the z-range unit.

Azimuth is given in degrees from the inline, in the direction of increasing crossline-numbers.

Taper is given as percentage. Tapering is done differently for the three different filtertype. Bandpass tapers at the upper and lower taperlen/2 parts of t the interval. Lowpass tapers from the maxvel down to 100-taperlen of the maxvel. Highpass tapers from minvel to 100+taperlen of minvel

The azimuthrange is tapered in the same way as bandpass.

DipFilter size= minvel= maxvel= type=LowPass|HighPass|BandPass
           filterazi=Y/N minazi= maxazi= taperlen=

type = HighPass
          x     x minvel > 0
          xx   xx
          xxx xxx
          xxxxxxx
          xxx xxx
          xx   xx
          x     x

type = LowPass
          xxxxxxx maxvel > 0
           xxxxx
            xxx
             x
            xxx
           xxxxx
          xxxxxxx

type = BandPass
             x       x  minvel
            xxx     xxx
            xxxx   xxxx maxvel > 0
              xxx xxx
                 x
              xxx xxx
            xxxx   xxxx
            xxx     xxx
             x       x

Inputs:
0       Signal to be filtered.

<>

Constructor & Destructor Documentation

◆ DipFilter()

Attrib::DipFilter::DipFilter ( Desc )

◆ ~DipFilter()

Attrib::DipFilter::~DipFilter ( )
protected

Member Function Documentation

◆ allowParallelComputation()

bool Attrib::DipFilter::allowParallelComputation ( ) const
inlineoverrideprotectedvirtual

Reimplemented from Attrib::Provider.

◆ attribName()

static const char* Attrib::DipFilter::attribName ( )
inlinestatic

◆ computeData()

bool Attrib::DipFilter::computeData ( const DataHolder output,
const BinID relpos,
int  t0,
int  nrsamples,
int  threadidx 
) const
overrideprotectedvirtual

The system will use the algorithm specified in this function to compute the attribute's outputs. The results will be stored as different series in the DataHolder output.

Parameters
output
relpos
t0
nrsamples
threadidxthread identifier that may be handy when using multiple threads.

Implements Attrib::Provider.

◆ createInstance()

static Provider* Attrib::DipFilter::createInstance ( Desc )
staticprotected

◆ desStepout()

const BinID* Attrib::DipFilter::desStepout ( int  input,
int  output 
) const
overrideprotectedvirtual

The system will try to supply the attribute with the desired stepout, but will not take the desired stepout into account when computing the volume that can be computed.

Returns
the desired stepout on input if output is going to be computed, or NULL if no stepout is desired.

Reimplemented from Attrib::Provider.

◆ desZSampMargin()

const Interval<int>* Attrib::DipFilter::desZSampMargin ( int  input,
int  output 
) const
overrideprotectedvirtual

The gate is specified in the trace samples, and is in addition to the gate specified in desZMargin. The system will try to supply the attribute with the desired gate, but will not take the desired gate into account when computing the volume that can be computed.

Returns
the extra gate desired on input if output is going to be computed, or NULL if no extra gate is desired.

Reimplemented from Attrib::Provider.

◆ filteraziStr()

static const char* Attrib::DipFilter::filteraziStr ( )
inlinestatic

◆ filterTypeNamesStr()

static const char* Attrib::DipFilter::filterTypeNamesStr ( int  )
static

◆ getInputData()

bool Attrib::DipFilter::getInputData ( const BinID relpos,
int  idx 
)
overrideprotectedvirtual

Gets all imput data, including data for which a stepout is required

Reimplemented from Attrib::Provider.

◆ getInputOutput()

bool Attrib::DipFilter::getInputOutput ( int  input,
TypeSet< int > &   
) const
overrideprotectedvirtual

Specifies the outputs needed for calculation among all those provided by the input data; very usefull when steering used as input data

Reimplemented from Attrib::Provider.

◆ initClass()

static void Attrib::DipFilter::initClass ( )
static

◆ initKernel()

bool Attrib::DipFilter::initKernel ( )
protected

◆ maxaziStr()

static const char* Attrib::DipFilter::maxaziStr ( )
inlinestatic

◆ maxvelStr()

static const char* Attrib::DipFilter::maxvelStr ( )
inlinestatic

◆ minaziStr()

static const char* Attrib::DipFilter::minaziStr ( )
inlinestatic

◆ minvelStr()

static const char* Attrib::DipFilter::minvelStr ( )
inlinestatic

◆ prepareForComputeData()

void Attrib::DipFilter::prepareForComputeData ( )
inlineoverrideprotectedvirtual

Everything is known now.

Reimplemented from Attrib::Provider.

◆ sizeStr()

static const char* Attrib::DipFilter::sizeStr ( )
inlinestatic

◆ taper()

float Attrib::DipFilter::taper ( float  ) const
protected

◆ taperlenStr()

static const char* Attrib::DipFilter::taperlenStr ( )
inlinestatic

◆ typeStr()

static const char* Attrib::DipFilter::typeStr ( )
inlinestatic

◆ updateDefaults()

static void Attrib::DipFilter::updateDefaults ( Desc )
staticprotected

◆ updateDesc()

static void Attrib::DipFilter::updateDesc ( Desc )
staticprotected

Member Data Documentation

◆ azi_

float Attrib::DipFilter::azi_
protected

◆ aziaperture_

float Attrib::DipFilter::aziaperture_
protected

◆ dataidx_

int Attrib::DipFilter::dataidx_
protected

◆ filterazi_

bool Attrib::DipFilter::filterazi_
protected

◆ inputdata_

ObjectSet<const DataHolder> Attrib::DipFilter::inputdata_
protected

◆ isinited_

bool Attrib::DipFilter::isinited_
protected

◆ kernel_

Array3DImpl<float> Attrib::DipFilter::kernel_
protected

◆ maxazi_

float Attrib::DipFilter::maxazi_
protected

◆ maxvel_

float Attrib::DipFilter::maxvel_
protected

◆ minazi_

float Attrib::DipFilter::minazi_
protected

◆ minvel_

float Attrib::DipFilter::minvel_
protected

◆ size_

int Attrib::DipFilter::size_
protected

◆ stepout_

BinID Attrib::DipFilter::stepout_
protected

◆ taperlen_

float Attrib::DipFilter::taperlen_
protected

◆ type_

int Attrib::DipFilter::type_
protected

◆ valrange_

Interval<float> Attrib::DipFilter::valrange_
protected

◆ zmargin_

Interval<int> Attrib::DipFilter::zmargin_
protected

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