Table of Contents

Class: dsn6_map VolumeData/dsn6/dsn6_format.py

Methods   
__init__
matrix
read_data
read_header
read_integers
  __init__ 
__init__ ( self,  path )

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

  read_data 
read_data ( self,  file )

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

  read_header 
read_header ( self,  file )

Exceptions   
SyntaxError, 'Scale factor normalization parameter is 0.'
SyntaxError, 'Unit cell normalization parameter is 0.'
  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 )

Table of Contents

This document was automatically generated on Wed Mar 26 19:02:38 2003 by HappyDoc version 2.1