Package xdp :: Module transformation :: Class RebinTransform
[show private | hide private]
[frames | no frames]

Class RebinTransform

Transformation --+
                 |
                RebinTransform


RebinTransform objects encasulate the process of performing XAFS data reduction on one or more vectors.

See xdp.data.rebin() for more information about rebinning.
Method Summary
  __init__(self, Eo, offset, estep, kstep, energyName, *columnNames)
Create a new RebinTransfrom object which will rebin the columns 'columnNames' using the energy values from 'energyName'.
  apply(self, data)
Rebin the energy column EnergyName and columns of ColumnNames from the object 'data' and return a new Data object containing the rebinned values in place of the originals.
    Inherited from Transformation
  __call__(self, data)
Apply this transformation to the xdp.Data object 'data'.

Method Details

__init__(self, Eo, offset, estep, kstep, energyName, *columnNames)
(Constructor)

Create a new RebinTransfrom object which will rebin the columns 'columnNames' using the energy values from 'energyName'.

'Eo', 'offset', 'estep', and 'kstep' are all parameters to xdp.data.rebin(), and mean the same thing here.

apply(self, data)

Rebin the energy column EnergyName and columns of ColumnNames from the object 'data' and return a new Data object containing the rebinned values in place of the originals.

An xdp.ColumnNameError is raised if any of the source column names specified in the constructor are invalid.
Overrides:
xdp.transformation.Transformation.apply

Generated by Epydoc 2.1 on Wed Jul 20 11:51:05 2005 http://epydoc.sf.net