def addData(self, other, index, time):

    xoffset = index[0]*other.xdim
    yoffset = index[1]*other.ydim     
    zoffset = index[2]*other.zdim
    
    self.data [ time-self.timerange[0], 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/timecube.py/TimeCubeFloat32.addData