NiBabel

Access a cacophony of neuro-imaging file formats

Previous topic

nibabel.parrec.PARRECImage

Next topic

nibabel.parrec.PARRECHeader

Reggie -- the one

nibabel.parrec.parse_PAR_header

nibabel.parrec.parse_PAR_header(fobj)

Parse a PAR header and aggregate all information into useful containers.

Parameters :

fobj : file-object

The PAR header file object.

Returns :

(dict, array) :

The dictionary contains all “General Information” from the header file, while the (structured) has the properties of all image definitions in the header