PoldiPeakSummary v1

../_images/PoldiPeakSummary-v1_dlg.png

PoldiPeakSummary dialog.

Summary

The algorithm takes a table with peaks from POLDI analysis algorithms and creates a summary table.

Properties

Name Direction Type Default Description
InputWorkspace Input TableWorkspace Mandatory Input workspace containing a table with peaks from a POLDI fit routine.
OutputWorkspace Output TableWorkspace   Output table workspace that contains

Description

This algorithm takes the peak table resulting from one of the POLDI peak fitting routines (for example PoldiFitPeaks1D v2) and summarizes the data in another table with the relevant information.

Usage

Note

To run these usage examples please first download the usage data, and add these to your path. In MantidPlot this is done using Manage User Directories.

Example - PoldiPeakSummary

# Load data file and instrument, perform correlation analysis
raw_6904 = LoadSINQFile(Filename = "poldi2013n006904.hdf", Instrument = "POLDI")
LoadInstrument(raw_6904, InstrumentName = "POLDI")
correlated_6904 = PoldiAutoCorrelation(raw_6904)

# Run peak search algorithm, store peaks in TableWorkspace
peaks_6904 = PoldiPeakSearch(correlated_6904)

PoldiFitPeaks1D(InputWorkspace = correlated_6904, FwhmMultiples = 4.0,
                PeakFunction = "Gaussian", PoldiPeakTable = peaks_6904,
                OutputWorkspace = "peaks_refined_6904",
                FitPlotsWorkspace = "fit_plots_6904")

summary_6904 = PoldiPeakSummary(mtd["peaks_refined_6904"])

print "Number of refined peaks:", summary_6904.rowCount()
print "Number of columns that describe a peak:", summary_6904.columnCount()

Output:

Number of refined peaks: 13
Number of columns that describe a peak: 6

Categories: Algorithms | SINQ | Poldi