read_trajectory

read_trajectory#

mrinufft.io.nsp.read_trajectory(grad_filename, dwell_time=0.01, num_adc_samples=None, gamma=Gammas.HYDROGEN, raster_time=0.01, read_shots=False, normalize_factor=0.5)[source]#

Get k-space locations from gradient file.

Parameters:
  • grad_filename (str) – Gradient filename.

  • dwell_time (float, optional) – Dwell time of ADC in ms, by default 0.01

  • num_adc_samples (int, optional) – Number of ADC samples, by default None

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

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

  • read_shots (bool, optional) – Whether in read shots configuration which accepts an extra point at end, by default False

  • normalize (float, optional) – Whether to normalize the k-space locations, by default 0.5 When None, normalization is not done.

  • raster_time (float)

  • normalize_factor (float)

Returns:

kspace_loc – K-space locations. Shape (num_shots, num_adc_samples, dimension).

Return type:

np.ndarray