arpes.analysis.shirley.remove_shirley_background
- arpes.analysis.shirley.remove_shirley_background(xps: Union[xarray.core.dataarray.DataArray, xarray.core.dataset.Dataset], **kwargs) Union[xarray.core.dataarray.DataArray, xarray.core.dataset.Dataset] [source]
Calculates and removes a Shirley background from a spectrum.
Only the background corrected spectrum is retrieved.
- Parameters
xps – The input array.
kwargs – Parameters to feed to the background estimation routine.
- Returns
The the input array with a Shirley background subtracted.