get_prephasors_and_spoilers#
- mrinufft.trajectories.gradients.get_prephasors_and_spoilers(trajectory: ndarray[tuple[int, ...], dtype[_ScalarType_co]], spoil_loc=(2, 0, 0), spoil_grad=(0, 0, 0), prephase_loc=(0, 0, 0), prephase_grad=(0, 0, 0), acq: Acquisition | None = None, N: int | None | tuple[int, int] = None, method: str = 'lp') ndarray[tuple[int, ...], dtype[_ScalarType_co]] | tuple[ndarray[tuple[int, ...], dtype[_ScalarType_co]], ndarray[tuple[int, ...], dtype[_ScalarType_co]]][source]#
Get the prephasors and spoiler gradients for a trajectory.
- Parameters:
trajectory (NDArray) – The trajectory of shape (Nshots, Ns, 3)
spoil_loc (tuple, optional) – The k-space location to spoil to [m^-1], by default
(2, 0, 0)spoil_grad (tuple, optional) – The gradient to use for the spoiler [T/m], by default
(0, 0, 0)prephase_loc (tuple, optional) – The k-space location to prephase from [m^-1], by default
(0, 0, 0)prephase_grad (tuple, optional) – The gradient to use for the prephaseer [T/m], by default
(0, 0, 0)acq (Acquisition) – The acquisition object defining hardware constraints and imaging parameters
N (int, optional) – Number of time points to use for the connections. If None
- Returns:
The prephase and spoiler gradients of shape (Nshots, Np, 3)
- Return type:
NDArray | tuple[NDArray, NDArray]
See also