Hi everyone,
I have somewhat of a question or observtion regarding the AcquisitionTime in dicoms of Siemens data (I did not check for other constructors).
That value is generally spaced by the TR between 2 different volumes, but suddenly that value jumps by 40s, and thus do not show the true time of acquisition. (see example with code below).
This is the case for Siemens product sequence and CMRR MB, so it seems more related to the scanner. I checked on data from another scanner ( DataLad Repository) and it’s the same.
It seems to always be 40s jumps.
I am mostly posting here for documenting, as I didn’t find any info about that anywhere.
Any opinions about that oddity that do not match dicom specs?
Tagging @neurolabusc as you are of course very knowledgeable about dicoms.
import pydicom, glob, numpy as np
acq_times = np.sort(np.asarray([pydicom.read_file(f, stop_before_pixels=True).AcquisitionTime for f in glob.glob("/path/to/dicom/series/*") ], dtype=np.float))
np.diff(acq_times)
array([ 0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785,
0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785,
0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785,
0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785,
0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785,
0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785,
0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785,
0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785,
0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785,
0.785, 40.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785,
0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785,
0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785,
0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785,
0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785,
0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785,
0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785,
0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785,
0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785,
0.785, 0.785, 0.785, 0.785, 0.785, 40.785, 0.785, 0.785,
0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785,
0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785,
0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785,
0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785,
0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785,
0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785, 0.785,
....