API / geotoolkit / seismic / data / BinaryTraceRangeSection / BinaryTraceRangeSection
data.BinaryTraceRangeSection.BinaryTraceRangeSection
Create section, which keeps a range of traces
↳
BinaryTraceRangeSection
Constructors
Methods
Constructors
• new BinaryTraceRangeSection(traceFrom, traceTo, headerSize, sampleSize, samplesPerTrace, traceHeader)
Creates section
| Name | Type | Description |
|---|---|---|
traceFrom | number | start trace index |
traceTo | number | end trace index |
headerSize | number | header size in bytes |
sampleSize | number | sample size in bytes |
samplesPerTrace | number | samples per trace |
traceHeader | BinaryHeader | trace header |
TraceSection.constructor
Methods
▸ areSamplesEmpty(): boolean
Returns true, if samples are empty
boolean
▸ clone(): BinaryTraceRangeSection
Creates a clone of the trace section
this
▸ getHeaderData(traceId): Uint8Array
Gets trace header data
| Name | Type | Description |
|---|---|---|
traceId | number | unique trace number |
Uint8Array
▸ getNumberOfTraces(): number
Returns number of traces in the section
number
TraceSection.getNumberOfTraces
▸ getSamplesPerTrace(): number
Returns samples per trace count
number
TraceSection.getSamplesPerTrace
▸ getSectionID(): number
Gets section id
number
▸ getSectionSize(): number
Returns size in bytes
number
▸ getStatistics(): Statistics
Return statistics
▸ getTrace(traceId): Trace
Gets trace
| Name | Type | Description |
|---|---|---|
traceId | number | unique trace number |
▸ getTraceByIndex(index): Trace
Returns trace by index in the section
| Name | Type | Description |
|---|---|---|
index | number | trace index in the section starting from 0 to getNumberOfTraces()-1 |
▸ getTraceHeaderSize(): number
Returns trace header size in bytes
number
▸ getTraceRange(): Range
Returns trace range
▸ getTraceSize(): number
Returns trace size in bytes
number
▸ isHeaderEmpty(): boolean
Returns true, if header data is empty
boolean
▸ setSectionID(sectionId): BinaryTraceRangeSection
Sets unique sectionID
| Name | Type | Description |
|---|---|---|
sectionId | number | index of the chunk of the trace data |
this
▸ setStatistics(statistics?): BinaryTraceRangeSection
Sets statistics
| Name | Type | Description |
|---|---|---|
Optional statistics | Statistics | statistics min, max, average, rms |
this