NiBabel

Access a cacophony of neuro-imaging file formats

Previous topic

nibabel.nicom.csareader.get_b_value

Next topic

nibabel.nicom.csareader.get_g_vector

This Page

Reggie -- the one

nibabel.nicom.csareader.get_csa_header

nibabel.nicom.csareader.get_csa_header(dcm_data, csa_type='image')

Get CSA header information from DICOM header

Return None if the header does not contain CSA information of the specified csa_type

Parameters :

dcm_data : dicom.Dataset

DICOM dataset. Needs only implement the tag fetch with dcm_data[group, element] syntax

csa_type : {‘image’, ‘series’}, optional

Type of CSA field to read; default is ‘image’

Returns :

csa_info : None or dict

Parsed CSA field of csa_type or None, if we cannot find the CSA information.