convert_slew_rates_to_gradients

convert_slew_rates_to_gradients#

mrinufft.trajectories.utils.convert_slew_rates_to_gradients(slewrates, initial_gradients=None, raster_time=0.01)[source]#

Integrate slew rates over time to provide gradients.

Parameters:
  • slewrates (np.ndarray) – Slew rates over 2 or 3 directions.

  • initial_gradients (np.ndarray, optional) – Gradients at the beginning of the readout window. The default is None.

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

Returns:

gradients – Gradients corresponding to slewrates.

Return type:

np.ndarray