OpendTect  7.0
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Attributes | Private Member Functions | List of all members
SeisTrc Class Reference

Seismic trace. More...

Public Member Functions

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

Static Public Member Functions

static const char * sKeyExtTrcToSI ()
 

Static Public Attributes

static const float snapdist
 

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() [1/2]

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

◆ SeisTrc() [2/2]

SeisTrc::SeisTrc ( const SeisTrc t)

◆ ~SeisTrc()

SeisTrc::~SeisTrc ( )

Member Function Documentation

◆ cleanUp()

void SeisTrc::cleanUp ( )
private

◆ convertToFPs()

void SeisTrc::convertToFPs ( bool  preserve_data = true)

◆ copyDataFrom()

void SeisTrc::copyDataFrom ( const SeisTrc ,
int  icomp = -1,
bool  forcefloats = false 
)

icomp -1 (default) is all components

◆ data() [1/2]

TraceData& SeisTrc::data ( )
inline

◆ data() [2/2]

const TraceData& SeisTrc::data ( ) const
inline

◆ dataPresent()

bool SeisTrc::dataPresent ( float  t) const
inline

◆ endPos()

float SeisTrc::endPos ( ) const
inline

◆ ensureNoUndefs()

void SeisTrc::ensureNoUndefs ( float  withval = mUdf(float))

default is inter- and extrapolate

◆ get()

float SeisTrc::get ( int  idx,
int  icomp 
) const
inline

◆ getExtendedTo()

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

◆ getFirst()

float SeisTrc::getFirst ( int  icomp = 0) const
inline

◆ getLast()

float SeisTrc::getLast ( int  icomp = 0) const
inline

◆ getRelTrc()

SeisTrc* SeisTrc::getRelTrc ( const ZGate ,
float  sr = mUdf(float) 
) const

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

◆ getValue()

float SeisTrc::getValue ( float  ,
int  icomp 
) const

◆ hasUndef()

bool SeisTrc::hasUndef ( int  icomp = -1) const

◆ info() [1/2]

SeisTrcInfo& SeisTrc::info ( )
inline

◆ info() [2/2]

const SeisTrcInfo& SeisTrc::info ( ) const
inline

◆ interpolator()

const ValueSeriesInterpolator<float>& SeisTrc::interpolator ( ) const

◆ isEmpty()

bool SeisTrc::isEmpty ( ) const
inline

◆ isNull()

bool SeisTrc::isNull ( int  icomp = -1) const

◆ isUdf()

bool SeisTrc::isUdf ( int  icomp = -1) const

◆ nearestSample()

int SeisTrc::nearestSample ( float  pos) const
inline

◆ nrComponents()

int SeisTrc::nrComponents ( ) const
inline

◆ operator=()

SeisTrc& SeisTrc::operator= ( const SeisTrc t)

◆ reSize()

bool SeisTrc::reSize ( int  ,
bool  copydata 
)

◆ reverse()

void SeisTrc::reverse ( int  icomp = -1)

◆ sampleGate()

SampleGate SeisTrc::sampleGate ( const Interval< float > &  ,
bool  check 
) const

◆ samplePos()

float SeisTrc::samplePos ( int  idx) const
inline

◆ set()

void SeisTrc::set ( int  idx,
float  v,
int  icomp 
)
inline

◆ setAll()

void SeisTrc::setAll ( float  ,
int  icomp = -1 
)

◆ setInterpolator()

void SeisTrc::setInterpolator ( ValueSeriesInterpolator< float > *  )

becomes mine

◆ setNrComponents()

void SeisTrc::setNrComponents ( int  ,
DataCharacteristics::UserType  dt = DataCharacteristics::Auto 
)

◆ setStartPos()

void SeisTrc::setStartPos ( float  p)
inline

◆ size()

int SeisTrc::size ( ) const
inline

◆ sKeyExtTrcToSI()

static const char* SeisTrc::sKeyExtTrcToSI ( )
inlinestatic

◆ startPos()

float SeisTrc::startPos ( ) const
inline

◆ updateVelocities()

bool SeisTrc::updateVelocities ( const VelocityDesc inpdesc,
const VelocityDesc outdesc,
const ZDomain::Info ,
double  srd,
const UnitOfMeasure srduom,
int  icomp = -1,
double  t0 = 0. 
)

Updates the velocity type and unit according to provided VelocityDesc objects

◆ zero()

void SeisTrc::zero ( int  icomp = -1)
inline

◆ zRange()

StepInterval<float> SeisTrc::zRange ( ) const
inline

Member Data Documentation

◆ data_

TraceData SeisTrc::data_
protected

◆ info_

SeisTrcInfo SeisTrc::info_
protected

◆ intpol_

PtrMan<ValueSeriesInterpolator<float> > SeisTrc::intpol_
mutableprotected

◆ snapdist

const float SeisTrc::snapdist
static

Default 1e-4 /* mDeprecated *‍/ relative distance from a sample below which no interpolation is done. 99.9% chance default is OK.


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