remove_extra_kspace_samples

remove_extra_kspace_samples#

mrinufft.io.utils.remove_extra_kspace_samples(kspace_data, num_samples_per_shot)[source]#

Remove extra samples from k-space data.

This function is useful when the k-space data has extra samples mainly as ADC samples at only at specific number of samples. This sometimes leads to a situation where we will have more ADC samples than what is expected.

Parameters:
  • kspace_data (np.ndarray) – The k-space data ordered as NCha X NShot X NSamples.

  • num_samples_per_shot (int) – The number of samples per shot in trajectory

Returns:

The k-space data with extra samples removed.

Return type:

np.ndarray