arpes.correction.background.remove_incoherent_background#

arpes.correction.background.remove_incoherent_background(data, fermi_level=None, *, set_zero=True)[source]#

Removes counts above the Fermi level.

Sometimes spectra are contaminated by data above the Fermi level for various reasons (such as broad core levels from 2nd harmonic light, or slow enough electrons in ToF experiments to be counted in subsequent pulses).

Parameters:
  • data (XrTypes) – input ARPES data

  • fermi_level (float | None) – Fermi level, if not set, estimate it internally.

  • set_zero (bool) – set zero if the negative value is obtained after background subtraction.

Returns:

Data with a background subtracted.

Return type:

xr.DataArray