def xyImage ( self ):
    zdim,ydim,xdim = self.data.shape[1:]
    return Image.frombuffer ( 'L', (xdim,ydim), self.data[0,0,:,:].flatten(), 'raw', 'L', 0, 1 )
Create xy slice
dataset/ETHPy150Open neurodata/ndstore/ocpca/timecube.py/TimeCube8.xyImage