Package fabio :: Module brukerimage :: Class brukerimage
[hide private]
[frames] | no frames]

Class brukerimage

source code

           object --+    
                    |    
fabioimage.fabioimage --+
                        |
                       brukerimage
Known Subclasses:

Read and eventually write ID11 bruker (eg smart6500) images

Instance Methods [hide private]
 
_readheader(self, infile)
the bruker format uses 80 char lines in key : value format In the fisrt 512*5 bytes of the header there should be a HDRBLKS key, whose value denotes how many 512 byte blocks are in the total header.
source code
 
read(self, fname)
Read in and unpack the pixels (including overflow table
source code
 
write(self, fname)
Writes the image as EDF...
source code
 
write2(self, fname)
FIXME: what is this?
source code

Inherited from fabioimage.fabioimage: __init__, add, getframe, getheader, getmax, getmean, getmin, getstddev, integrate_area, make_slice, next, previous, readheader, rebin, resetvals, toPIL16, update_header

Inherited from fabioimage.fabioimage (private): _compressed_stream, _open

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __headerstring__ = ''
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_readheader(self, infile)

source code 

the bruker format uses 80 char lines in key : value format In the fisrt 512*5 bytes of the header there should be a HDRBLKS key, whose value denotes how many 512 byte blocks are in the total header. The header is always n*5*512 bytes, otherwise it wont contain whole key: value pairs

Overrides: fabioimage.fabioimage._readheader

read(self, fname)

source code 

Read in and unpack the pixels (including overflow table

Overrides: fabioimage.fabioimage.read

write(self, fname)

source code 

Writes the image as EDF
FIXME - this should call edfimage.write if that is wanted?
eg:     obj = edfimage(data = self.data, header = self.header)
        obj.write(fname)
        or maybe something like: edfimage.write(self, fname)

Overrides: fabioimage.fabioimage.write