spectrochempy.rs

rs(mask_transform=_right_shift, structured_history=True)def rs(dataset, pts=0.0, **kwargs)[source]

Right shift and zero fill.

For multidimensional NDDataset, the shift is by default performed on the last dimension.

Parameters
  • dataset (nddataset) – NDDataset to be right-shifted.

  • pts (int) – Number of points to right shift.

Returns

dataset – Dataset right shifted and zero filled. Masked source points move with their values; introduced zeros are valid, unmasked points.

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 usual axis numpy parameter.

  • inplace (bool, keyword parameter, optional, default=False) – True if we make the transform inplace. If False, the function return a new dataset.

See also

roll

shift without zero filling.