polyTEM.paracrystalline.get_q_dist¶
- polyTEM.paracrystalline.get_q_dist(q_datacube, peak_model, params, num_threads=8, savefile='')¶
From 4D datacube containing the Integrated Intensity vs q linecuts from FFT output, peak fit and extract q-value of peak center. Uses multiprocessing. — INPUTS datacube = 4D np.ndarray with shape (x, y, q_index, 2), with the 4th dim being [qval, fft intensity] num_threads = integer for multiprocessing pool
OUTPUTS q_list = flattened list with the fitted q_center at each (x,y) location