OpendTect-6_4  6.4
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
SeisTrc Class Reference

Seismic trace. More...

Public Member Functions

 SeisTrc (int ns=0, const DataCharacteristics &dc=DataCharacteristics())
 
 SeisTrc (const SeisTrc &t)
 
 ~SeisTrc ()
 
SeisTrcoperator= (const SeisTrc &t)
 
bool isEmpty () const
 
SeisTrcInfoinfo ()
 
const SeisTrcInfoinfo () const
 
TraceDatadata ()
 
const TraceDatadata () const
 
int nrComponents () const
 
void set (int idx, float v, int icomp)
 
float get (int idx, int icomp) const
 
float getFirst (int icomp=0) const
 
float getLast (int icomp=0) const
 
int size () const
 
float getValue (float, int icomp) const
 
bool isNull (int icomp=-1) const
 
bool hasUndef (int icomp=-1) const
 
void zero (int icomp=-1)
 
void setNrComponents (int, DataCharacteristics::UserType dt=DataCharacteristics::Auto)
 
bool reSize (int, bool copydata)
 
void copyDataFrom (const SeisTrc &, int icomp=-1, bool forcefloats=false)
 icomp -1 (default) is all components More...
 
*const ValueSeriesInterpolator< float > & interpolator () const
 
void setInterpolator (ValueSeriesInterpolator< float > *)
 becomes mine More...
 
float startPos () const
 
float endPos () const
 
StepInterval< float > zRange () const
 
float samplePos (int idx) const
 
int nearestSample (float pos) const
 
void setStartPos (float p)
 
bool dataPresent (float t) const
 
SampleGate sampleGate (const Interval< float > &, bool check) const
 
SeisTrcgetRelTrc (const ZGate &, float sr=mUdf(float)) const
 
SeisTrcgetExtendedTo (const ZGate &, bool usetrcvals=true) const
 
void convertToFPs (bool preserve_data=true)
 

Static Public Member Functions

static const char * sKeyExtTrcToSI ()
 

Static Public Attributes

static const float snapdist
 

Protected Member Functions

bool chkForSpecVal (int icomp, bool isnull) const
 

Protected Attributes

TraceData data_
 
SeisTrcInfo info_
 
PtrMan< ValueSeriesInterpolator< float > > intpol_
 

Private Member Functions

void cleanUp ()
 

Detailed Description

Seismic trace.

A seismic trace is composed of trace info and trace data. The trace data consists of one or more components. These are represented by a set of buffers, interpreted by DataInterpreters.

Constructor & Destructor Documentation

SeisTrc::SeisTrc ( int  ns = 0,
const DataCharacteristics dc = DataCharacteristics() 
)
inline
SeisTrc::SeisTrc ( const SeisTrc t)
inline
SeisTrc::~SeisTrc ( )

Member Function Documentation

bool SeisTrc::chkForSpecVal ( int  icomp,
bool  isnull 
) const
protected
void SeisTrc::cleanUp ( )
private
void SeisTrc::convertToFPs ( bool  preserve_data = true)
void SeisTrc::copyDataFrom ( const SeisTrc ,
int  icomp = -1,
bool  forcefloats = false 
)

icomp -1 (default) is all components

TraceData& SeisTrc::data ( )
inline
const TraceData& SeisTrc::data ( ) const
inline
bool SeisTrc::dataPresent ( float  t) const
inline
float SeisTrc::endPos ( ) const
inline
float SeisTrc::get ( int  idx,
int  icomp 
) const
inline
SeisTrc* SeisTrc::getExtendedTo ( const ZGate ,
bool  usetrcvals = true 
) const

Extends (or shrinks) trace to ZGate Added values can be first/last value of input, or zeros

float SeisTrc::getFirst ( int  icomp = 0) const
inline
float SeisTrc::getLast ( int  icomp = 0) const
inline
SeisTrc* SeisTrc::getRelTrc ( const ZGate ,
float  sr = mUdf(float) 
) const

Resample around pick. No pick: returns null. ZGate is relative to pick

float SeisTrc::getValue ( float  ,
int  icomp 
) const
bool SeisTrc::hasUndef ( int  icomp = -1) const
SeisTrcInfo& SeisTrc::info ( )
inline
const SeisTrcInfo& SeisTrc::info ( ) const
inline
* const ValueSeriesInterpolator<float>& SeisTrc::interpolator ( ) const

< relative distance from a sample below which no interpolation is done. 99.9% chance default is OK.

bool SeisTrc::isEmpty ( ) const
inline
bool SeisTrc::isNull ( int  icomp = -1) const
int SeisTrc::nearestSample ( float  pos) const
inline
int SeisTrc::nrComponents ( ) const
inline
SeisTrc& SeisTrc::operator= ( const SeisTrc t)
bool SeisTrc::reSize ( int  ,
bool  copydata 
)
SampleGate SeisTrc::sampleGate ( const Interval< float > &  ,
bool  check 
) const
float SeisTrc::samplePos ( int  idx) const
inline
void SeisTrc::set ( int  idx,
float  v,
int  icomp 
)
inline
void SeisTrc::setInterpolator ( ValueSeriesInterpolator< float > *  )

becomes mine

void SeisTrc::setNrComponents ( int  ,
DataCharacteristics::UserType  dt = DataCharacteristics::Auto 
)
void SeisTrc::setStartPos ( float  p)
inline
int SeisTrc::size ( ) const
inline
static const char* SeisTrc::sKeyExtTrcToSI ( )
inlinestatic
float SeisTrc::startPos ( ) const
inline
void SeisTrc::zero ( int  icomp = -1)
inline
StepInterval<float> SeisTrc::zRange ( ) const
inline

Member Data Documentation

TraceData SeisTrc::data_
protected
SeisTrcInfo SeisTrc::info_
protected
PtrMan<ValueSeriesInterpolator<float> > SeisTrc::intpol_
mutableprotected
const float SeisTrc::snapdist
static

Default 1e-4 /* mDeprecated


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