HappyDoc Generated Documentation ./VolumeData/readarray.py

. / VolumeData / readarray.py 

Functions   
  read_text_floats 
read_text_floats (
        path,
        byte_offset,
        size,
        array=None,
        transpose=False,
        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=float32,
        ijk_step=( 1, 1, 1 ),
        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=2 ** 20,
        )

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 Thu Nov 15 14:09:29 2007 by HappyDoc version 3.0.a1