ptypy.utils.array_utils#
utility functions to manipulate/reshape numpy arrays.
This file is part of the PTYPY package.
- copyright:
Copyright 2014 by the PTYPY team, see AUTHORS.
- license:
see LICENSE for details.
Functions
|
Deprecated, kept for backward compatibility only. |
|
Crops or pads a volume array A with a number of hyperplanes according to parameters in hplanes Wrapper for crop_pad_axis. |
|
Crops or pads a volume array A at beginning and end of axis axis with a number of hyperplanes specified by hplanes |
|
Crops or pads Array A symmetrically along the last two axes (-2,-1) around center center to a new shape newshape. |
|
|
|
Fill 3-dimensional array A with B. |
|
``q0,q1,. |
|
Mirrors array A along one axis axis |
|
Pads ndarray A orthogonal to axis with l layers (pixels,lines,planes,...) on low side an r layers on high side. |
|
Rebin ndarray data into a smaller ndarray of the same rank whose dimensions are factors of the original dimensions. |
|
Rebins array A symmetrically along the last 2 axes with factor rebin. |
|
|
|
Move array from center cen_old to cen_new and perform a zoom zoom. |
|
Switches orientation of Array A along the last two axes (-2,-1) |
|
Deprecated, kept for backward compatibility only. |