ptypy.utils.scripts#

Longer script-like functions.

This file is part of the PTYPY package.

copyright:

Copyright 2014 by the PTYPY team, see AUTHORS.

license:

see LICENSE for details.

Functions

cxro_iref(formula, energy[, density, npts])

Query CXRO database for index of refraction values for a solid.

diversify(A[, noise, shift, power])

Add diversity to 3d numpy array A, acts in-place.

hdr_image(img_list, exp_list[, thresholds, ...])

Generate a high dynamic range image from a list of images img_list and corresponding exposure information in exp_list.

load_from_ptyr(filename[, what, ID, layer])

Convenience script to extract data from *.ptyr-file.

mass_center(A[, axes, mask])

Calculates mass center of n-dimensional array A along tuple of axis axes.

phase_from_dpc(dpc_row, dpc_col)

Implements fourier integration method for two differential quantities.

png2mpg(listoffiles[, framefile, fps, ...])

Makes a movie (*.mpg) from a collection of *.png or *.jpeg frames.

radial_distribution(A[, radii])

Returns radial mass distribution up to radii in radii.

remove_hot_pixels(data[, size, tolerance, ...])

Replaces outlier data points with the median of the surrounding data points.

stxm_analysis(storage[, probe])

Performs a stxm analysis on a storage using the pods.

stxm_init(storage[, probe])

Convenience script that performs a STXM analysis for storage storage given a probe array probe and stores result back in storage.

xradia_star(sh[, spokes, std, minfeature, ...])

Creates an Xradia-like star pattern on an array of shape sh.