\(\renewcommand\AA{\unicode{x212B}}\)

SaveISISNexus v1

../_images/ImageNotFound.png

Enable screenshots using DOCS_SCREENSHOTS in CMake

Summary

The SaveISISNexus algorithm will convert a RAW file to a NeXus file.

See Also

SaveNexusProcessed, SaveNexus, LoadNexus

Properties

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’]

Description

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.

Usage

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: AlgorithmIndex | DataHandling\Nexus

Source

C++ header: SaveISISNexus.h

C++ source: SaveISISNexus.cpp