18
High Throughput Software for High Throughput Software for Powder Diffraction Powder Diffraction Taha Sochi Taha Sochi

Sochi hexitex manchester 10 dec 2008 presentation

Embed Size (px)

Citation preview

Page 1: Sochi hexitex  manchester 10 dec 2008 presentation

High Throughput Software for High Throughput Software for Powder DiffractionPowder Diffraction

Taha SochiTaha Sochi

Page 2: Sochi hexitex  manchester 10 dec 2008 presentation

TEDDITEDDITomographic imaging technique which exploits Tomographic imaging technique which exploits synchrotron to gain diffraction information from synchrotron to gain diffraction information from volume elements within a bulk sample.volume elements within a bulk sample.Used to image the interiors of objects in terms Used to image the interiors of objects in terms of both density and compositional variations.of both density and compositional variations.

Each volume element Each volume element visited yields a visited yields a

diffraction patterndiffraction pattern

Page 3: Sochi hexitex  manchester 10 dec 2008 presentation

SoftwareSoftwareCurrently there is no customised software for Currently there is no customised software for TEDDI analysis. Instead, scripts are in use: TEDDI analysis. Instead, scripts are in use:

Read dataRead data

Beam & counting efficiency correctionsBeam & counting efficiency corrections

Visualisation stepVisualisation step

Export to Rietica/TopasExport to Rietica/Topas

Fitting in Rietica/TopasFitting in Rietica/Topas

Visualisation of final resultsVisualisation of final results

Page 4: Sochi hexitex  manchester 10 dec 2008 presentation

EasyEDDEasyEDD

High throughput software to manage, process, High throughput software to manage, process, analyse and visualise powder diffraction data.analyse and visualise powder diffraction data.

Purpose: processing large quantities of data Purpose: processing large quantities of data with ease and comfort using limited time and with ease and comfort using limited time and computing resources. This batch-processing computing resources. This batch-processing approach is needed for the new generation of approach is needed for the new generation of high throughput TEDDI detectors.high throughput TEDDI detectors.

Page 5: Sochi hexitex  manchester 10 dec 2008 presentation

EasyEDDEasyEDDCombines Graphic User Interface (GUI) Combines Graphic User Interface (GUI) technology (e.g. wizards, dialogs, tooltips, technology (e.g. wizards, dialogs, tooltips, colour coding, context menus, etc.) with colour coding, context menus, etc.) with standard scientific computing techniques.standard scientific computing techniques.

Page 6: Sochi hexitex  manchester 10 dec 2008 presentation

ResourcesResources

Qt toolkit and its extensions (Qwt and Qt toolkit and its extensions (Qwt and QwtPlot3D) for GUI design.QwtPlot3D) for GUI design.

Extensive library of scientific numerical recipes. Extensive library of scientific numerical recipes.

Large number of tailored algorithms, functions Large number of tailored algorithms, functions and techniques.and techniques.

Standard C++ library. Standard C++ library.

Page 7: Sochi hexitex  manchester 10 dec 2008 presentation

Current StateCurrent StateFour data file formats are currently supported: Four data file formats are currently supported: SRS 16.4, ESRF XY data, Diamond MCA, and SRS 16.4, ESRF XY data, Diamond MCA, and Manchester ERD format. The code can be Manchester ERD format. The code can be easily extended to support other data formats.easily extended to support other data formats.

ERD DetectorERD Detector SRS 16.4SRS 16.4

Page 8: Sochi hexitex  manchester 10 dec 2008 presentation

Current StateCurrent State

The data files are read and automatically The data files are read and automatically recognised (e.g. SRS, scalars or vectors). The recognised (e.g. SRS, scalars or vectors). The data is then stored and mapped on a 2D data is then stored and mapped on a 2D colour-coded grid. Multiple tabs from different colour-coded grid. Multiple tabs from different data sources can be created (and removed) at data sources can be created (and removed) at the same time.the same time.

Correction, graphing and fitting capabilities are Correction, graphing and fitting capabilities are implemented.implemented.

Page 9: Sochi hexitex  manchester 10 dec 2008 presentation

