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

    Parameters
    ----------
    height : int or float
        comparison height
    num : int or str
        number/label of comparison height
    primary_height : int or float
        primary comparison height
    sensor : str
        type of sensor ("Ane", "RSD")
    var : str
        variable to be extracted ("WS", "SD", "TI")

    Returns
    -------
    string
        column name of data to be extracted from inputdata
    float
        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