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

LoadVisionInelastic v1

../_images/LoadVisionInelastic-v1_dlg.png

LoadVisionInelastic dialog.

Summary

This algorithm loads only the inelastic detectors on VISION.

Properties

Name Direction Type Default Description
Filename Input string Mandatory Allowed extensions: [‘.nxs.h5’]
Banks Input string all  
OutputWorkspace Output Workspace Mandatory  

Description

This is a helper algorithm to load data from the inelastic banks for the VISION instrument at the SNS.

Usage

Load all of the inelastic data:

w1 = LoadVisionInelastic("VIS_19351.nxs.h5")

print("Number of spectra: {}".format(w1.getNumberHistograms()))
Number of spectra: 14336

Load just the forward inelastic banks:

w1 = LoadVisionInelastic("VIS_19351.nxs.h5",Banks="forward")

print("Number of spectra: {}".format(w1.getNumberHistograms()))
Number of spectra: 7168

Load the backward facing inelastic banks and the forward inelastic bank3:

w1 = LoadVisionInelastic("VIS_19351.nxs.h5",Banks="backward,bank3")

print("Number of spectra: {}".format(w1.getNumberHistograms()))
Number of spectra: 8192

Categories: AlgorithmIndex | DataHandling\Nexus

Source

Python: LoadVisionInelastic.py (last modified: 2020-03-27)