Package xdp :: Package io :: Module xafs
[show private | hide private]
[frames | no frames]

Module xdp.io.xafs

Read and write files using the MR-CAT XAFS file format, version 0.3.
Classes
Xafs The contents of the header of an MR-CAT XAFS file.

Function Summary
  _xafs_parseHeaderField(line, fieldName, type)
  _xafs_readHeader(stream, header)
  _xafs_writeHeader(header, stream)
  _xafs_writeHeaderField(header, stream, attributeName, fieldName, type)
2-tuple of the form (header, data) readXafsFile(stream)
Read an XAFS header and data from an input stream.

Variable Summary
int _xafs_ARRAY = 3                                                                     
list _xafs_fields = [('RingEnergy', 'Ring energy', 1), ('E0',...
int _xafs_FLOAT = 2                                                                     
int _xafs_RING = 1                                                                     

Function Details

readXafsFile(stream)

Read an XAFS header and data from an input stream.
Parameters:
stream - input stream
           (type=file)
Returns:
header and data
           (type=2-tuple of the form (header, data))
Raises:
IOError - the XAFS header or data was malformed.

Variable Details

_xafs_ARRAY

Type:
int
Value:
3                                                                     

_xafs_fields

Type:
list
Value:
[('RingEnergy', 'Ring energy', 1),
 ('E0', 'E0', 2),
 ('NumRegions', 'NUM_REGIONS', 2),
 ('SRB', 'SRB', 3),
 ('SRSS', 'SRSS', 3),
 ('SPP', 'SPP', 3),
 ('SettlingTime', 'Settling time', 2)]                                 

_xafs_FLOAT

Type:
int
Value:
2                                                                     

_xafs_RING

Type:
int
Value:
1                                                                     

Generated by Epydoc 2.1 on Wed Jul 20 11:51:06 2005 http://epydoc.sf.net