pysrw.tools

pysrw.tools#

Generic utils for data analysis.

Functions

extractCrossCuts(spatialDistr[, point])

Get the cross cut from a two-dimensional distribution.

extractProfiles(spatialDistr)

Get the integrated profiles from a two-dimensional distribution.

findIdx(array, value)

Find the closest value out of an array.

gaussian1p(x, sigma)

A non-normalized Gaussian with unitary amplitude and zero mean.

gaussian1pNorm(x, sigma)

The normalized version of gaussian1p().

gaussian2p(x, a, sigma)

A non-normalized Gaussian with zero mean.

gaussian2pNorm(x, a, sigma)

The normalized version of gaussian2p().

gaussian3p(x, a, mu, sigma)

A non-normalized Gaussian.

gaussian4p(x, a0, a1, mu, sigma)

A non-normalized Gaussian with a constant offset.

tupledeepcopy(tupleIn)