def get_extrap_col_and_ht(height, num, primary_height, sensor='Ane', var='WS'):
    """
    Determine name of column and height to use for extrapolation purposes
    :param height: comparison height
    :param num: number/label of comparison height
    :param primary_height: Primary comparison height
    :param sensor: type of sensor (either "Ane" or "RSD")
    :param var: variable to be extracted (can be 'WS', 'SD', or 'TI')
    :return col_name: column name of data to be extracted from inputdata
    :return ht: height to be extracted for extrapolation
    """
    col_name = sensor + "_" + str(var) + "_Ht" + str(num)
    if 'primary' in col_name:
        if sensor == 'Ane':
            col_name = "Ref_" + str(var)
        elif sensor == 'RSD':
            col_name = 'RSD_' + str(var)
        height = float(primary_height)
    else:
        height = float(height)

    return col_name, height