def fileheader2dic(header):
    """
    Convert a fileheader list into a Sparky parameter dictionary.
    """
    dic = dict()
    dic['ident'] = str(header[0].decode()).strip('\x00')
    dic['naxis'] = ord(header[1].decode())
    dic['ncomponents'] = ord(header[2].decode())
    dic['encoding'] = ord(header[3].decode())
    dic['version'] = ord(header[4].decode())
    dic['owner'] = str(header[5].decode()).strip('\x00')
    dic['date'] = str(header[6].decode()).strip('\x00')
    dic['comment'] = str(header[7].decode()).strip('\x00')
    dic['seek_pos'] = header[8]
    dic['scratch'] = str(header[9].decode()).strip('\x00')
    return dic
