stack#

mrinufft.trajectories.tools.stack(trajectory: ndarray[tuple[int, ...], dtype[_ScalarType_co]], nb_stacks: int, z_tilt: str | float | None = None, *, hard_bounded: bool = True) ndarray[tuple[int, ...], dtype[_ScalarType_co]][source]#

Stack 2D or 3D trajectories over the \(k_z\)-axis.

Parameters:
  • trajectory (NDArray) – Trajectory in 2D or 3D to stack.

  • nb_stacks (int) – Number of stacks repeating the provided trajectory.

  • z_tilt (str | float, optional) – Tilt of the stacks, by default None.

  • hard_bounded (bool, optional) – Whether the stacks should be strictly within the limits of the k-space.

Returns:

Stacked trajectory.

Return type:

NDArray

Example using stack:#

Trajectory tools

Trajectory tools