Last updated

API / geotoolkit / seismic / data / Trace / Trace

Class: Trace

data.Trace.Trace

Abstract seismic trace is a collection of samples. A trace is logically subdivided into zero or more trace headers and zero or more samples. Data is organized as list of traces sorted by headers. The number of samples equals to the number of corresponding headers.

Table of contents

Constructors
Methods

Contents

Constructors

new Trace()

Protected new Trace()

Methods

clone

Abstract clone(): Trace

Returns clone of the trace

Returns

Trace


getHeader

Abstract getHeader(index): number

Return trace header value by identifier

Parameters

Name Type Description
indexnumberindex of the header

Returns

number

Abstract getHeader(): Object

Returns a header and header data

Returns

Object

NameTypeDescription
data?anytrace header data
header?anytrace header

Abstract getHeader(index?): number | { data?: any ; header?: any }

Parameters

Name Type
Optional indexnumber

Returns

number | { data?: any ; header?: any }


getNumberOfSamples

Abstract getNumberOfSamples(): number

Returns a count of the samples in the trace

Returns

number


getSamples

Abstract getSamples(buffer?): number[] | TypedArray

Returns an array of the samples

Parameters

Name Type Description
Optional buffernumber[]Array of samples to be used as buffer to copy samples

Returns

number[] | TypedArray


getStatistics

getStatistics(): Statistics

Returns trace statistics

Returns

Statistics


getTraceId

Abstract getTraceId(): number

Returns the trace id in the reader

Returns

number


getTraceStatus

getTraceStatus(): Status

Returns the trace status

Returns

Status


resetStatistics

resetStatistics(): Trace

Reset trace statistics

Returns

Trace