def BasinKeyToJunction(grouped_data_list, thisPointData):
    """This takes a basin_info_csv file (produced by several LSDTopoTools routies) and spits out lists of the junction numbers (it converts basin numbers to junction numbers).


    Args:
        grouped_data_list (int list): A list of list of basin numbers
        thisPointData (str): A point data object with the basins

    Returns:
        Junction_grouped_list: the junction numbers of the basins.

    Author: SMM
    """
    thisJunctionData = thisPointData.QueryData('outlet_junction')
    junction_grouped_list = []
    if not grouped_data_list:
        return grouped_data_list
    else:
        for group in grouped_data_list:
            this_list = []
            for element in group:
                this_list.append(thisJunctionData[element])
            junction_grouped_list.append(this_list)
    print(junction_grouped_list)
    return junction_grouped_list
