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

LoadLamp v1

../_images/ImageNotFound.png

Enable screenshots using DOCS_SCREENSHOTS in CMake

Summary

Loads HDF files exported from LAMP program at the ILL

Properties

Name

Direction

Type

Default

Description

InputFile

Input

string

Mandatory

Allowed values: [‘hdf’]

OutputWorkspace

Output

Workspace

Mandatory

Description

This algorithm loads processed HDF5 files produced by LAMP software at the ILL. Only 1D and 2D data are supported. The output is a point data workspace. The input file must have a tree structure similar to:

entry1
  |___data1
        |__DATA
        |__PARAMETERS
        |__X
        |__Y

Usage

Example - LoadLamp

ws = LoadLamp('ILL/LAMP/967067_LAMP.hdf')
print("ws has {0} spectrum and {1} points".format(ws.getNumberHistograms(), ws.blocksize()))

Output:

ws has 1 spectrum and 3200 points

Categories: AlgorithmIndex | DataHandling\Nexus

Source

Python: LoadLamp.py