Rebin
From MantidProject
Contents |
Summary
Rebins data with new X bin boundaries.
Properties
| Order | Name | Direction | Type | Default | Description |
|---|---|---|---|---|---|
| 1 | InputWorkspace | Input | Workspace | Mandatory | The input workspace. |
| 2 | OutputWorkspace | Output | Workspace | Mandatory | The result of rebinning. |
| 3 | Params | Input | String | Mandatory | The new bin boundaries in the form:
|
Description
The algorithm rebins data with new bin boundaries. The 'params' property defines new boundaries in intervals
. Positive
make constant width bins, whilst negative ones create logarithmic binning using the formula
This algorithms is useful both in data reduction, but also in remapping ragged workspaces to a regular set of bin boundaries.
The bin immediately before the specified boundaries x2, x3, ... xi is likely to have a different width from its neighbours because there can be no gaps between bins. Rebin ensures that any of these space filling bins cannot be less than 25% or more than 125% of the width that was specified.
Example Rebin param strings
- 0,100,20000
- From 0 rebin in constant size bins of 100 up to 20,000
- 2,-0.035,10
- From 10 rebin in Logarithmic bins of 0.035 up to 10
- 0,100,10000,200,20000
- From 0 rebin in steps of 100 to 10,000 then steps of 200 to 20,000
Usage
Python
Rebin("InWS2","OutWS","x1,dx1,x2")
Source Code
Header SimpleRebin.h
Source SimpleRebin.cpp
