def _annotate_table(data_table, keyword_dict, num_sources, product="tdp"):
    """Add state metadata to the output source catalog

    Parameters
    ----------
    data_table : QTable
        Table of source properties

    keyword_dict : dict
        Dictionary containing FITS keyword values pertaining to the data product

    num_sources : int
        Number of sources (items) in table

    product : str, optional
        Identification string for the catalog product being written.  This
        controls the data being put into the catalog product

    Returns
    -------
    data_table : QTable
        Table of source properties updatd to contain state metadata

    """

    data_table.meta["WCSNAME"] = keyword_dict["wcs_name"]
    data_table.meta["WCSTYPE"] = keyword_dict["wcs_type"]
    data_table.meta["Proposal ID"] = keyword_dict["proposal_id"]
    data_table.meta["Image File Name"] = keyword_dict['image_file_name']
    data_table.meta["Target Name"] = keyword_dict["target_name"]
    data_table.meta["Date Observed"] = keyword_dict["date_obs"]
    # FIX
    if product.lower() == "tdp":
        data_table.meta["Time Observed"] = " "
        data_table.meta["Filter"] = keyword_dict["filter"]
    else:
        data_table.meta["Time Observed"] = "FIX ME"
        data_table.meta["Filter 1"] = keyword_dict["filter1"]
        data_table.meta["Filter 2"] = keyword_dict["filter2"]
    data_table.meta["Instrument"] = keyword_dict["instrument"]
    data_table.meta["Detector"] = keyword_dict["detector"]
    data_table.meta["Target RA"] = keyword_dict["target_ra"]
    data_table.meta["Target DEC"] = keyword_dict["target_dec"]
    data_table.meta["Orientation"] = keyword_dict["orientation"]
    data_table.meta["Aperture RA"] = keyword_dict["aperture_ra"]
    data_table.meta["Aperture DEC"] = keyword_dict["aperture_dec"]
    data_table.meta["Aperture PA"] = keyword_dict["aperture_pa"]
    data_table.meta["Exposure Start"] = keyword_dict["expo_start"]
    data_table.meta["Total Exposure Time"] = keyword_dict["texpo_time"]
    data_table.meta["CCD Gain"] = keyword_dict["ccd_gain"]
    data_table.meta["Number of sources"] = num_sources
    data_table.meta[""] = " "
    data_table.meta[""] = "Absolute coordinates are in a zero-based coordinate system."

    return(data_table)