ptypy.core.geometry.BasicFarfieldPropagator#

class ptypy.core.geometry.BasicFarfieldPropagator(geo_pars=None, ffttype='scipy', **kwargs)#

Bases: object

Basic single step Farfield Propagator.

Includes quadratic phase factors and arbitrary origin in array.

Be aware though, that if the origin is not in the center of the frame, coordinates are rolled periodically, just like in the conventional fft case.

__init__(geo_pars=None, ffttype='scipy', **kwargs)#
Parameters:
  • geo_pars (Param or dict) – Parameter dictionary as in DEFAULT.

  • ffttype (str or tuple) –

    Type of FFT implementation. One of:

    • ’fftw’ for pyFFTW

    • ’numpy’ for numpy.fft.fft2

    • ’scipy’ for scipy.fft.fft2

    • 2 or 4-tuple of (forward_fft2(), inverse_fft2(), [scaling, inverse_scaling])

Methods

__init__([geo_pars, ffttype])

bw(W)

Computes backward propagated wavefront of input wavefront W.

fw(W)

Computes forward propagated wavefront of input wavefront W.

update([geo_pars])

Update internal p dictionary.

bw(W)#

Computes backward propagated wavefront of input wavefront W.

fw(W)#

Computes forward propagated wavefront of input wavefront W.

update(geo_pars=None, **kwargs)#

Update internal p dictionary. Recompute all internal array buffers.