HappyDoc Generated Documentation ./VolumeData/readarray.py

. / VolumeData / readarray.py 

Functions   
  read_text_floats 
read_text_floats (
        path,
        byte_offset,
        size,
        array=None,
        transpose=None,
        line_format=None,
        progress=None,
        )

Read ascii float values on as many lines as needed to get count values.

  split_fields 
split_fields (
        line,
        field_size,
        max_fields,
        )
  read_array 
read_array (
        path,
        byte_offset,
        ijk_origin,
        ijk_size,
        ijk_step,
        full_size,
        type,
        byte_swap,
        progress=None,
        )

Read part of a matrix from a binary file making at most one copy of array in memory.

The code array.fromstring(file.read()) creates two copies in memory. The numpy.fromfile() routine can't read into an existing array.

  allocate_array 
allocate_array (
        ijk_size,
        value_type=None,
        ijk_step=None,
        progress=None,
        )
  read_float_lines 
read_float_lines (
        f,
        array,
        line_format,
        progress=None,
        )
Exceptions   

SyntaxError, msg

  report_memory_error 
report_memory_error (
        isz,
        jsz,
        ksz,
        value_type,
        )
Exceptions   

CancelOperation, e

  read_full_array 
read_full_array (
        path,
        byte_offset,
        size,
        type,
        byte_swap,
        progress=None,
        block_size=None,
        )

Read an array from a binary file making at most one copy of array in memory.

The code array.fromstring(file.read()) creates two copies in memory. The numpy.fromfile() routine can't read into an existing array.

Classes   

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