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

SaveDiffCal v1

Summary

Saves a calibration file for powder diffraction

See Also

LoadDiffCal

Properties

Name

Direction

Type

Default

Description

CalibrationWorkspace

Input

TableWorkspace

An output workspace.

GroupingWorkspace

Input

GroupingWorkspace

Optional: A GroupingWorkspace giving the grouping info.

MaskWorkspace

Input

MaskWorkspace

Optional: A MaskWorkspace giving which detectors are masked.

Filename

Input

string

Mandatory

Path to the .h5 file that will be created. Allowed extensions: [‘.h5’]

Description

This algorithm saves a diffraction calibration workspace, MaskWorkspace, and GroupingWorkspace to a HDF5 file.

The hierarchy of the HDF5 file is as follows:

calibration
detid
dasid (only if present in CalibrationWorkspace)
difc
difa (only if not all values are zero)
tzero (only if not all values are zero)
group
use (“0” if detector is not successfully calibrated, “1” otherwise)
offset (only if present in CalibrationWorkspace)
instrument
name
instrument_source (absolute path to the instrument definition file)

This can be used in an alternate mode without a CalibrationWorkspace to write out the grouping workspace with the difc values all set to zero.

Categories: AlgorithmIndex | DataHandling\Instrument | Diffraction\DataHandling

Source

C++ header: SaveDiffCal.h

C++ source: SaveDiffCal.cpp