raman.shift_data

raman.shift_data(x, y, dx)

Smoothly translate 1d data by an arbitrary amount along the x-axis using Fourier transformation.

Parameters:
  • x (array) – x-axis.
  • y (array) – Data, same shape as x.
  • dx (float) – Delta value.
Returns:

Translated data, same shape as y.

Note

This function uses padding to reduce edge artefacts. While the output has the same shape as the input, strictly speaking, the dx / (x[1] - x[0]) first values on the left or right edge (depending on sign of dx) are invalid.