Seismic traces.
More...
List of all members.
Public Member Functions |
| | SeisTrc (int ns=0, const DataCharacteristics &dc=DataCharacteristics()) |
| | SeisTrc (const SeisTrc &t) |
| | ~SeisTrc () |
| SeisTrc & | operator= (const SeisTrc &t) |
| bool | isEmpty () const |
| SeisTrcInfo & | info () |
| const SeisTrcInfo & | info () const |
| TraceData & | data () |
| const TraceData & | data () const |
| int | nrComponents () const |
| void | set (int idx, float v, int icomp) |
| float | get (int idx, int icomp) const |
| int | size () const |
| float | getValue (float, int icomp) const |
| bool | isNull (int icomp=-1) const |
| void | zero (int icomp=-1) |
| bool | reSize (int, bool copydata) |
| void | copyDataFrom (const SeisTrc &, int icomp=-1, bool forcefloats=false) |
| | icomp -1 (default) is all components
|
| bool | putTo (Socket &, bool withinfo, BufferString *err=0) const |
| | If !err, errors are handled trough the socket. withinfo : send info too.
|
| bool | getFrom (Socket &, BufferString *err=0) |
| | If !err, errors are handled trough the socket.
|
const ValueSeriesInterpolator
< float > & | interpolator () const |
| void | setInterpolator (ValueSeriesInterpolator< float > *) |
| | becomes mine
|
| float | startPos () 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 |
| SeisTrc * | getRelTrc (const ZGate &, float sr=mUdf(float)) const |
| SeisTrc * | getExtendedTo (const ZGate &, bool usetrcvals=true) const |
| bool | isWriteReady () const |
| void | getWriteReady (SeisTrc &) const |
Static Public Member Functions |
| static const char * | sKeyExtTrcToSI () |
Static Public Attributes |
| static const float | snapdist |
Protected Attributes |
| TraceData | data_ |
| SeisTrcInfo | info_ |
| ValueSeriesInterpolator< float > * | intpol_ |
Private Member Functions |
| void | cleanUp () |
Detailed Description
Seismic traces.
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 |
( |
const SeisTrc & |
t |
) |
[inline] |
Member Function Documentation
| void SeisTrc::cleanUp |
( |
|
) |
[private] |
| void SeisTrc::copyDataFrom |
( |
const SeisTrc & |
, |
|
|
int |
icomp = -1, |
|
|
bool |
forcefloats = false | |
|
) |
| | |
icomp -1 (default) is all components
| const TraceData& SeisTrc::data |
( |
|
) |
const [inline] |
| bool SeisTrc::dataPresent |
( |
float |
t |
) |
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
If !err, errors are handled trough the socket.
| 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 |
| void SeisTrc::getWriteReady |
( |
SeisTrc & |
|
) |
const |
| bool SeisTrc::isEmpty |
( |
|
) |
const [inline] |
| bool SeisTrc::isNull |
( |
int |
icomp = -1 |
) |
const |
| bool SeisTrc::isWriteReady |
( |
|
) |
const |
| int SeisTrc::nearestSample |
( |
float |
pos |
) |
const [inline] |
| int SeisTrc::nrComponents |
( |
|
) |
const [inline] |
If !err, errors are handled trough the socket. withinfo : send info too.
| 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::setStartPos |
( |
float |
p |
) |
[inline] |
| int SeisTrc::size |
( |
|
) |
const [inline] |
| static const char* SeisTrc::sKeyExtTrcToSI |
( |
|
) |
[inline, static] |
| float SeisTrc::startPos |
( |
|
) |
const [inline] |
| void SeisTrc::zero |
( |
int |
icomp = -1 |
) |
[inline] |
Member Data Documentation
Default 1e-4 relative distance from a sample below which no interpolation is done. 99.9% chance default is OK.