def get_data():
    """
    Function for extracting a dictionary with the distances (pc) and apparent magnitudes of
    directly imaged planets and brown dwarfs.

    Returns
    -------
    dict
        Dictionary with the distances and apparent magnitudes of directly imaged companions.
        Distances are from GAIA DR2 unless indicated as comment.
    """
    data = {'beta Pic b': {'distance': (19.75, 0.13), 'app_mag': {
        'LCO/VisAO.Ys': (15.53, 0.34), 'Paranal/NACO.J': (14.11, 0.21),
        'Gemini/NICI.ED286': (13.18, 0.15), 'Paranal/NACO.H': (13.32, 0.14),
        'Paranal/NACO.Ks': (12.64, 0.11), 'Paranal/NACO.NB374': (11.25, 
        0.23), 'Paranal/NACO.Lp': (11.3, 0.06), 'Paranal/NACO.NB405': (
        10.98, 0.05), 'Paranal/NACO.Mp': (11.1, 0.12)}}, 'HIP 65426 b': {
        'distance': (109.21, 0.75), 'app_mag': {
        'Paranal/SPHERE.IRDIS_D_H23_2': (17.94, 0.05),
        'Paranal/SPHERE.IRDIS_D_H23_3': (17.58, 0.06),
        'Paranal/SPHERE.IRDIS_D_K12_1': (17.01, 0.09),
        'Paranal/SPHERE.IRDIS_D_K12_2': (16.79, 0.09), 'Paranal/NACO.Lp': (
        15.33, 0.12), 'Paranal/NACO.NB405': (15.23, 0.22),
        'Paranal/NACO.Mp': (14.65, 0.29)}}, '51 Eri b': {'distance': (29.78,
        0.12), 'app_mag': {'MKO/NSFCam.J': (19.04, 0.4), 'MKO/NSFCam.H': (
        18.99, 0.21), 'MKO/NSFCam.K': (18.67, 0.19),
        'Paranal/SPHERE.IRDIS_D_H23_2': (18.41, 0.26),
        'Paranal/SPHERE.IRDIS_D_K12_1': (17.55, 0.14), 'Keck/NIRC2.Lp': (
        16.2, 0.11), 'Keck/NIRC2.Ms': (16.1, 0.5)}}, 'HR 8799 b': {
        'distance': (41.29, 0.15), 'app_mag': {'Subaru/CIAO.z': (21.22, 
        0.29), 'Paranal/SPHERE.IRDIS_B_J': (19.78, 0.09), 'Keck/NIRC2.H': (
        18.05, 0.09), 'Paranal/SPHERE.IRDIS_D_H23_2': (18.08, 0.14),
        'Paranal/SPHERE.IRDIS_D_H23_3': (17.78, 0.1), 'Keck/NIRC2.Ks': (
        17.03, 0.08), 'Paranal/SPHERE.IRDIS_D_K12_1': (17.15, 0.06),
        'Paranal/SPHERE.IRDIS_D_K12_2': (16.97, 0.09), 'Paranal/NACO.Lp': (
        15.52, 0.1), 'Paranal/NACO.NB405': (14.82, 0.18), 'Keck/NIRC2.Ms':
        (16.05, 0.3)}}, 'HR 8799 c': {'distance': (41.29, 0.15), 'app_mag':
        {'Paranal/SPHERE.IRDIS_B_J': (18.6, 0.13), 'Keck/NIRC2.H': (17.06, 
        0.13), 'Paranal/SPHERE.IRDIS_D_H23_2': (17.09, 0.12),
        'Paranal/SPHERE.IRDIS_D_H23_3': (16.78, 0.1), 'Keck/NIRC2.Ks': (
        16.11, 0.08), 'Paranal/SPHERE.IRDIS_D_K12_1': (16.19, 0.05),
        'Paranal/SPHERE.IRDIS_D_K12_2': (15.86, 0.07), 'Paranal/NACO.Lp': (
        14.65, 0.11), 'Paranal/NACO.NB405': (13.97, 0.11), 'Keck/NIRC2.Ms':
        (15.03, 0.14)}}, 'HR 8799 d': {'distance': (41.29, 0.15), 'app_mag':
        {'Paranal/SPHERE.IRDIS_B_J': (18.59, 0.37), 'Keck/NIRC2.H': (16.71,
        0.24), 'Paranal/SPHERE.IRDIS_D_H23_2': (17.02, 0.17),
        'Paranal/SPHERE.IRDIS_D_H23_3': (16.85, 0.16), 'Keck/NIRC2.Ks': (
        16.09, 0.12), 'Paranal/SPHERE.IRDIS_D_K12_1': (16.2, 0.07),
        'Paranal/SPHERE.IRDIS_D_K12_2': (15.84, 0.1), 'Paranal/NACO.Lp': (
        14.55, 0.14), 'Paranal/NACO.NB405': (13.87, 0.15), 'Keck/NIRC2.Ms':
        (14.65, 0.35)}}, 'HR 8799 e': {'distance': (41.29, 0.15), 'app_mag':
        {'Paranal/SPHERE.IRDIS_B_J': (18.4, 0.21),
        'Paranal/SPHERE.IRDIS_D_H23_2': (16.91, 0.2),
        'Paranal/SPHERE.IRDIS_D_H23_3': (16.68, 0.21), 'Keck/NIRC2.Ks': (
        15.91, 0.22), 'Paranal/SPHERE.IRDIS_D_K12_1': (16.12, 0.1),
        'Paranal/SPHERE.IRDIS_D_K12_2': (15.82, 0.11), 'Paranal/NACO.Lp': (
        14.49, 0.21), 'Paranal/NACO.NB405': (13.72, 0.2)}}, 'HD 95086 b': {
        'distance': (86.44, 0.24), 'app_mag': {'Gemini/GPI.H': (20.51, 0.25
        ), 'Gemini/GPI.K1': (18.99, 0.2), 'Paranal/NACO.Lp': (16.27, 0.19)}
        }, 'PDS 70 b': {'distance': (113.43, 0.52), 'app_mag': {
        'Paranal/SPHERE.IRDIS_D_H23_2': (17.94, 0.24),
        'Paranal/SPHERE.IRDIS_D_H23_3': (17.95, 0.17),
        'Paranal/SPHERE.IRDIS_D_K12_1': (16.65, 0.06),
        'Paranal/SPHERE.IRDIS_D_K12_2': (16.44, 0.05), 'Paranal/NACO.Lp': (
        14.08, 0.33), 'Paranal/NACO.NB405': (13.91, 0.34),
        'Paranal/NACO.Mp': (13.64, 0.22)}}, 'PDS 70 c': {'distance': (
        113.43, 0.52), 'app_mag': {'Paranal/NACO.NB405': (15.05, 0.59)}},
        '2M1207 b': {'distance': (64.42, 0.65), 'app_mag': {
        'HST/NICMOS1.F090M': (22.58, 0.35), 'HST/NICMOS1.F110M': (20.61, 
        0.15), 'HST/NICMOS1.F145M': (19.05, 0.03), 'HST/NICMOS1.F160W': (
        18.27, 0.02), 'Paranal/NACO.J': (20.0, 0.2), 'Paranal/NACO.H': (
        18.09, 0.21), 'Paranal/NACO.Ks': (16.93, 0.11), 'Paranal/NACO.Lp':
        (15.28, 0.14)}}, 'AB Pic B': {'distance': (50.12, 0.07), 'app_mag':
        {'Paranal/NACO.J': (16.18, 0.1), 'Paranal/NACO.H': (14.69, 0.1),
        'Paranal/NACO.Ks': (14.14, 0.08)}}, 'HD 206893 B': {'distance': (
        40.81, 0.11), 'app_mag': {'Paranal/SPHERE.IRDIS_B_H': (16.79, 0.06),
        'Paranal/SPHERE.IRDIS_D_K12_1': (15.2, 0.1),
        'Paranal/SPHERE.IRDIS_D_K12_2': (14.88, 0.09), 'Paranal/NACO.Lp': (
        13.79, 0.31), 'Paranal/NACO.NB405': (13.16, 0.34),
        'Paranal/NACO.Mp': (12.77, 0.27)}}, 'GQ Lup B': {'distance': (
        151.82, 1.1), 'app_mag': {'HST/WFPC2.f606w': (19.19, 0.07),
        'HST/WFPC2.f814w': (17.67, 0.05), 'HST/NICMOS2.F171M': (13.84, 0.13
        ), 'HST/NICMOS2.F190N': (14.08, 0.2), 'HST/NICMOS2.F215N': (13.4, 
        0.15), 'Subaru/CIAO.CH4s': (13.76, 0.26), 'Subaru/CIAO.K': (13.37, 
        0.12), 'Subaru/CIAO.Lp': (12.44, 0.22)}}, 'PZ Tel B': {'distance':
        (47.13, 0.13), 'app_mag': {'Paranal/SPHERE.ZIMPOL_R_PRIM': (17.84, 
        0.31), 'Paranal/SPHERE.ZIMPOL_I_PRIM': (15.16, 0.12),
        'Paranal/SPHERE.IRDIS_D_H23_2': (11.78, 0.19),
        'Paranal/SPHERE.IRDIS_D_H23_3': (11.65, 0.19),
        'Paranal/SPHERE.IRDIS_D_K12_1': (11.56, 0.09),
        'Paranal/SPHERE.IRDIS_D_K12_2': (11.29, 0.1), 'Paranal/NACO.J': (
        12.47, 0.2), 'Paranal/NACO.H': (11.93, 0.14), 'Paranal/NACO.Ks': (
        11.53, 0.07), 'Paranal/NACO.Lp': (11.04, 0.22),
        'Paranal/NACO.NB405': (10.94, 0.07), 'Paranal/NACO.Mp': (10.93, 
        0.03), 'Gemini/NICI.ED286': (11.68, 0.14),
        'Gemini/NIRI.H2S1v2-1-G0220': (11.39, 0.14)}}, 'kappa And b': {
        'distance': (50.06, 0.87), 'app_mag': {'Subaru/CIAO.J': (15.86, 
        0.21), 'Subaru/CIAO.H': (14.95, 0.13), 'Subaru/CIAO.Ks': (14.32, 
        0.09), 'Keck/NIRC2.Lp': (13.12, 0.1), 'Keck/NIRC2.NB_4.05': (13.0, 
        0.2), 'LBT/LMIRCam.M_77K': (13.3, 0.3)}}, 'ROXs 42 Bb': {'distance':
        (144.16, 1.54), 'app_mag': {'Keck/NIRC2.J': (16.91, 0.11),
        'Keck/NIRC2.H': (15.88, 0.05), 'Keck/NIRC2.Ks': (15.01, 0.06),
        'Keck/NIRC2.Lp': (13.97, 0.06), 'Keck/NIRC2.NB_4.05': (13.9, 0.08),
        'Keck/NIRC2.Ms': (14.01, 0.23)}}, 'GJ 504 b': {'distance': (17.54, 
        0.08), 'app_mag': {'Paranal/SPHERE.IRDIS_D_Y23_2': (20.98, 0.2),
        'Paranal/SPHERE.IRDIS_D_Y23_3': (20.14, 0.09),
        'Paranal/SPHERE.IRDIS_D_J23_3': (19.01, 0.17),
        'Paranal/SPHERE.IRDIS_D_H23_2': (18.95, 0.3),
        'Paranal/SPHERE.IRDIS_D_H23_3': (21.81, 0.35),
        'Paranal/SPHERE.IRDIS_D_K12_1': (18.77, 0.2), 'Subaru/CIAO.J': (
        19.78, 0.1), 'Subaru/CIAO.H': (20.01, 0.14), 'Subaru/CIAO.Ks': (
        19.38, 0.11), 'Subaru/CIAO.CH4s': (19.58, 0.13), 'Subaru/IRCS.Lp':
        (16.7, 0.17)}}, 'GU Psc b': {'distance': (47.61, 0.16), 'app_mag':
        {'Gemini/GMOS-S.z': (21.75, 0.07), 'CFHT/Wircam.Y': (19.4, 0.05),
        'CFHT/Wircam.J': (18.12, 0.03), 'CFHT/Wircam.H': (17.7, 0.03),
        'CFHT/Wircam.Ks': (17.4, 0.03), 'WISE/WISE.W1': (17.17, 0.33),
        'WISE/WISE.W2': (15.41, 0.22)}}, '2M0103 ABb': {'distance': (47.2, 
        3.1), 'app_mag': {'Paranal/NACO.J': (15.47, 0.3), 'Paranal/NACO.H':
        (14.27, 0.2), 'Paranal/NACO.Ks': (13.67, 0.2), 'Paranal/NACO.Lp': (
        12.67, 0.1)}}, '1RXS 1609 B': {'distance': (139.67, 1.33),
        'app_mag': {'Gemini/NIRI.J-G0202w': (17.9, 0.12),
        'Gemini/NIRI.H-G0203w': (16.87, 0.07), 'Gemini/NIRI.K-G0204w': (
        16.17, 0.18), 'Gemini/NIRI.Lprime-G0207w': (14.8, 0.3)}},
        'GSC 06214 B': {'distance': (108.84, 0.51), 'app_mag': {
        'MKO/NSFCam.J': (16.24, 0.04), 'MKO/NSFCam.H': (15.55, 0.04),
        'MKO/NSFCam.Kp': (14.95, 0.05), 'MKO/NSFCam.Lp': (13.75, 0.07),
        'LBT/LMIRCam.M_77K': (13.75, 0.3)}}, 'HD 72946 B': {'distance': (
        25.87, 0.03), 'app_mag': {'Paranal/SPHERE.IRDIS_D_H23_2': (14.56, 
        0.07), 'Paranal/SPHERE.IRDIS_D_H23_3': (14.4, 0.07)}}}
    return data
