spectrochempy.roll
- roll(dataset, pts=0.0, neg=False, **kwargs)[source][source]
Roll dimensions.
For multidimensional NDDataset, the shift is by default performed on the last dimension.
- Parameters:
dataset (nddataset) – Dataset to be shifted.
pts (int) – Number of points toshift.
neg (bool) – True to negate the shifted points.
- Returns:
dataset – Dataset shifted.
- Other Parameters:
dim (str or int, keyword parameter, optional, default=’x’) – Specify on which dimension to apply the shift method. If
dim
is specified as an integer it is equivalent to the usualaxis
numpy parameter.inplace (bool, keyword parameter, optional, default=False) – True if we make the transform inplace. If False, the function return a new dataset.