Source code for ess.estia.corrections
# Copyright (c) 2025 Scipp contributors (https://github.com/scipp)
import scipp as sc
[docs]
def correct_by_footprint(da: sc.DataArray) -> sc.DataArray:
"Corrects the data by the size of the footprint on the sample."
return da / sc.sin(da.coords['theta'])