polyTEM.crystal_peaks.flow_fields.prepare_line_data

polyTEM.crystal_peaks.flow_fields.prepare_line_data(trimmed_lines, norm_intensity_matrix, step_size)

Combines data from trimmed lines and normalized intensities to give the angle, intensity, and other parameters at each point in the trimmed lines.

Inputs:
trimmed_lines: (4 x m x n) matrix, which contains the (x, y, theta, is_active) values for each point m along

each line n. This is the output of the trim_lines function.

norm_intensity_matrix: 3d matrix where the three dimensions are (real space x position, real space y position, angle).

Normalizing values is recommended for ease-of-use.

Outputs:

line_data: (7 x m x n) matrix, which contains the (x, y, theta, is_active, intensity, _, _) values for each point m along each line n. The last two values are placeholders, for example if you wanted to add in peak width or diffraction angle.