Skip to content
Last updated

API / geotoolkit / seismic / analysis / util / DataPadding / DataPadding

Class: DataPadding

util.DataPadding.DataPadding

A utility class with methods useful for removing the DC Component of a signal by subtracting the mean value. Ported from the Saddleback Geosolution's Java implementation

Table of contents

Constructors
  • [new DataPadding()](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.seismic.analysis.util.datapadding.datapadding.md#new datapadding())
Methods

Contents

Constructors

new DataPadding()

• new DataPadding()

Methods

getClassName

▸ getClassName(): string

Returns

string


getClassName

▸ Static getClassName(): string

Returns

string


getNextPowerOf2

▸ Static getNextPowerOf2(n): number

Returns the next-highest power-of-2 to the number supplied. Example 1->2, 3->4, 5->8, 9->16, 17->32, etc..

Parameters

Name Type Description
nnumberThe number to be converted to the next power of 2.

Returns

number

powerOfTwo The next power of two of the input number.


padTrace

▸ Static padTrace(trace, length?): Float32Array

Pad a trace out to the length specified by input parameter.

Parameters

Name Type Description
tracenumber[] | Float32ArrayThe data trace to be padded
Optional lengthnumberThe length of padded trace

Returns

Float32Array

paddedTrace padded trace unless length not a power of 2 then returns null.