def clamp_band(data, min, max):
    """clamp data in band between min an max

    Parameters
    ----------
    data: np.array
        band data
    min: Number
    max: Number
        Min and max values to clam to

    Returns
    -------
    np.array
        band_data
    """
    data[data < min] = min
    data[data > max] = max
    return data