xscale.signal.fitting.trend¶
-
xscale.signal.fitting.trend(array, dim=None, type='linear')¶ Compute the trend over one dimension of the input array.
Parameters: - array : xarray.DataArray
The data on which the trend is computed
- dim : str, optional
Dimension over which the array will be detrended
- type : {‘constant’, ‘linear’, ‘quadratic’}, optional
Type of trend to be computed. Default is ‘linear’.
Returns: - array_trend : xarray.DataArray
The trend associated with the input data