def read_scen_params(scen_file):
    """
    Reads the header of a .scen file (until and including the "version" line) and returns the
    parameters as tuples in a list.
    """

    params = []
    for line in scen_file:
        params.append(tuple(line[:-1].rsplit(" ", 1)))
        if params[-1][0].lower() == "version":
            break
    return params