HappyDoc Generated Documentation Class: dsn6_map

. / VolumeData / dsn6 / dsn6_format.py / dsn6_map 

Methods   
  read_data 
read_data (
        self,
        file,
        progress,
        )

Data is in 8 by 8 by 8 blocks of bytes.

  matrix 
matrix ( self,  progress )
  read_integers 
read_integers (
        self,
        file,
        count,
        )

Assume big-endian byte order in file.

Exceptions   

SyntaxError, 'Unexpected end of file reading %d bytes' %( 2 * count )

  read_dsn6_header 
read_dsn6_header ( self,  file )
Exceptions   

SyntaxError, 'Scale factor normalization parameter is 0.'
SyntaxError, 'Unit cell normalization parameter is 0.'

  read_brix_header 
read_brix_header ( self,  file )
Exceptions   

SyntaxError, error_msg % offset
SyntaxError, 'File does not start with :-)'

  __init__ 
__init__ ( self,  path )
Exceptions   

SyntaxError, ('File size %d is too small' % file_size + ' for grid size listed in header %s' % str( self.extent ) )
SyntaxError, 'Negative grid size in header %s' % str( self.extent )


This document was automatically generated Fri May 30 21:13:41 2008 by HappyDoc version 3.1