ImageD11.columnfile
index
c:\python25\lib\site-packages\imaged11\columnfile.py

columnfile represents an ascii file with titles begining "#"
and multiple lines of data
 
An equals sign "=" on a "#" line implies a parameter = value pair

 
Modules
       
numpy.oldnumeric
ImageD11.parameters

 
Classes
       
columnfile
newcolumnfile

 
class columnfile
    Class to represent an ascii file containing multiple named columns
 
  Methods defined here:
__init__(self, filename, new=False)
addcolumn(self, col, name)
copy(self)
filter(self, mask)
mask is an nrows long array of true/false
readfile(self, filename)
Reads in an ascii columned file
set_attributes(self)
Set object vars to point into the big array
writefile(self, filename)
write an ascii columned file

 
class newcolumnfile(columnfile)
    Just like a columnfile, but for creating new
files
 
  Methods defined here:
__init__(self, titles)

Methods inherited from columnfile:
addcolumn(self, col, name)
copy(self)
filter(self, mask)
mask is an nrows long array of true/false
readfile(self, filename)
Reads in an ascii columned file
set_attributes(self)
Set object vars to point into the big array
writefile(self, filename)
write an ascii columned file

 
Functions
       
clean(str_lst)
trim whitespace from titles

 
Data
        FLOATS = ['fc', 'sc', 'omega', 'f_raw', 's_raw', 'sigf', 'sigs', 'covsf', 'sigo', 'covso', 'covfo', 'sum_intensity', 'IMax_int', 'IMax_o', 'avg_intensity', 'Min_o', 'Max_o', 'dety', 'detz', 'gx', ...]
FORMATS = {'IMax_f': '%.0f', 'IMax_int': '%.4f', 'IMax_o': '%.4f', 'IMax_s': '%.0f', 'Max_f': '%.0f', 'Max_o': '%.4f', 'Max_s': '%.0f', 'Min_f': '%.0f', 'Min_o': '%.4f', 'Min_s': '%.0f', ...}
INTS = ['Number_of_pixels', 'IMax_f', 'IMax_s', 'Min_f', 'Max_f', 'Min_s', 'Max_s', 'spot3d_id', 'h', 'k', 'l']
f = 'l'