def addData_new ( self, other, index ):

    xoffset = index[0]*other.xdim
    yoffset = index[1]*other.ydim
    zoffset = index[2]*other.zdim

    np.copyto ( self.data[zoffset:zoffset+other.zdim,yoffset:yoffset+other.ydim,xoffset:xoffset+other.xdim],other.data [:,:,:] )
Add data to a larger cube from a smaller cube
dataset/ETHPy150Open neurodata/ndstore/ocpca/cube.py/Cube.addData_new