def read_header_marccd(filename):
    """
    return string of parameters found in header in marccd image file .mccd

    - print allsentences  displays the header
    - use allsentences.split('\\n') to get a list
    """
    f = open(filename, 'rb')
    f.seek(2048)
    posbyte = 0
    allsentences = ''
    for _ in list(range(32)):
        tt = f.read(32)
        s1 = tt.strip('\x00')
        if s1 != '':
            allsentences += s1 + '\n'
        posbyte += 32
    tt = f.read(1024)
    s1 = tt.strip('\x00')
    if s1 != '':
        allsentences += s1 + '\n'
    f.close()
    return allsentences
