Table of Contents

Class: NetCDF_Grid VolumeData/netcdf/netcdf_grid.py

Read NetCDF 3 dimensional array data.

Use variables or global attributes xyz_origin and xyz_step, each triples of floats, to define embedding of 3D data matrices in xyz coordinate space.

3D array variables can have any name. Every 3D array is considered. Each becomes a separate component. If they don't all have the same size then one size is chosen arbitrarily and only 3D arrays with that size are used.

A color can be associated with each 3D array saved as an rgba value as an attribute called rgba or with a variable with name matching the array name with _color appended.

NetCDF doesn't have unsigned integral types. To indicate a 3D integer array is supposed to be unsigned save the Numeric Python typecode in an attribute called numeric_python_typecode or in a variable named the same as the 3D array with "_typecode" appended.

Base Classes   
Grid_Data
Methods   
__init__
default_color
read_component_name
read_components
read_variable_color
read_variable_name
read_variable_typecode
read_xyz_origin
read_xyz_step
  __init__ 
__init__ ( self,  path )

  default_color 
default_color ( self,  n )

  read_component_name 
read_component_name ( self,  f )

  read_components 
read_components (
        self,
        f,
        path,
        )

  read_variable_color 
read_variable_color (
        self,
        f,
        name,
        )

  read_variable_name 
read_variable_name (
        self,
        f,
        name,
        )

  read_variable_typecode 
read_variable_typecode (
        self,
        f,
        name,
        )

  read_xyz_origin 
read_xyz_origin ( self,  f )

  read_xyz_step 
read_xyz_step ( self,  f )


Table of Contents

This document was automatically generated on Tue Nov 5 16:56:43 2002 by HappyDoc version 2.0.1