Skip to content

silkfire/DiamondNeXus2Vamas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Background

This utility quickly converts your DLS (Diamond Light Source) scan files (.nxs) into a single VAMAS file (*.vms).
NeXus files are simply HDF5 files under the hood and Diamond2NexusConverter uses LiteHDF to extract the data.

Usage

Using the converter is pretty straightforward. Run the app and provide a path to a valid definition file, e.g. "C:\path\to\definitions.txt". The name of the file does not matter.

Definition file

The definition file specifies in which directory the scan files are located as well as the mapping between a sample and the scan numbers.

  1. The first line must be an existing directory. You can surround it with double quotes, but it's not necessary.

  2. All following lines must follow the format [SAMPLE NAME] [SCAN NUMBERS] [KINETIC ENERGY (optional)]. At least one line is required and any empty lines are ignored.

    1. The scan numbers should correspond to the numeric part of the filename, i.e. i09-[SCAN NUMBER].nxs.
    2. You can specify scan number ranges by separating the first and last scans using a hyphen. Either single numbers or ranges must be delimited by a comma.
    3. The optional kinetic energy field should be given in eV.

Example of a valid definition file:

"C:\path\to\scans\directory"

Sample1 100000,100002,100004-100010 200
Sample1 100300-100305,100308,100311-100315 400
Sample1 100400,100403

Sample2 100500,100505,100511-100514 200
Sample2 100600-100610,100612,100614-100620 400

All fields are delimited by a space character, so they themselves cannot contain any spaces.

About

Provides a utility to convert Diamond Light Source scans stored in the NeXus data file format (*.nxs) to CasaXPS' VAMAS (*.vms) data file format.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages