The tag TablePosition sometimes does not get populated depending on the data format.
I uploaded a test folder containing a sequence that was acquired. When it was being acquired, it was automatically exported on a connected laptop to a ".dcm" format. At the end of the imaging session, the dataset was exported to a remote server, downloaded to the same laptop the following day, but this time, it resulted in "IMA" format. The same sequence when exported in these 2 different ways yields different results after dcm2niix conversion:
No TablePosition tag if it was exported automatically (.dcm).
TablePosition tag is present if it was exported manually through the server of the hospital.
Run the command './dcm2niix -o table_position/nifti_from_ima table_position/ima'
Run the command './dcm2niix -o table_position/nifti_from_dcm table_position/dcm'
See both output JSON files where TablePosition is only populated in nifti_from_ima
Probable reason behind the bug
The tag (0019, 1014) ImaRelTablePosition is not populated in the ".dcm" file. However, the private CSA header does get populated with the table position information in both provided cases (RelTablePosition: See the provided python file in the test folder). I wonder if dcm2niix could fall back to reading this information on Siemens data if the tag (0019, 1014) is not present.
Describe the bug
The tag TablePosition sometimes does not get populated depending on the data format.
I uploaded a test folder containing a sequence that was acquired. When it was being acquired, it was automatically exported on a connected laptop to a ".dcm" format. At the end of the imaging session, the dataset was exported to a remote server, downloaded to the same laptop the following day, but this time, it resulted in "IMA" format. The same sequence when exported in these 2 different ways yields different results after dcm2niix conversion:
To reproduce
nifti_from_ima
Probable reason behind the bug The tag
(0019, 1014) ImaRelTablePosition
is not populated in the ".dcm" file. However, the private CSA header does get populated with the table position information in both provided cases (RelTablePosition: See the provided python file in the test folder). I wonder if dcm2niix could fall back to reading this information on Siemens data if the tag(0019, 1014)
is not present.Version
Latest development version (v1.0.20241106) table_position.zip