import pickle


def load_data(infile: str) -> dict:
    """
    Load astrometric field data from file.

    Parameters
    ----------
    infile:
        Input file to analyze

    Returns
    -------
    ddict:
        Dictionary of astrometric field data
    """
    with open(infile, 'rb') as data:
        ddict = pickle.load(data)
    return ddict