I have a 3D array of shape 200, 130, 131 (x,y,z). Which is basically mask file. lets say it is called "maskCoords". I want to extend this to my original data shape of 512*512*485 (x,y,z). But keeping the mask unaltered and filling rest of the indices as zeros.
So, I created a empty 3D array like:
mask3d = np.zeros_like(MainData3d)
But Now I am unable to understand how to fill this mask3d array with the values saved in my masked file. I tried to do like
mask3d[maskCoords]=1
But this does not work.When I overlap Maindata3d and mask3d masked areas are not visible. Any help or idea would be appreciated.