convert_trajectory_to_gradients#

mrinufft.trajectories.utils.convert_trajectory_to_gradients(trajectory: ndarray[tuple[int, ...], dtype[_ScalarType_co]], acq: Acquisition | None = None, get_final_positions: bool = False) tuple[ndarray[tuple[int, ...], dtype[_ScalarType_co]], ...][source]#

Derive a normalized trajectory over time to provide gradients.

Parameters:
  • trajectory (NDArray) – Normalized trajectory consisting of k-space coordinates in 2D or 3D.

  • acq (Acquisition, optional) – Acquisition configuration to use for normalization. If None, the default acquisition is used.

  • get_final_positions (bool, optional) – If True, return the final positions in k-space. The default is False.

Returns:

gradients – Gradients corresponding to trajectory in T/m

Return type:

NDArray

Example using convert_trajectory_to_gradients:#

Prephasors, Spoilers and arbitrary Waveforms

Prephasors, Spoilers and arbitrary Waveforms