I tried your suggestion, but unfortunately, I have feeling that the condition I give always returns True whatever I am asking …
np.where(scalar2 < 0.8, 50 * scalar3, 6000*scalar3)
gives the same result as
np.where(scalar2 > 0.8, 50 * scalar3, 6000*scalar3)
But that should not be the case …
scalar2 is a scalar defined between 0 and 1 by the way.