fabio.openimage

Package fabio :: Module openimage |
[hide private]
[frames] | no frames]

# Module openimage

source code

    Authors: Henning O. Sorensen & Erik Knudsen
             Center for Fundamental Research: Metal Structures in Four Dimensions
             Risoe National Laboratory
             Frederiksborgvej 399
             DK-4000 Roskilde
             email:henning.sorensen@risoe.dk

    mods for fabio by JPW

Functions | [hide private]
do_magic(byts) Try to interpret the bytes starting the file as a magic number | source code
openimage(filename, frame=None) Try to open an image | source code
openheader(filename) return only the header | source code
_openimage(filename) determine which format for a filename and return appropriate class which can be used for opening the image | source code

Variables | [hide private]
| logger = `logging.getLogger("openimage")`
| MAGIC_NUMBERS = ``[``(``'``FORMAT : 86``'``,` `'``bruker``'``)``,` `(``'``MM\x00*``'``,``...``
| __package__ = ``'``fabio``'``

Variables Details | [hide private]

  ### MAGIC_NUMBERS Value:
      [('FORMAT :        86', 'bruker'),
       ('MM\x00*', 'tif'),
       ('II*\x00\x08\x00', 'marccd'),
       ('II*\x00\x82\x00', 'pilatus'),
       ('II*\x00', 'tif'),
       ('{\nHEA', 'adsc'),
       ('{', 'edf'),
       ('\r{', 'edf'),
      ...