fabio.openimage
index
/usr/lib/python2.5/site-packages/fabio/openimage.py

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

 
Modules
       
fabio.GEimage
fabio.OXDimage
fabio.adscimage
fabio.bruker100image
fabio.brukerimage
fabio.edfimage
fabio
fabio.fit2dmaskimage
fabio.fit2dspreadsheetimage
fabio.mar345image
fabio.marccdimage
fabio.pnmimage
fabio.tifimage

 
Functions
       
do_magic(byts)
Try to interpret the bytes starting the file as a magic number
openheader(filename)
return only the header
openimage(filename)
Try to open an image

 
Data
        MAGIC_NUMBERS = [('FORMAT : 86', 'bruker'), ('MM\x00*', 'tif'), ('II*\x00', 'tif'), ('{\nHEA', 'adsc'), ('{', 'edf'), ('\r{', 'edf'), ('\n{', 'edf'), ('ADEPT', 'GE'), ('OD', 'OXD'), ('-\x04', 'mar345'), ('\x04-', 'mar345'), ('M\x00\x00\x00A\x00\x00\x00S\x00\x00\x00K\x00\x00\x00', 'fit2dmask')]