I simply want it so when the temperature is above 15.5 AND there is hail I want hail to equal 3 and otherwise I just want hail to equal hail.
hail = np.where((hail > 0 and tmp > 15.5).all, 3, hail)
My error is:
The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()