Warning

You are reading the documentation related to the development version. Go here if you are looking for the documentation of the stable release.

spectrochempy.fsh

fsh(dataset, pts, **kwargs)[source]

Frequency shift by Fourier transform. Negative signed phase correction.

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

Parameters
  • data (ndarray) – Array of NMR data.

  • pts (float) – Number of points to frequency shift the data. Positive value will shift the spectrum to the right, negative values to the left.

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 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

ls, rs, cs, roll, fsh2