vreg.Volume3D.truncate#

Volume3D.truncate(shape)[source]#

Truncate the volume to a smaller shape.

Parameters:

shape (array-like) – 3-element array with the new shape. Each dimension must be equal or smaller than the current shape.

Returns:

truncated volume.

Return type:

vreg.Volume3D