rapidscan2spc#

torchspin.rapidscan2spc(M, rsAmp, rsFreq, g=None)[source]#

Convert sinusoidal rapid-scan signal to field-swept EPR spectrum.

Parameters:
  • M (ndarray) – Complex time-domain rapid-scan signal (My + 1j*Mx) over one period of the field modulation. Must be a 1-D complex vector with an even number of points.

  • rsAmp (float) – Peak-to-peak modulation amplitude in mT.

  • rsFreq (float) – Modulation frequency in kHz.

  • g (float | None) – g-value (default: free-electron g).

Returns:

  • dB – Field offset axis in mT.

  • spc – Complex spectrum (real = absorption, imag = dispersion).

Return type:

tuple[ndarray, ndarray]