solarspatialtools.field.compute_delays

solarspatialtools.field.compute_delays(df, ref, navgs=5, coh_limit=0.6, freq_limit=0.02, method='multi')

Computes delay between groups of signals. Will find the delay between the reference and every using a transfer function between the reference and those possible points.

Parameters

dfpandas.DataFrame

Time series of the data. Columns are the points, rows are the time.

refstr

The name of the reference point. Must be a column in df.

navgsint

The number of averages to use when computing the transfer function. Affects both the coherence and the frequency resolution. Default is 5. see solarspatialtools.signalproc.averaged_tf for more information.

coh_limitfloat

The minimum coherence required for computing the delay. Default is 0.6. See solarspatialtools.signalproc.tf_delay for more information.

freq_limitfloat

The maximum frequency that will be used when computing the delay. Default is 0.02. See solarspatialtools.signalproc.tf_delay for more info.

methodstr

The method for computing the delay. Options are ‘fit’ and ‘multi’.

Returns

delaynp.ndarray

The raw delay for the point pair computed from the TF phase

cohnp.ndarray

The average coherence for each transfer function within the window.