NiBabel

Access a cacophony of neuro-imaging file formats

Previous topic

nibabel.volumeutils.finite_range

Next topic

nibabel.volumeutils.pretty_mapping

This Page

Reggie -- the one

nibabel.volumeutils.make_dt_codes

nibabel.volumeutils.make_dt_codes(codes)

Create full dt codes object from datatype codes

Include created numpy dtype (from numpy type) and opposite endian numpy dtype

Parameters :

codes : sequence of (3,) sequences

contained sequences are data type code, data type name, and numpy type (such as np.float32).

Returns :

rec : Recoder instance

Recoder that, by default, returns code when indexed with any of the corresponding code, name, type, dtype, or swapped dtype