LoadAscii

From MantidProject

Jump to: navigation, search

Summary

Loads data from a text file and stores it in a 2D workspace (Workspace2D class).

Properties

Order Name Direction Type Default Description
1 Filename Input string Mandatory The name of the text file to read, including its full or relative path. The file extension must be .tst, .dat, or .csv
2 OutputWorkspace Output Workspace2D Mandatory The name of the workspace that will be created, filled with the read-in data and stored in the Analysis Data Service.
3 Separator Input string "CSV" The separator between data columns in the data file. The possible values are "CSV", "Tab", "Space", "SemiColon", or "Colon".
4 Unit Input string "Energy" The unit to assign to the X axis (anything known to the Unit Factory or "Dimensionless")

Description

The LoadAscii algorithm reads in spectra data from a text file and stores it in a Workspace2D as data points. The data in the file must be organized in columns separated by commas, tabs, spaces, colons or semicolons. Only one separator type can be used throughout the file. Use "Separator" property to tell the algorithm which separator to use. The columns can contain X, Y ot error values. The first column in the file has to have the X values which are common for all spectra in the file. The X column is followed by pairs of of columns containing Y and error values. For a workspace of n specrta there must be 2n+1 column in the data file.

Personal tools
Create a book