import struct


def read_subheader(subheader):
    """
    Return the subheader as a list

    Parameters
    ----------
    subheader (string):
        32 character string in the subheader format

    Returns
    -------
    list:
        10 item list with the following data members:
        [0] subflgs
        [1] subexp
        [2] subindx
        [3] subtime
        [4] subnext
        [5] subnois
        [6] subnpts
        [7] subscan
        [8] subwlevel
        [9] subresv
    """

    subhead_str = "<cchfffiif4s"
    items = struct.unpack(subhead_str.encode('utf8'), subheader)

    item_cpy = [ord(i) for i in items[:2]]
    item_cpy += items[2:]

    return item_cpy