darfix.core.mapping#

Functions

calculate_RSM_histogram(data, diffry_values, ...)

*Code originally written by Mads Carslen*

compute_magnification(H, W, d, obx, obpitch, ...)

compute_moments(values, data[, smooth])

Compute first, second, third and fourth moment of data on values.

compute_peak_position(data[, values, ...])

Compute peak position map

compute_rsm(H, W, d, ffz, mainx[, rotate])

Transformation to azimuthal coordinates.

fit_2d_data(data, values, shape[, moments, ...])

Fit data in axis 0 of data

fit_2d_rocking_curve(y_values, values, shape)

fit_data(data[, moments, values, shape, ...])

Fit data in axis 0 of data

fit_rocking_curve(y_values[, values, ...])

Fit rocking curve.

gaussian(x, a, b, c, d)

Function to calculate the Gaussian with constants a, b, and c

generator(data[, moments, indices])

Generator that returns the rocking curve for every pixel

generator_2d(data[, moments])

Generator that returns the rocking curve for every pixel

multi_gaussian(M, x0, y0, xalpha, yalpha, A, ...)

Bivariate case of the multigaussian PDF + background

rescale_data(data, scale)