#NEWLINE# def _get_data_array( self , totim = 0 ) : #NEWLINE# #INDENT# '\n        Get the three dimensional data array for the\n        specified kstp and kper value or totim value.\n\n        ' #NEWLINE# if ( totim > 0.0 ) : #NEWLINE# #INDENT# keyindices = np . where ( ( self . recordarray [ 'totim' ] == totim ) ) [ 0 ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise Exception ( 'Data not found...' ) #NEWLINE# #UNINDENT# data = np . empty ( ( self . nlay , self . nrow , self . ncol ) , dtype = self . realtype ) #NEWLINE# data [ : , : , : ] = np . nan #NEWLINE# for idx in keyindices : #NEWLINE# #INDENT# ipos = self . iposarray [ idx ] #NEWLINE# ilay = self . recordarray [ 'ilay' ] [ idx ] #NEWLINE# if self . verbose : #NEWLINE# #INDENT# print ( 'Byte position in file: {0}' . format ( ipos ) ) #NEWLINE# #UNINDENT# self . file . seek ( ipos , 0 ) #NEWLINE# data [ ( ilay - 1 ) , : , : ] = self . _read_data ( ) #NEWLINE# #UNINDENT# return data