def update_filter(filter_in):
    """
    Function to update a filter ID from the Vizier Photometry viewer VOTable to the filter ID from
    the SVO Filter Profile Service.

    Parameters
    ----------
    filter_in : str
        Filter ID in the format of the Vizier Photometry viewer.

    Returns
    -------
    str
        Filter ID in the format of the SVO Filter Profile Service.
    """
    if filter_in[0:5] == b'2MASS':
        filter_out = str(b'2MASS/2MASS.' + filter_in[6:])
    elif filter_in[0:4] == b'WISE':
        filter_out = str(b'WISE/WISE.' + filter_in[5:])
    elif filter_in[0:10] == b'GAIA/GAIA2':
        filter_out = str(filter_in[0:9] + b'0' + filter_in[10:])
    else:
        filter_out = None
    return filter_out
