add_phase_to_kspace_with_shifts#
- mrinufft.io.utils.add_phase_to_kspace_with_shifts(kspace_data, kspace_loc, normalized_shifts)[source]#
Add phase shifts to k-space data.
- Parameters:
kspace_data (np.ndarray) – The k-space data.
kspace_loc (np.ndarray) – The k-space locations.
normalized_shifts (tuple) – The normalized shifts to apply to each dimension of k-space.
- Returns:
The k-space data with phase shifts applied.
- Return type:
ndarray
- Raises:
ValueError – If the dimension of normalized_shifts does not match the number of dimensions in kspace_loc.