compute_gradients_and_slew_rates

compute_gradients_and_slew_rates#

mrinufft.trajectories.utils.compute_gradients_and_slew_rates(trajectory, norm_factor=0.5, resolution=0.0006, raster_time=0.01, gamma=Gammas.HYDROGEN)[source]#

Compute the gradients and slew rates from a normalized trajectory.

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

  • norm_factor (float, optional) – Trajectory normalization factor, by default KMAX.

  • resolution (float, np.array, optional) – Resolution of MR image in meters, isotropic as int or anisotropic as np.array. The default is DEFAULT_RESOLUTION.

  • raster_time (float, optional) – Amount of time between the acquisition of two consecutive samples in ms. The default is DEFAULT_RASTER_TIME.

  • gamma (float, optional) – Gyromagnetic ratio of the selected nucleus in kHz/T The default is Gammas.HYDROGEN.

Returns:

  • gradients (np.ndarray) – Gradients corresponding to trajectory.

  • slewrates (np.ndarray) – Slew rates corresponding to trajectory gradients.