Don't you mean:

    outvol[np.where(vol>thres)] = vol[np.where(vol>thresh)]

?