def getTimeCube(self, ch, zidx, timestamp, resolution, update=False):

    # get the size of the image and cube
    [xcubedim, ycubedim, zcubedim] = cubedim = self.datasetcfg.cubedim[resolution] 
    cube = Cube.getCube(cubedim, ch.getChannelType(), ch.getDataType())

    # get the block from the database
    cubestr = self.kvio.getTimeCube(ch, zidx, timestamp, resolution, update)

    if not cubestr:
      cube.zeros()
    else:
      # Handle the cube format here and decompress the cube
      if self.NPZ:
        cube.fromNPZ(cubestr)
      else:
        cube.fromBlosc(cubestr)

    return cube
Load a time cube from the database
dataset/ETHPy150Open neurodata/ndstore/ocpca/ocpcadb.py/OCPCADB.getTimeCube