solarspatialtools.signalproc.averaged_tf

solarspatialtools.signalproc.averaged_tf(input_tsig, output_tsig, navgs, overlap=0.5, window='hamming', detrend='linear')

Calculate a transfer function between two signals, along with their coherence.

Parameters

input_tsignumeric

Pandas type with the TF input time signal. Index must be time.

output_tsignumeric

Pandas type with the TF output time signal. Index must be time.

navgsint

The number of averages to use based on zero overlap. Overlap will result in more averages.

overlapfloat (default 0.5)

Percentage overlap between the averages

windowstring (default ‘hamming’)

The window type to use.

detrendstring or None

Detrend type (‘linear’ or ‘constant’). See scipy.signal.psdxx for more information.

Returns

tfpd.DataFrame

Complex valued transfer function indexed by the frequency and containing the same columns as the input

cohpd.DataFrame

the coherence indexed by the frequency and containing the same columns as the input