discard_frequency_outliers#

mrinufft.io.discard_frequency_outliers(kspace_data: NDArray | None, kspace_loc: NDArray, kmax=0.5)[source]#

Remove samples in kspace_data and kspace_loc if outside [-k_max; k_max[.

Parameters:
  • kspace_data (numpy.ndarray) – The samples corresponding to kspace_loc defined above.

  • kspace_loc (numpy.ndarray) – The sample locations previously normalized around [-k_max; k_max[.

  • k_max (float) – The maximum k-space value to keep.

Returns:

  • reduced_kspace_loc (numpy.ndarray) – The sample locations reduced strictly to [-0.5; 0.5[ by discarding outliers.

  • reduced_kspace_data (numpy.ndarray) – The samples corresponding to reduced_kspace_loc defined above.