I have two 2D arrays in NumPy of equal size, and am trying to identify the indices where two conditions are met. Here's what I try and what I get. Any suggestions? I'm using np.where
and this does not seem to be the correct choice.
Thanks for any help.
ind_direct_pos = np.where((bz_2D_surface3 > 0.0) and (jz_2D_surface3 > 0.0))
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()