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

Class edfimage

source code

fabioimage.fabioimage --+
                        |
                       edfimage

Read and try to write the ESRF edf data format

Instance Methods [hide private]
 
_readheader(self, infile)
Read in a header in some EDF format from an already open file
source code
 
read(self, fname)
Read in header into self.header and...
source code
 
swap_needed(self)
Decide if we need to byteswap
source code
 
_fixheader(self)
put some rubbish in to allow writing
source code
 
write(self, fname, force_type=None)
Try to write a file check we can write zipped also mimics that fabian was writing uint16 (we sometimes want floats)
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

Class Variables [hide private]
Method Details [hide private]

_readheader(self, infile)

source code 

Read in a header in some EDF format from an already open file

TODO : test for minimal attributes?

Overrides: fabioimage.fabioimage._readheader

read(self, fname)

source code 

Read in header into self.header and
    the data   into self.data

Overrides: fabioimage.fabioimage.read

write(self, fname, force_type=None)

source code 

Try to write a file check we can write zipped also mimics that fabian was writing uint16 (we sometimes want floats)

Parameters:
  • force_type - can be numpy.uint16 or simply "float"
Returns:
None
Overrides: fabioimage.fabioimage.write