#NEWLINE# def xyImage( self ) : #NEWLINE# #INDENT# 'Create xy slice' #NEWLINE# ( zdim , ydim , xdim ) = self . data . shape [ 1 : ] #NEWLINE# return Image . frombuffer ( 'L' , ( xdim , ydim ) , self . data [ 0 , 0 , : , : ] . flatten ( ) , 'raw' , 'L' , 0 , 1 )