def nc_variables_with_dimension(nc1, dimension):
    """Variables which use a given dimension.

    Parameters
    ----------
    nc1 - netCDF4.Dataset
    dimension - str

    Returns
    out - list of str

    """

    list_of_variables = []
    for var_name in nc1.variables.keys():
        var1 = nc1.variables[var_name]
        if dimension in var1.dimensions:
            list_of_variables.append(var_name)
    return list_of_variables