def make_roi_header(**param):
    """
    Format header data to be written when saving ROI data.

    Args:
        method (string): integration method.
        param (dict): integration parameters.

    Returns:
        hdr_list (string): header data.
    """
    hdr_list = ['== Integration ROI ==']
    method = [i for i in param.keys() if "pos" in i][0].split('_pos')[0]
    hdr_list.append('Integration method: {}'.format(method))

    for k, v in param.items():
        hdr_list.append('{}: {}'.format(k, v))

    header = "\n".join(['# ' + i for i in hdr_list])
    return header