Previous topic

Module tracesDefineTreatments

Next topic

Module tracesWriter

This Page

Provides some functions for the processing of traces.

Module tracesFunctions

traces.tracesFunctions.witheningCosEnergy(Trace, FreqMin, FreqMax, FreqSampling, dt)

Return the trace whitened with an apodization in cosinus square and multiply by the root square of the energy.

Parameters :
Trace: numpy array

The trace to be whitened.

FreqMin, FreqMax: float

The frequency minimal and the frequency maximal which define the interval.

FreqSampling: float

The frequency of the sampling.

dt: float

The percentage of the length of the apodization of each border.

traces.tracesFunctions.witheningCos(Trace, freqMin, freqMax, FreqSampling, DivideFreq)

Return the trace whitened with an apodization in cosinus square.

Parameters :
Trace: numpy array

The trace to be whitened.

freqMin, freqMax: float

The frequency minimal and the frequency maximal which define the interval.

FreqSampling: float

The frequency of the sampling.

DivideFreq: float

The percentage of the length of the apodization of each border.

traces.tracesFunctions.makeFiltfiltAndButterFromPeriod(Trace, PeriodMin, PeriodMax, SamplingRate, OrderButter)

Return the trace filtered with zerophase.

Parameters :
Trace: numpy array

The trace to be filtered.

PeriodMin, PeriodMax: float

The period minimal and the period maximal which define the interval.

SamplingRate: float

The frequency of the sampling.

OrderButter: int

The order of the butterworth.

traces.tracesFunctions.makeSign(Trace)

Return the array of the sign of the trace. Trace is destroyed. :Parameters:

Trace: numpy array
The trace from which get the sign.
traces.tracesFunctions.glitchCorrectionWithFactorStd(Trace, FactorTestStd, NumberOfStd=1, FactorReplaceWithStd=0)

make doc!!!!

traces.tracesFunctions.glitchCorrectionWithFactorStdWithConvergence(Trace, FactorTestStd, FactorReplaceWithStd=0)

make doc!!!!

traces.tracesFunctions.makeBorderZero(Trace, LengthBorderLeft, LengthBorderRigth=None)

Return the trace with the border replaced by zeros.

Parameters :
Trace: numpy array

The trace to be filtered.

LengthBorderLeft: int

The length of the left border which is setting to zero.

LengthBorderRigth: int (optional)

The length of the rigth border which is setting to zero. Default is LengthBorderLeft.


Whisper project: FP7 ERC Advanced grant 227507 (WHISPER).
Codes are develop for the Whisper project (Seismic ambient noise).
If you use this code, specify it is provide by: Whisper project FP7 ERC Advanced grant 227507 (WHISPER).
Author: Xavier Briand. For questions, send email to xav.briand.whisper@gmail.com with subject begin exactly with [whisper].