calc_radial_trajectory

calc_radial_trajectory#

pypulseqpp.calc_radial_trajectory()[source]#

Return one full radial spoke through the centre of k-space.

Parameters:
  • fov (float) – Field of view, in m. Isotropic: a sequence of equal values is accepted, unequal ones are not.

  • matrix (int) – Matrix size, which with fov sets the reach matrix / (2 fov).

  • num_points (int, default=None) – Samples along the spoke; matrix by default.

Returns:

(num_points, 2), in 1/m, from -kmax to +kmax along x.

Return type:

numpy.ndarray

Raises:

ValueError – If fov is not isotropic or not positive, if matrix is not positive, or if num_points is below 2.

Examples

>>> import pypulseqpp as pp
>>> spoke = pp.calc_radial_trajectory(0.256, 128)
>>> spoke.shape, float(spoke[-1, 0])
((128, 2), 250.0)