ess.freia.corrections#

Functions

add_offspecular_coords_and_masks(da, graph, roi)

Compute off-specular coordinates and mask ROI and unassigned-beam events.

add_reference_coords_and_masks(da, graph, roi)

Compute direct-beam coordinates and mask events outside the ROI.

add_sample_coords_and_masks(da, graph, roi)

Compute specular sample coordinates and mask events outside the ROI.

correct_sample(sample, beam_size, sample_size)

Apply the Gaussian footprint correction using the specular incidence angle.

insert_run_normalization(workflow, run_norm)

Insert providers for a specific FREIA run normalization into a workflow.

normalize_by_monitor_histogram(detector, *, ...)

Normalize detector data by a histogrammed monitor.

normalize_by_monitor_integrated(detector, *, ...)

Normalize detector data by an integrated wavelength monitor.