I'd like to copy data from one 3D array to another 3D array at the indices where a condition is true for a different 2D array. All three arrays have the same first two dimensional shapes (x,y coords).
I thought it'd be something like,
a[c == cond] = b[c == cond]
But in this case it is resulting in corrupted/garbled data when inspected. Is this the wrong way to go about this or is this the correct way and there is a problem with my code somewhere else?
Thanks!