create 3d array from 2d array based on value matlab code example
Example: apply 2d mask to 3d array python
field3d_mask = np.broadcast_to(field2d > 0.3, field3d.shape)
field3d_mask = np.broadcast_to(field2d > 0.3, field3d.shape)