Data model¶
See the data-model guide for the schema and conventions.
A vendor-independent representation of one MRI acquisition.
Attributes:
| Name | Type | Description |
|---|---|---|
kspace |
Array
|
Complex k-space samples. See :data: |
kspace_axes |
tuple[str, ...]
|
Names of the |
encoding |
EncodingSpace
|
:class: |
acquisition |
AcquisitionInfo
|
:class: |
coils |
CoilInfo | None
|
:class: |
trajectory |
Trajectory | None
|
:class: |
metadata |
ScannerMetadata
|
:class: |
provenance |
Provenance
|
:class: |
Geometry and sampling of the acquisition.
Attributes:
| Name | Type | Description |
|---|---|---|
recon_matrix |
tuple[int, int, int]
|
Target image matrix |
encoded_matrix |
tuple[int, int, int]
|
Nominal fully-sampled k-space matrix |
fov |
FieldOfView
|
Field of view in mm. |
sampling |
SamplingPattern
|
The :class: |
acceleration |
tuple[int, ...]
|
Parallel-imaging acceleration per phase-encode axis, e.g. |
partial_fourier |
tuple[float, float, float]
|
Partial-Fourier fraction per axis (1.0 == full), |
n_dims |
int
|
2 or 3. |
affine |
list[list[float]] | None
|
Optional 4x4 voxel-to-world matrix (RAS+), if the reader computed one. |
Sample locations in k-space for a non-Cartesian (or arbitrary) acquisition.
Attributes:
| Name | Type | Description |
|---|---|---|
coords |
Array
|
Array of shape |
units |
TrajectoryUnits
|
Interpretation of |
density_compensation |
Array | None
|
Optional array broadcastable to |
dwell_time_s |
float | None
|
Optional readout dwell time, for off-resonance / trajectory timing. |
sample_shape
property
¶
Shape of the readout-sample axes (everything after n_dims).
Pulse-sequence and contrast metadata for a dataset.
Times are in seconds, angles in degrees, unless noted. Lists hold one entry per contrast/echo where applicable.
Information about the acquisition system.
All fields are optional; readers fill in what the source format provides.
Anything without a typed home goes in :attr:extra.
Ordered history of everything done to a dataset.
Reproducibility is a first-class feature of UniMRI: reading a file and every
subsequent transform should append a :class:ProvenanceStep here.
record(operation, *, params=None, backend='')
¶
Append a step and return it.