Standard GUI window with menus, toolbars, etc. Standard GUI window with menus, toolbars, etc. ComponentsComponents

Page 10: Sochi hexitex  manchester 10 dec 2008 presentation

2D colour-coded scalable tabs for voxel mapping 2D colour-coded scalable tabs for voxel mapping with graphic and text tooltips to show all with graphic and text tooltips to show all essential file and voxel properties. essential file and voxel properties.

ComponentsComponents

Page 11: Sochi hexitex  manchester 10 dec 2008 presentation

2D plotter to obtain a graph of intensity for any 2D plotter to obtain a graph of intensity for any voxel by clicking on its cell. It is also used to voxel by clicking on its cell. It is also used to create basis functions for fitting.create basis functions for fitting.

ComponentsComponents

The plotter capabilities include:The plotter capabilities include:

Creating, drawing, modifying and clearing Creating, drawing, modifying and clearing fitting basis functions (polynomials ≤ 6, fitting basis functions (polynomials ≤ 6, Gauss, Lorentz and pseudo-Voigt) by simple Gauss, Lorentz and pseudo-Voigt) by simple click or press and drag actions.click or press and drag actions.

Non-linear least squares curve fitting by Non-linear least squares curve fitting by Levenberg-Marquardt algorithm.Levenberg-Marquardt algorithm.

Save image in several formats.Save image in several formats.

Page 12: Sochi hexitex  manchester 10 dec 2008 presentation

Levenberg-MarquardtLevenberg-MarquardtExample: Example:

Red: Experimental data.

Yellow:

Fitting curve.

Page 13: Sochi hexitex  manchester 10 dec 2008 presentation

Spreadsheet form Spreadsheet form which interacts with the which interacts with the plotter to control the plotter to control the refinement process refinement process with plotting and with plotting and saving capabilities to saving capabilities to facilitate mass facilitate mass application of curve application of curve fitting.fitting.

ComponentsComponents

Page 14: Sochi hexitex  manchester 10 dec 2008 presentation

3D plotter to obtain a graph of the current tab 3D plotter to obtain a graph of the current tab where intensity is plotted as a function of the where intensity is plotted as a function of the voxel position in the tab.voxel position in the tab.

ComponentsComponents

Page 15: Sochi hexitex  manchester 10 dec 2008 presentation

Curve fitting can be done on a single or Curve fitting can be done on a single or multiple peaks using any number of basis multiple peaks using any number of basis functions with and without background.functions with and without background.

Curve FittingCurve Fitting

Curve fitting can be performed for a single Curve fitting can be performed for a single pattern, a number of randomly selected pattern, a number of randomly selected patterns, a whole tab or a number of tabs.patterns, a whole tab or a number of tabs.

After curve fitting, a widget is created in After curve fitting, a widget is created in which the statistical indicators and refinement which the statistical indicators and refinement parameters are displayed. From these the parameters are displayed. From these the colour code can be changed according to colour code can be changed according to each one of these quantities.each one of these quantities.

Restraints are partly implemented.Restraints are partly implemented.

Page 16: Sochi hexitex  manchester 10 dec 2008 presentation

From Olivier Lazzari:From Olivier Lazzari:Data SamplesData Samples

Area of a peak after fitting to Area of a peak after fitting to Gauss with linear background Gauss with linear background

Raw data with initial scalingRaw data with initial scaling

Real life picture Real life picture of test object of test object (From Simon (From Simon Jacques)Jacques)

Schematic of test Schematic of test object (From object (From Olivier Lazzari)Olivier Lazzari)

Page 17: Sochi hexitex  manchester 10 dec 2008 presentation

From Vesna Middelkoop:From Vesna Middelkoop:Data SamplesData Samples

Area of a peak after fitting to Area of a peak after fitting to Gauss with linear background Gauss with linear background

Raw data with initial scalingRaw data with initial scaling

Schematic of pipe (From Schematic of pipe (From Vesna Middelkoop)Vesna Middelkoop)

Illustration of TEDDI principle Illustration of TEDDI principle (From Simon Jacques).(From Simon Jacques).

Page 18: Sochi hexitex  manchester 10 dec 2008 presentation

Thank you!Thank you!

Questions?Questions?