ess.freia.conversions#

Functions

assign_incident_angle(reflection_angle, ...)

Assign incidence using the closest expected specular reflection angle.

assign_incident_angle_from_shutter_logs(...)

Assign incidence when all shutter states are known and exactly one is open.

closest_beam_incident_angle_graph(...)

Provide incidence assignment using the closest expected reflection angle.

coordinate_transformation_graph(...)

Build the scattering coordinates shared by sample and direct-beam runs.

fixed_slits_incident_angle_graph(...)

Provide a constant incident angle from a single pair of fixed slit openings.

incident_angle(incident_direction, ...)

Angle at which the assigned incident beam approaches the sample.

incident_beam_directions(...)

Compute candidate incident directions from corresponding slit openings.

offspecular_coordinate_transformation_graph(...)

Combine an incidence assignment with the shared offspecular coordinates.

outgoing_direction(scattered_beam, ...)

Unit direction of the outgoing ray at the sample, corrected for gravity.

sample_coordinate_transformation_graph(...)

Extend the scattering graph with the sample's reflection angle and Q.

scattering_angle(outgoing_direction)

Signed elevation of the outgoing ray above the laboratory x-z plane.

shutter_log_incident_angle_graph(...)

Identify candidate beams using each shutter's position and status log.

theta(outgoing_direction, sample_surface_normal)

Specular reflection angle between the outgoing ray and the sample surface.

time_at_detector(event_time_zero, ...)

Detector arrival as float64 seconds since the Unix epoch.

time_at_shutter(time_at_detector, ...)

Estimate the time the event passed the shutter position.