def vis_params_cp(band, min_val, max_val, palette=None, opacity=1):
    """
    Returns a dictionary for the visual parameters for a single band color palette representation

    :param band: name of the band to visualize
    :param min_val: minimum value
    :param max_val: maximum value
    :param palette: optional, color palette vor visualization. Default is red yellow green.
    :return: returns a dictionary containing parameters for visualization
    """
    if palette is None:
        palette = ["red", "orange", "yellow", "green", "darkgreen"]  # default colot palette

    params = {
        'bands': band,
        'min': min_val,
        'max': max_val,
        'palette': palette,
        'opacity': opacity
    }
    return params