convert_gradients_to_slew_rates#
- mrinufft.trajectories.utils.convert_gradients_to_slew_rates(gradients, raster_time=0.01)[source]#
Derive the gradients over time to provide slew rates.
- Parameters:
gradients (np.ndarray) – Gradients over 2 or 3 directions.
raster_time (float, optional) – Amount of time between the acquisition of two consecutive samples in ms. The default is DEFAULT_RASTER_TIME.
- Returns:
slewrates (np.ndarray) – Slew rates corresponding to gradients.
initial_gradients (np.ndarray) – Gradients at the beginning of the readout window.