This package contains cross-correlation and time lag calculations useful for understanding time variability in EUV light curves.

sunkit_image.time_lag Module

This module contains functions for calculating the cross-correlation and time lag between intensity cubes.


cross_correlation(signal_a, signal_b, lags)

Compute cross-correlation between two signals, as a function of lag


Convert an array of evenly spaced times to an array of time lags evenly spaced between -max(time) and max(time).

max_cross_correlation(signal_a, signal_b, time)

Compute the maximum value of the cross-correlation between signal_a and signal_b.

time_lag(signal_a, signal_b, time[, lag_bounds])

Compute the time lag that maximizes the cross-correlation between signal_a and signal_b.