Using the same scan object there are two methods: dicom_dump
and read_dicom
.
If you do
scan.read_dicom()
you get a pydicom object with all the headers (and there is an argument for whether to include pixel data or not) https://xnat.readthedocs.io/en/latest/xnat.html#xnat.mixin.ImageScanData.read_dicom