fabio.brukerimage.brukerimage

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

# Class brukerimage

source code

               object --+
                        |
    fabioimage.fabioimage --+
                            |
                           brukerimage

Known Subclasses:
  - bruker100image.bruker100image

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, frame=None) 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? |
Inherited from `fabioimage.fabioimage`: `__init__`, `add`, `convert`, `getclassname`, `getframe`, `getheader`, `getmax`, `getmean`, `getmin`, `getstddev`, `integrate_area`, `load`, `make_slice`, `next`, `previous`, `readROI`, `readheader`, `rebin`, `resetvals`, `save`, `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__`

Static Methods | [hide private]
Inherited from `fabioimage.fabioimage`: `checkData`, `checkHeader`

Class Variables | [hide private]
| __headerstring__ = ``'````'``
Inherited from `fabioimage.fabioimage` (private): `_need_a_real_file`, `_need_a_seek_to_read`

Properties | [hide private]
Inherited from `fabioimage.fabioimage`: `classname` 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, frame=None) | 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?
            obj = edfimage(data = self.data, header = self.header)
            obj.write(fname)
            or maybe something like: edfimage.write(self, fname)
Overrides: fabioimage.fabioimage.write