ptypy.core.illumination.aperture#
- ptypy.core.illumination.aperture(A, grids=None, pars=None, **kwargs)#
Creates an aperture in the shape and dtype of A according to x,y-grids grids. Keyword Arguments may be any of (FIXME link to kwargs)
- Parameters:
A (ndarray) – Model array (at least 2-dimensional) to place aperture on top.
pars (dict or Param) – Parameters, FIXME link to parameters
grids (ndarray) – Cartesian coordinate grids, if None, they will be created with
grids = u.grids(sh[-2:], psize=(1.0, 1.0))
- Returns:
ap – Aperture array (complex) in shape of A
- Return type:
ndarray