diff ref struct Web Powder diffraction series in the browser · maps, stacks and growth curves · nothing uploaded

Overview

A whole series of powder patterns as one picture: maps, stacks and growth curves, in your browser, with nothing uploaded.

Open a folder of diffraction patterns (a temperature ramp, an in-situ run at a synchrotron, a series from a laboratory diffractometer) and see them at once: overlaid, stacked, projected, as a colour map of intensity against 2θ and temperature or time, as differences from a reference, as growth curves of chosen peaks. The diff-ref-struct core computes every number, compiled to WebAssembly and run in your browser. Your files never leave your machine.

Open the app Start in five minutes No account, no installation; Chrome, Edge, Firefox, Safari.
0
bytes of your data uploaded: there is no server
7
views of a set: overlay, stack, projection, map, difference map, surface, series
23
text data formats read: FullProf, GSAS, Topas, ILL, PSI, PANalytical, Rigaku, Fit2D/pyFAI, CIF, CSV…
4.4 MB
kept by your browser: the page then opens offline
Known in 1.1.0
  • No control in the page for the 2θ interval yet: type x_interval in the set file.
  • Proposals against time open with each scan's temperature as its variable: open a hold or a run from a .drv that types the times (recipe: A hold).
  • No figure or CSV export in the browser; text formats only.
Release notes →
The app with a plot set of 20 neutron patterns of Tb2Pd2Sn on the Map view, the cursors pinned, the members listed at the left.
Twenty neutron patterns of Tb2Pd2Sn from 4 to 30 K (the WinPLOTR tutorial of the FullProf Suite) on the Map: one row per temperature, colour on a log scale clipped to 3.2–4.5 on the colour bar, the cursors pinned at 2θ 31.6°: the pattern of that row below, the intensity at that angle against temperature at the right. Taken from the app itself.

Seven views of one set

The manual →

A plot set is many patterns, each with its value of a variable: a temperature, a time, a value you type with its source. Every view takes the same set.

The Overlay view of the Tb2Pd2Sn patterns

Overlay

Every pattern on the same axes, coloured along the series. Linked zoom adds a zoomed plot and a difference strip between two patterns.

The Stack view of the Tb2Pd2Sn patterns

Stack

Each pattern raised by a step the core proposes, labelled with its temperature; steps in proportion to the variable if you like.

The Projection view of the Tb2Pd2Sn patterns

Projection

Each pattern behind the one before, with an oblique axis for the variable, as WinPLOTR draws it.

The Map view of the Tb2Pd2Sn patterns

Map

Intensity as colour, 2θ across, the variable up. The clip on the colour bar, cursors, zoom by axis, named regions.

The Difference Map view of the Tb2Pd2Sn patterns

Difference Map

Every pattern less a reference pattern: what appears, what goes, what moves, in signed colour.

The Surface view of the Tb2Pd2Sn patterns

Surface

The map, or the difference map, as a surface to turn and read; the colour clip limits its height.

The Series view of the Tb2Pd2Sn patterns

Series

Windows of 2θ followed through the set: integral above the background, centroid, the strongest peak's position, height and width, with σ.

Why the numbers can be trusted

How it works →

One engine

The page runs the diff-ref-struct core, the same Rust code as the Mac app and the command line drs, compiled to WebAssembly. There is no second implementation to drift from the first.

The page computes nothing

Reading the files, finding temperatures and times, the map's grid and colour range, the steps, the differences, the integrals: all the core's. The page turns its answers into pixels and text.

Checked to the bit

A test runs the browser's core on the Tb2Pd2Sn files given as a browser reads them, and requires its map to equal the command line's, number for number.

Your files stay on your machine

Read where they are

The browser reads the folder you choose, file by file, when the core needs one. Nothing is uploaded: the page has no server to send to, and asks only to read.

Nothing else fetched

The page loads its own files from its own address and nothing from elsewhere: no fonts, scripts or counters from other sites, no account, no tracking.

Offline after the first visit

The browser keeps the page (36 files, 4.4 MB, never a data file), so it opens at a beamline without network. Install it as an app if you like.

Made for

Recipes →
in situ

A temperature ramp

When does a phase appear, a peak split, a reflection go? One row per temperature, the onset found on the map and checked on the patterns.

kinetics

A hold at constant temperature

Growth curves: the integral of a peak's window against time, with σ, for every scan of the hold.

at the instrument

A run still being measured

Live mode reads the folder again every few seconds; the map grows with every new scan.

with the team

A view to share

The address keeps the set, view, zoom, colour range and region; a .drv keeps a whole set for the Mac app and the command line.