h5analysis.simplemath

Collection of simple math operations that may be applied to data

Functions

apply_offset(stream[, offset, coffset])

Apply constant or polynomial offset to specified stream

apply_savgol(x, y, window, polyorder, deriv)

Appply smoothing and take derivatives

bin_data(x_data, y_data, binsize)

Reduce noise by averaging data points via binning mechanisms

bin_shape_1d(arr, width)

Bins 1d arrays by truncating the array at the end if necessary and calculating the mean in each bin

bin_shape_x(arr, width)

Bins 2d matrices in the x direction, i.e. it maintains the number of rows, by truncating the matrix at the end if necessary and calculating the mean in each bin.

bin_shape_y(arr, width)

Bins 2d matrices in the y direction, i.e. it maintains the number of columns, by truncating the matrix at the end if necessary and calculating the mean in each bin.

grid_data(x_stream, y_stream, grid)

Grid 1d data

grid_data2d(x_data, y_data, detector[, ...])

Internal function to apply specified grid or ensure otherwise that axes are evenly spaced as this is required to plot an image.

grid_data_mesh(x_data, y_data, z_data, ...)

Internal function to generate scatter histogram for 3 independent SCA streams.

handle_eval(expr, vars)

Replaces any NaN and inf values from evaluated array