write_trajectory

write_trajectory#

mrinufft.io.nsp.write_trajectory(trajectory, FOV, img_size, grad_filename, norm_factor=0.5, gamma=Gammas.HYDROGEN, raster_time=0.01, check_constraints=True, gmax=0.04, smax=0.1, **kwargs)[source]#

Calculate gradients from k-space points and write to file.

Parameters:
  • trajectory (np.ndarray) – Trajectory in k-space points. Shape (num_shots, num_samples_per_shot, dimension).

  • FOV (tuple) – Field of view

  • img_size (tuple) – Image size

  • grad_filename (str) – Gradient filename

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

  • gamma (float, optional) – Gyromagnetic ratio in kHz/T, by default 42.576e3

  • raster_time (float, optional) – Gradient raster time in ms, by default 0.01

  • check_constraints (bool, optional) – Check scanner constraints, by default True

  • gmax (float, optional) – Maximum gradient magnitude in T/m, by default 0.04

  • smax (float, optional) – Maximum slew rate in T/m/ms, by default 0.1

  • kwargs (dict, optional) – Additional arguments for writing the gradient file. These are arguments passed to write_gradients function above.