mrpro.data.traj_calculators.KTrajectoryIsmrmrd
- class mrpro.data.traj_calculators.KTrajectoryIsmrmrd[source]
Bases:
object
Get trajectory in ISMRMRD raw data file.
Use an instance of this class to tell
mrpro.data.KData.from_file
to read in the trajectory from the ISMRMRD file [TRA].The trajectory is optionally normalized to fit in the encoding matrix.
References
[TRA]ISMRMRD trajectory https://ismrmrd.readthedocs.io/en/latest/mrd_raw_data.html#k-space-trajectory
- __init__(normalize: bool = False) None [source]
Initialize KTrajectoryIsmrmrd.
The ISMRMRD specification deos not define a normalization for the trajectory. If the trajectory is not normalized to the encoding_matrix, please set
normalize=True
`to enable normalization. Otherwise, the trajectory is read in as-is.- Parameters:
normalize (
bool
, default:False
) – normalize the trajectory to the encoding matrix.
- __call__(acquisitions: Sequence[Acquisition], encoding_matrix: SpatialDimension) KTrajectory [source]
Read out the trajectory from the ISMRMRD data file.
- Parameters:
acquisitions (
Sequence
[Acquisition
]) – list of ismrmrd acquisistions to read from. Needs at least one acquisition.encoding_matrix (
SpatialDimension
) – encoding matrix, used to normalize the trajectory.
- Returns:
trajectory in the shape of the original raw data.
- __eq__(value, /)
Return self==value.
- __new__(**kwargs)