ImageD11.data | index /sware/exp/fable/standalone/redhate4-a64/lib/python2.5/site-packages/ImageD11/data.py

`ImageD11 data object
Try not to blown away, it is just a Numeric array with a
dictionary tagged on so that pseudodata (eg motor positions etc)
can follow around together. Throw whatever it is that you need
in the dictionary
TODO : rebinning - is this generally useful??
TODO : PILimage methods ??
TODO : ROI integration - need to define the slice mapping better to
: be compatible with fabian
Added some methods from:
fabian:edfimage.py by:
Authors: Henning O. Sorensen & Erik Knudsen
Center for Fundamental Research: Metal Structures in Four Dimensions
Risoe National Laboratory
Frederiksborgvej 399
DK-4000 Roskilde
email:erik.knudsen@risoe.dk`

Modules
`` |  |
logging | numpy.oldnumeric |  |

Classes
`` |  | data
class data
`` | `Generic datatype for handling 2D images Just a wrapper for Numeric arrays now, so that information from file headers can be transported around in a dict`
| Methods defined here: __add__(self, other) __div__(self, other) __init__(self, array, header=None) `Minimal things - dimensions and a numeric array` __mul__(self, other) __sub__(self, other) getheader(self) `return the header` getmax(self) `Return data maximum value (type matches data)` getmean(self) `return mean` getmin(self) `Return data minimum value (type matches data)` getstddev(self) `return standard deviation of image` resetvals(self) `resets properties in the event of data changing`