LoadIsawPeaks v1

../_images/LoadIsawPeaks-v1_dlg.png

LoadIsawPeaks dialog.

Summary

Load an ISAW-style .peaks file into a PeaksWorkspace.

Properties

Name Direction Type Default Description
Filename Input string Mandatory Path to an ISAW-style .peaks filename. Allowed extensions: [‘.peaks’, ‘.integrate’]
OutputWorkspace Output Workspace Mandatory Name of the output workspace.

Description

Reads an ISAW-style .peaks or .integrate file into a PeaksWorkspace. Any detector calibration information is ignored.

NOTE: The instrument used is determined by reading the ‘Instrument:’ and ‘Date:’ tags at the start of the file.If the date is not present, the latest Instrument Definition File is used.

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

peaks = LoadIsawPeaks('TOPAZ_1204.peaks')
print "Number of peaks entries", peaks.getNumberPeaks()

Output:

Number of peaks entries 36

Categories: Algorithms | Crystal\DataHandling | DataHandling\Isaw

Source

C++ source: LoadIsawPeaks.cpp

C++ header: LoadIsawPeaks.h