ptypy.utils.scripts.phase_from_dpc#

ptypy.utils.scripts.phase_from_dpc(dpc_row, dpc_col)#

Implements fourier integration method for two differential quantities.

Assumes 2 arrays of N-dimensions which contain differential quantities in X and Y, i.e. the LAST two dimensions (-2 & -1) in this case.

Parameters:
  • dpc_row (ndarray) – Differential information along 2nd last dimension and last dimension respectively. Must be of the same shape.

  • dpc_col (ndarray) – Differential information along 2nd last dimension and last dimension respectively. Must be of the same shape.

Returns:

out – Integrated array of same shape as dpc_row and dpc_col.

Return type:

ndarray