ess.reduce.live.raw#

Raw count processing and visualization for live data display.

The main feature of this module if RollingDetectorView, which provides a rolling view of a detector. This is useful for live data display, where the most recent counts, i.e., from the last N pulses, are of interest.

As various detector geometries can often not be directly visualized in a useful way, the module also provides a way to project the detector data onto a different coordinate systems. A full set of options is not implemented yet. Currently there are three options:

  • ‘xy_plane’: Project the data onto the x-y plane, i.e., perpendicular to the beam.

  • ‘cylinder_mantle_z’: Project the data onto the mantle of a cylinder aligned with the

    z-axis.

  • LogicalView: Not a projection in the traditional sense, but a way to select and flatten dimensions of the data.

Functions

gaussian_position_noise(sigma)

make_cylinder_mantle_coords(position)

make_xy_plane_coords(position)

pixel_cylinder_axis(shape, transform)

pixel_cylinder_radius(shape, transform)

pixel_shape(component)

position_noise_for_cylindrical_pixel(*, ...)

position_with_noisy_replicas(*, detector, ...)

Create a new position array with noise added to the detector positions.

project_onto_cylinder_z(position, *[, radius])

Project positions onto the mantle of a cylinder aligned with the z axis.

project_xy(position, *[, zplane])

Project positions onto the x-y plane, i.e., perpendicular to the beam (z axis).

Classes

Detector(detector_number)

Histogrammer(coords, edges)

Histogrammer for a detector view.

LogicalView([fold, transpose, select, flatten])

Logical view of a multi-dimensional detector.

RollingDetectorView(*, detector_number, window)

Rolling view of a detector.