xdas.signal.differentiate#

xdas.signal.differentiate(da, midpoints=False, dim='last', parallel=None)[source]#

Differentiate along a given dimension.

Parameters:
  • da (DataArray) – The data to differentiate.

  • midpoints (bool, optional) – Whether to move the coordinates by half a step, by default False.

  • dim (str, optional) – The dimension along which to differentiate, by default “last”.

  • parallel (bool or int, optional) – Number of threads to use. True uses all cores, False uses one, an int uses that many, None defers to the global xdas configuration. Default is None.

Returns:

The differentiated data.

Return type:

DataArray

Notes

Splits on data discontinuities along dim.