def catalog_colors_to_vjhk(color_catalog):
    """Given a Table containing a catalog of sources with V magnitudes as
    well as colors, generate J, H, and K magnitudes for all sources.

    Parameters
    ----------

    color_catalog : astropy.table.Table
        Table of sources. Should have columns named: 'K', 'V-K', 'J-H',
        and 'J-K'

    Returns
    -------

    color_catalog : astropy.table.Table
        Modified Table with 'J', 'H', 'K' columns added
    """
    # Calculate magnitudes
    kmags = color_catalog['K'].data
    vmags = (color_catalog['K'] + color_catalog['V-K']).data
    jmags = kmags + color_catalog['J-K'].data
    hmags = jmags - color_catalog['J-H'].data

    # Add to table
    color_catalog['J'] = jmags
    color_catalog['H'] = hmags
    color_catalog['V'] = kmags
    return color_catalog