Skip to content

Commit

Permalink
Work on SumRowColumn-v1.rst re #9567
Browse files Browse the repository at this point in the history
Signed-off-by: Karl Palmen <karl.palmen@stfc.ac.uk>
  • Loading branch information
KarlPalmen committed Jun 20, 2014
1 parent 67f614f commit 5dbea3b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Code/Mantid/docs/source/algorithms/SumRowColumn-v1.rst
Expand Up @@ -22,4 +22,26 @@ ChildAlgorithms used
The :ref:`algm-Integration` algorithm is used to sum up each
spectrum between XMin & XMax.

Usage
-----
**Example - Sum rows of a 128*128 workspace**

.. testcode:: ExSumRowColumnSimple

# Create a workspace with 128*128 spectra each with 5 values (only 128*128 or 192*192 are valid)
ws = CreateSampleWorkspace("Histogram", NumBanks=1, BankPixelWidth=128, BinWidth=10, Xmax=50)

# Run algorithm with Horizontal orientation
OutputWorkspace = SumRowColumn( ws, "D_H")

print "Input workspace has",ws.getNPoints(),"points."
print "Output workspace has",OutputWorkspace.getNPoints(),"points."

Output:

.. testoutput:: ExSumRowColumnSimple

Input workspace has 81920 points.
Output workspace has 128 points.

.. categories::

0 comments on commit 5dbea3b

Please sign in to comment.