xrscipy.signal.hilbert

xrscipy.signal.hilbert(darray: DataArray, N: int = None, dim: str = None) DataArray

Compute the analytic signal, using the Hilbert transform. The transformation is done along the selected dimension.

Parameters:
  • darray (xarray) – Signal data. Must be real.

  • N (int, optional) – Number of Fourier components. Defaults to size along dim.

  • dim (int, optional) – Axis along which to do the transformation. Uses the only dimension if darray is 1D.

Returns:

darray – Analytic signal of the Hilbert transform of ‘darray’ along selected axis.

Return type:

xarray