h5analysis.datautil

Utility functions for data processing and reduction

Functions

bokeh_image_boundaries(x, y)

Calculates the boundaries and width for the displayed image

check_dimensions2d(x, y, z)

Ensure dimensions of scales are matching image array and image is gridded evenly

check_idx(idx_low, idx_high)

Check the index of an array.

get_indices(roi, roi_scale)

Get the indices from specified ROI and scale

get_indices_polygon(pairs, scale1, scale2)

Get the indices for specified coordinate pairs

get_roi(roi, config)

Gets the roi when ':' separated

mca_roi(mca, idx_start, idx_end, sumaxis[, ...])

Reduce 2d MCA data to 1d

stack_roi(stack, idxLowI, idxHighI, idxLow1, ...)

Reduce 3d MCA data to 2d or 1d

strip_roi(contrib_reqs, stream, reqs, rois, ...)

Split ROIS out of strings and store