import collections


def convertindexlist(l):
    """convert the list of decoded ASCII headerinformation to a namedtupel

    Args:
        l (list): decoded header information 

    Returns:
        namedtupel: headerinfo
    """
    recordinfo = collections.namedtuple('recordinfo', 
        'y m d h fc lvl grid name exp prec initval')
    return recordinfo(y=l[0], m=l[1], d=l[2], h=l[3],
                      fc=l[4], lvl=l[5], grid=l[6], name=l[7],
                      exp=l[8], prec=l[9], initval=l[10])