Utilities

Diffuse Data Format Converter

A browser-based converter for 3-D single-crystal diffuse scattering data. It translates the same intensity grid between the file formats used by RMCProfile, DISCUS, Yell, Meerkat, and Scatty, entirely inside the browser. No installation, no server, and no upload: files never leave your computer.

Start Here

Supported Formats

Format Read Write Typical producer
Unified data format (HDF5) yes yes RMCProfile, DiffuseCode/DISCUS
Yell 1.0 (HDF5) yes yes DISCUS, Yell, Meerkat
RMCProfile old text format (.dat) yes yes RMCProfile Diffuse3D
Scatty VTK (.vtk) yes yes Scatty; also loads in ParaView

Any format can be converted to any other. The input format is detected automatically from the file content.

Format notes

Usage

  1. Data file: select the diffuse data file (.h5, .dat, or .vtk). The format, grid size, and stored cell are reported in the log.
  2. Unit cell: some conversions need the parent (crystallographic) unit cell, because the text and VTK formats do not store one, and some Yell files store only the unit metric. Provide either
    • a structure file: .rmc6f or unified structure .h5. For .rmc6f, the parent cell is the supercell divided by its dimensions. In the unified structure contract, unit_cell_lengths already stores the basic/parent cell and is used directly; or
    • the parent cell typed in directly (a, b, c in Angstrom; alpha, beta, gamma in degrees). When the data file already stores a real cell (for example RMCProfile _calc.h5 output), it is used automatically and this section can be left empty.
  3. Output: pick the target format, optionally set the radiation metadata for HDF5 output, and press “Convert and download”.

When is the unit cell required?

Input Cell needed?
Unified .h5 with a real cell no
Yell .h5 with a real cell no
Yell .h5 with unit metric yes (for .dat/.vtk output; passed through for HDF5 output)
Old text .dat yes, always
Scatty .vtk yes, always

Examples

The Examples/ folder contains one small synthetic dataset (cubic parent cell a = 5.63 Angstrom, 5 x 5 x 5 grid, hkl from -1 to 1 in steps of 0.5) written in every supported format, plus a matching structure file:

Load any of the data files, add example_structure.rmc6f where a cell is required, and convert in any direction; the intensity values are identical in all files, so results are easy to compare.

Included Surface

Validation

The conversion core was verified against real files from each producer:

Command-Line Equivalents

RMCProfile (built with RMC_ENABLE_HDF5=ON) provides Fortran tools for the unified/old-text conversions: unified_to_diffuse3d and diffuse3d_to_unified.