cogpy.wave.phase_gradient

Phase-gradient analysis and plane-wave fitting.

Implements the phase-gradient directionality (PGD) framework from Zhang et al. (2018) for characterizing travelling waves via spatial gradients of instantaneous phase.

References

Ported from sayak66/wm_travelingwaves_code (phase gradient, PGD, plane-wave fit).

Functions

hilbert_phase(data[, axis])

Compute unwrapped instantaneous phase via the Hilbert transform.

pgd(phase, geometry)

Phase-gradient directionality score per time step.

phase_gradient(phase, geometry)

Compute the spatial phase gradient at each time step.

plane_wave_fit(phase, geometry[, freq])

Fit a plane wave to each time frame of a phase map.