pyrfu.pyrf.corr_deriv module#

pyrfu.pyrf.corr_deriv.corr_deriv(inp0, inp1, flag: bool = False)[source]#

Correlate the derivatives of two time series

Parameters:
  • inp0 (xarray.DataArray) – Time series of the first to variable to correlate with.

  • inp1 (xarray.DataArray) – Time series of the second to variable to correlate with.

  • flag (bool, Optional) – Flag if False (default) returns time instants of common highest first and second derivatives. If True returns time instants of common highest first derivative and zeros crossings.

Returns:

  • t1_d, t2_d (ndarray) – Time instants of common highest first derivatives.

  • t1_dd, t2_dd (ndarray) – Time instants of common highest second derivatives or zero crossings.