Package dap :: Package plugins :: Package matlab :: Module matfile
[hide private]
[frames] | no frames]

Module matfile

source code

Module with Class and Functions to read MatLab(tm) 5 compatible data files

2005-07-01: fixed problem with big-endian machines. 2006-05-25: moved to numpy module and removed unnecessary code.

Classes [hide private]
  matStruct
Python representation of a ML Struct Array.
  matObject
Python representation of a ML Object.
  matFile

Functions [hide private]
  _split_fixed_width(sequence, width)
Split a sequence into fixed width parts and return a list of them.
  read(filename)
Read a complete ML file and return content as a Workspace.

Variables [hide private]
  __author__ = ['Heiko Henkelmann <heiko@hhenkelmann.de>', 'Roberto...
  __version__ = (0, 1, 2)
  miINT8 = 1
  miUINT8 = 2
  miINT16 = 3
  miUINT16 = 4
  miINT32 = 5
  miUINT32 = 6
  miSINGLE = 7
  miDOUBLE = 9
  miINT64 = 12
  miUINT64 = 13
  miMATRIX = 14
  miNumbers = (1, 2, 3, 4, 5, 6, 7, 9, 12, 13)
  miDataTypes = {1: ('miINT8', 1, '1'), 2: ('miUINT8', 1, '1'), 3: (...
  miDataTypesArray = {1: ('miINT8', 1, 'b'), 2: ('miUINT8', 1, 'B'), 3: (...
  mxCELL_CLASS = 1
  mxSTRUCT_CLASS = 2
  mxOBJECT_CLASS = 3
  mxCHAR_CLASS = 4
  mxSPARSE_CLASS = 5
  mxDOUBLE_CLASS = 6
  mxSINGLE_CLASS = 7
  mxINT8_CLASS = 8
  mxUINT8_CLASS = 9
  mxINT16_CLASS = 10
  mxUINT16_CLASS = 11
  mxINT32_CLASS = 12
  mxUINT32_CLASS = 13
  mxArrays = (4, 6, 7, 8, 9, 10, 11, 12, 13)
  mxArrayTypes = {1: 'mxCELL_CLASS', 2: 'mxSTRUCT_CLASS', 3: 'mxOBJEC...

Imports: struct, array, cStringIO, numpy


Function Details [hide private]

_split_fixed_width(sequence, width)

source code 
Split a sequence into fixed width parts and return a list of them.

read(filename)

source code 
Read a complete ML file and return content as a Workspace.

Variables Details [hide private]

__author__

None
Value:
['Heiko Henkelmann <heiko@hhenkelmann.de>',
 'Roberto De Almeida <rob@pydap.org>']                                 
      

__version__

None
Value:
(0, 1, 2)                                                              
      

miINT8

None
Value:
1                                                                     
      

miUINT8

None
Value:
2                                                                     
      

miINT16

None
Value:
3                                                                     
      

miUINT16

None
Value:
4                                                                     
      

miINT32

None
Value:
5                                                                     
      

miUINT32

None
Value:
6                                                                     
      

miSINGLE

None
Value:
7                                                                     
      

miDOUBLE

None
Value:
9                                                                     
      

miINT64

None
Value:
12                                                                    
      

miUINT64

None
Value:
13                                                                    
      

miMATRIX

None
Value:
14                                                                    
      

miNumbers

None
Value:
(1, 2, 3, 4, 5, 6, 7, 9, 12, 13)                                       
      

miDataTypes

None
Value:
{1: ('miINT8', 1, '1'),
 2: ('miUINT8', 1, '1'),
 3: ('miINT16', 2, 's'),
 4: ('miUINT16', 2, 's'),
 5: ('miINT32', 4, 'l'),
 6: ('miUINT32', 4, 'l'),
 7: ('miSINGLE', 4, 'f'),
 9: ('miDOUBLE', 8, 'd'),
...                                                                    
      

miDataTypesArray

None
Value:
{1: ('miINT8', 1, 'b'),
 2: ('miUINT8', 1, 'B'),
 3: ('miINT16', 2, 'h'),
 4: ('miUINT16', 2, 'H'),
 5: ('miINT32', 4, 'l'),
 6: ('miUINT32', 4, 'L'),
 7: ('miSINGLE', 4, 'f'),
 9: ('miDOUBLE', 8, 'd'),
...                                                                    
      

mxCELL_CLASS

None
Value:
1                                                                     
      

mxSTRUCT_CLASS

None
Value:
2                                                                     
      

mxOBJECT_CLASS

None
Value:
3                                                                     
      

mxCHAR_CLASS

None
Value:
4                                                                     
      

mxSPARSE_CLASS

None
Value:
5                                                                     
      

mxDOUBLE_CLASS

None
Value:
6                                                                     
      

mxSINGLE_CLASS

None
Value:
7                                                                     
      

mxINT8_CLASS

None
Value:
8                                                                     
      

mxUINT8_CLASS

None
Value:
9                                                                     
      

mxINT16_CLASS

None
Value:
10                                                                    
      

mxUINT16_CLASS

None
Value:
11                                                                    
      

mxINT32_CLASS

None
Value:
12                                                                    
      

mxUINT32_CLASS

None
Value:
13                                                                    
      

mxArrays

None
Value:
(4, 6, 7, 8, 9, 10, 11, 12, 13)                                        
      

mxArrayTypes

None
Value:
{1: 'mxCELL_CLASS',
 2: 'mxSTRUCT_CLASS',
 3: 'mxOBJECT_CLASS',
 4: 'mxCHAR_CLASS',
 5: 'mxSPARSE_CLASS',
 6: 'mxDOUBLE_CLASS',
 7: 'mxSINGLE_CLASS',
 8: 'mxINT8_CLASS',
...