Trees | Indices | Help |
|
---|
|
Reads a bytestream Authors: Jon Wright Henning O. Sorensen & Erik Knudsen ESRF Risoe National Laboratory
|
|||
|
|
|||
DATATYPES =
|
|||
__package__ =
|
|
Reads in a bytestream from a file (which may be a string indicating a filename, or an already opened file (should be "rb")) offset is the position (in bytes) where the pixel data start nbytespp = number of bytes per pixel type can be int or float (4 bytes pp) or double (8 bytes pp) signed: normally signed data 'y', but 'n' to try to get back the right numbers when unsigned data are converted to signed (python once had no unsigned numeric types.) swap, normally do not bother, but 'y' to swap bytes typeout is the numpy type to output, normally uint16, but more if overflows occurred x and y are the pixel dimensions TODO : Read in regions of interest PLEASE LEAVE THE STRANGE INTERFACE ALONE - IT IS USEFUL FOR THE BRUKER FORMAT |
|
DATATYPES
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Jun 20 03:53:27 2014 | http://epydoc.sourceforge.net |