ess.reflectometry.resolution

Code for the quantification of resolution effects in reflectometry measurements.

ess.reflectometry.resolution.detector_resolution(spatial_resolution, pixel_position, sample_position)

Calculation the resolution function due to the spatial resolution of the detector.

Args:

spatial_resolution (scipp._scipp.core.Variable): Detector spatial resolution. pixel_position (scipp._scipp.core.Variable): The position of each pixel in the dimension parallel to the beam. sample_position (scipp._scipp.core.Variable): The position of the sample in the dimension parallel to the beam.

Returns:

(scipp._scipp.core.Variable): Standard deviation of detector resolution.

ess.reflectometry.resolution.z_offset(position, offset_value)

Offset in the z-dimension.

Args:

position (scipp._scipp.core.Variable): Position variable, should be vector_3_float64. offset_value (scipp._scipp.core.Variable): z-dimension offset value.

Returns:

(scipp._scipp.core.Variable): New position variables that has been offset.