Table of Contents
Name | Direction | Type | Default | Description |
---|---|---|---|---|
InputFilename | Input | string | Mandatory | The name of the RAW file to read, including its full or relative path. (N.B. case sensitive if running on Linux). Allowed extensions: [‘.raw’, ‘.s*’, ‘.add’] |
OutputFilename | Input | string | Mandatory | The name of the Nexus file to write, as a full or relative path. Allowed extensions: [‘.nxs’, ‘.nx5’, ‘.xml’] |
The algorithm SaveISISNexus will write a Nexus data file from the given RAW file. The output file name can be an absolute or relative path and should have the extension .nxs, .nx5 or .xml. Warning - using XML format can be extremely slow for large data sets and generate very large files. Both the extensions nxs and nx5 will generate HDF5 files.
import os
# Create a file path in the user home directory
filePath = os.path.expanduser('~/SavedISISNexusFile.nxs')
# Save a RAW file in Nexus format
SaveISISNexus('IRS26173.raw',filePath)
Categories: Algorithms | DataHandling\Nexus
C++ source: SaveISISNexus.cpp (last modified: 2017-05-26)
C++ header: SaveISISNexus.h (last modified: 2016-10-27)