PySaxs A Python module and GUI for SAXS data treatment

Similar documents
Data reduction and processing tutorial

FRAM V5.2. Plutonium and Uranium Isotopic Analysis Software

HOW TO ANALYZE SYNCHROTRON DATA

Methoden moderner Röntgenphysik II Streuung und Abbildung

An area chart emphasizes the trend of each value over time. An area chart also shows the relationship of parts to a whole.

2) Measure sample and empties. 3) Measure transmissions of sample and empties. 4) Normalize to exposure time and transmission. 5) Subtract the empties

An IDL Based Image Deconvolution Software Package

Methoden moderner Röntgenphysik II Streuung und Abbildung

Contributing to Astropy: A community Python library for astronomers

SOFTWARE USER MANUAL. Weather Capture Advance WS1640 WM9280

QuantumMCA QuantumNaI QuantumGe QuantumGold

C:\Dokumente und Einstellungen \All Users\Anwendungsdaten \Mathematica. C:\Dokumente und Einstellungen \albert.retey\anwendungsdaten \Mathematica

BASIC TECHNOLOGY Pre K starts and shuts down computer, monitor, and printer E E D D P P P P P P P P P P

Methoden Moderner Röntgenphysik II - Vorlesung im Haupt-/Masterstudiengang, Universität Hamburg, SoSe 2016, S. Roth

How to judge data quality

Information on the test material EDS-TM002 and the BAM software package EDX Spectrometer Test for determination of the spectrometer performance

85. Geo Processing Mineral Liberation Data

Methoden moderner Röntgenphysik II Streuung und Abbildung

Software BioScout-Calibrator June 2013

Last updated: Copyright

AUTOMATIC AND INTERACTIVE ANALYSIS SOFTWARE FOR BETA- GAMMA COINCIDENCE SYSTEMS USED IN CTBT MONITORING

Graphical User Interfaces for Emittance and Correlation Plot. Henrik Loos

85. Geo Processing Mineral Liberation Data

Quantification of JEOL XPS Spectra from SpecSurf

Automatic simulation platform to support product design and optimization

Detection of X-Rays. Solid state detectors Proportional counters Microcalorimeters Detector characteristics

Geographic Information Systems (GIS) - Hardware and software in GIS

Data Reduction - Optical / NIR Imaging. Chian-Chou Chen Ph319

Scripting Languages Fast development, extensible programs

Athena Visual Software, Inc. 1

SAXS/SANS data processing and overall parameters

Your work from these three exercises will be due Thursday, March 2 at class time.

Introduction to ArcMap

lightcurve Data Processing program v1.0

Tutorial 11. Use of User-Defined Scalars and User-Defined Memories for Modeling Ohmic Heating

TEMScripts Real-time Crystallography Manual. TEMScripts LLC. Last updated: 11/4/2016

Performing Advanced Cartography with Esri Production Mapping

From BASIS DD to Barista Application in Five Easy Steps

Julien Schmitt, postdoc in the Physical Chemistry department. Internship 2010: Study of the SAXS scattering pattern of mesoporous materials

YYT-C3002 Application Programming in Engineering GIS I. Anas Altartouri Otaniemi

NumPy 1.5. open source. Beginner's Guide. v g I. performance, Python based free open source NumPy. An action-packed guide for the easy-to-use, high

From BASIS DD to Barista Application in Five Easy Steps

Computer simulation of radioactive decay

2. To measure the emission lines in the hydrogen, helium and possibly other elemental spectra, and compare these to know values.

MASS ATTENUATION COEFFICIENT OF LEAD

Esri EADA10. ArcGIS Desktop Associate. Download Full Version :

The Compact Laboratory SAXS/WAXS/GISAXS System. SAXSpoint

Electro-Optical System. Analysis and Design. A Radiometry Perspective. Cornelius J. Willers SPIE PRESS. Bellingham, Washington USA

MULTI PURPOSE MISSION ANALYSIS DEVELOPMENT FRAMEWORK MUPUMA

Spatial Data Analysis in Archaeology Anthropology 589b. Kriging Artifact Density Surfaces in ArcGIS

Electronic Supplementary Information (ESI) Synthesis of gold nanoparticles in a biocompatible fluid from sputtering deposition onto castor oil

NIST DTSA-II ( Son of DTSA ): Step-by-Step

Biological Small Angle X-ray Scattering (SAXS) Dec 2, 2013

Mnova Software for Analyzing Reaction Monitoring NMR Spectra

Multiphysics Modeling

Mass Transfer in a Stirred Batch Reactor

Measuring ph with Smart Cuvettes

GLoBES. Patrick Huber. Physics Department VT. P. Huber p. 1

CGWAS 2013: Simulating Stellar Collapse

Manual for some LCLS Matlab GUIs. Henrik Loos SLAC, 2575 Sand Hill Road, Menlo Park, CA 94025

Getting started with BatchReactor Example : Simulation of the Chlorotoluene chlorination

The additional parameters - a short introduction to the data handling with TRACKKEY 4.1

Size Determination of Gold Nanoparticles using Mie Theory and Extinction Spectra

The CSC Interface to Sky in Google Earth

NMR Predictor. Introduction

HASSET A probability event tree tool to evaluate future eruptive scenarios using Bayesian Inference. Presented as a plugin for QGIS.

Project title: A Multiscale Simulation-Based Design Platform for Cost-Effective CO 2 Capture Processes using Nano-Structured Materials (NanoSim)

ECEN 651: Microprogrammed Control of Digital Systems Department of Electrical and Computer Engineering Texas A&M University

v Prerequisite Tutorials GSSHA WMS Basics Watershed Delineation using DEMs and 2D Grid Generation Time minutes

CAD package for electromagnetic and thermal analysis using finite elements. Flux. by CEDRAT. Magneto Static application tutorial.

User's Guide. DISTO online. Leica Geosystems

High-resolution finite volume methods for hyperbolic PDEs on manifolds

Introduction to Hartree-Fock calculations in Spartan

Beam Analysis for the Large Hadron Collider

Tutorial. Getting started. Sample to Insight. March 31, 2016

Satellite project, AST 1100

Octave. Tutorial. Daniel Lamprecht. March 26, Graz University of Technology. Slides based on previous work by Ingo Holzmann

A GUI FOR EVOLVE ZAMS

Detection of Exoplanets Using the Transit Method

Cosmic Ray Detector Software

Determination of the boron content in polyethylene samples using the reactor Orphée

Precision neutron flux measurement with a neutron beam monitor

Introduction to Reflectometry and Small Angle Scattering under Grazing Incidence

The OptiSage module. Use the OptiSage module for the assessment of Gibbs energy data. Table of contents

Urban Canopy Tool User Guide `bo`

Avogadro with YAeHMOP Manual

CityGML XFM Application Template Documentation. Bentley Map V8i (SELECTseries 2)

CILEX-APOLLON. Centre Interdisciplinaire de Lumiere EXtreme Interdisciplinary Center for Extreme Light

DOWNLOAD OR READ : MATLAB GUIDE TO FINITE ELEMENTS AN INTERACTIVE APPROACH EPUB MOBI

Fin System, Inc. Company Report. Temperature Profile Calculators. Team 1 J. C. Stewards, Lead A. B. Williams, Documentation M. D.

A concentration fluctuation model for virtual testing of detection systems

How to Make or Plot a Graph or Chart in Excel

Spectral Analysis of High Resolution X-ray Binary Data

introduction to SAXS for polymers -a user view-

Manual Laser Doppler Anemometry Manual remote experiment Project e-xperimenteren+

Introduction to the Scanning Tunneling Microscope

QuantumWise. QuantumWise is now part of Synopsys

GEOREFERENCING, PROJECTIONS Part I. PRESENTING DATA Part II

MENA 9520 FME Modelling Tutorial 5 ( )

Transcription:

DIRECTION DES SCIENCES DE LA MATIERE IRAMIS Laboratoire Interdisciplinaire sur l Organisation Nanométrique et Supramoléculaire PySaxs A Python module and GUI for SAXS data treatment Olivier Taché Collaborative work with : O. Spalla, A. Thill, D. Sen, D. Carrière, F. Testard

Outline Context : CEA-LIONS Small Angle X-Rays Scattering SAXS at LIONS SAXS data treatment What is pysaxs? User Interface : GuiSAXS plots data treatment fitting by models 2

CEA / LIONS at Saclay LIONS : Laboratoire Interdisciplinaire sur l Organisation Nanométrique et Supramoléculaire (Interdisciplinary Laboratory on Nanometric and Supramolecular Organization) Fundamental research on nanochimistry and nanoscience Knowledge of nano-objects Organized fluids and nano-structured solids 40 researchers (chemists, physicists, theoricians, computer scientists, ) Laboratory experiments High usage of synchrotrons and large instruments (Soleil, ERSF, LLB, ILL) needs in computing : A flexible and powerful control-command system TANGO with Python standardization for data processing programming language Python PySAXS for saxs data treatment Internal Python learning courses for all new members 3

Small Angle X-Ray Scattering A technic for characterization Scattered X-Rays gives informations about fluctuation of electronic densities on heterogeneous matter. i i q q (Å -1 ) High q : there is a contrast only at the interface between the two medias. information about the surfaces. Intermediary zone : elementary bricks in the systems. The form factor P(q) can be measured (size, shape and internal structure of one particle). Low q : the structural order can be obtained : it is the so-called structure factor S(q), interactions in the system. Different q range are often necessary 4

SAXS at LIONS : 3 experimentals setups USAXS ultra small angles q range : 2x10-4 to 10-1 A -1 =0.154 nm E=8keV 1D detector SAXS q range : 2x10-2 to 7x10-1 A -1 USAXS SAXS =0.154 nm E=8 kev 2D detector WAXS 10-4 10-3 10-2 10-1 10-0 q (Å -1 ) SAXS WAXS (wide angles) q range : 4x10-2 to 4 A -1 =0.07 nm E=17 kev 2D detector 5

SAXS Data treatment : what we have to do 1- for Images : data reduction Using ImageJ (Java!) a software that manage images (with ROI, LUT) With geometrical corrections 1- for USAXS (1D) : deconvolution (beam is not perfect) With specific code 2- scaling in absolute intensities (taking in acount experimental parameters) Very important if we want to compare datas from others experiments (synchrotron) We can calculate Form factor and Structure Factor 3- merging datas and substract background or solvant (ie water) Merging datas with different scales (qrange or dq) 4- compare with predefined models minimization for finding sample parameters Home made models or with source code we can check 5- non automatic data processing for calculating form factor, structure, With source code optimized and tested Home made software PySAXS 6

Other softwares? Other SAXS data treatment softwares : Sasfit : for neutron, C language SOLEIL : foxtrot (integrated with the hardware) Igor routines (not free, code source) Matlab routines (not free, code source) BioXtas (python with a similar wxpython GUI) With python, researchers can validate and modify the source code With GuiSAXS, standard users can analyze easily datas 7

What is PySaxs? LS (LIONS Saxs) : A special effort for a compilation of useful functions in Python calculating different form factors or structure factors : Gives intensities (q range, parameters) For absolute intensities (scaling) processing Can be used by researcher own routines 8

What is PySaxs? Librairies of models: based on a Class model, coded by researchers using combination of Form factors and structures factors (LS) What is a model? I(q) function depending of parameters list of parameters with description, defaults values name of authors Fitting functions based on scipy.optimize (simple with optimize.leastsq or with bounds : optimize.fmin_tnc) Offering simple usage for fit : from pysaxs.models import MonoSphere sphere=monosphere() y=array_of_experimentals_datas res=sphere.fit(y) How? 1. A class model 2. And a mymodel.py file in the model directory Available models (july 2011) : Multilayer Cylinder Porod DC- Shells: semi-gaussian distribution Spray Dried Grain Imogolite Single Wall Si/Ge Spheres poly-gauss analytique Gaussian Porod Layer Porod Curved Core Shell Particle Mono Ellipse Mono Cylinder Spheres : Semi-Gaussian distribution Spheres Monodisperse Spheres poly-gauss Imogolite Double Wall Si/Ge 9

Models 10

What is PySaxs? A graphic user interface : GuiSAXS no satisfaisant interface for data treatment and data manipulation import data from experiments (text file) scaling compare substraction or manipulation datas with different scales correct plotting tool (log scale) gnuplot and matplotlib modeling informations about data treatment Using wxpython : Not a real choice Works on windows and linux No IDE : all the code is made by «hand» as much as possible : generic dialog boxes 11

GuiSAXS List of datas Plots with matplotlib We can choose wich datas are plotted Informations about data treatment 12

GuiSAXS A matplotlib frame with a menu where you can : Add a grid Change legend and title Set the line format Set the axes scales Save as picture Colors are automatics, it is not possible to change them Can be improved OR you can use gnuplot windows 13

GuiSAXS : data manipulation Refresh : reload datas from file Rename Remove datas from list Duplicate Clip q range Scale : change scale (q*10) Concatenate Derivate Smooth datas Find peaks Interpolate (add points) Calculator : open a dialog box and let the user specify a formula for data manipulations Statistics Generate noise on datas Add a reference value : to compare with a flat datas 14

GuiSAXS : data scaling Cij 1 1 I( q).. 0. dt e C ij is the number of counts detected on pixel ij during dt with background substracted 0. is the transmitted flux (photons/s) by the sample 0= incident.t.k T is the transmission of the sample K is the detector quantum efficiency K= 1 2 1, is the detector quantum efficiency for the counts C ij 2, is the detector quantum efficiency when measuring the incident beam. is the solid angle covered by one pixel seen from the center of the sample. = p2 D 2 p is the pixel size and D the sample to detector distance e is the thickness of the sample (cm) Intensity=(n-background)/(time * DeltaOmega * Transmission * Thickness * Flux * K) Absolute intensities are independant from experiment 15

Data substraction Data for 1mm and 2 mm thickness of water Substraction (gives 1mm of water) Reference (calculated value) Data processing is done by using interpolation of datas With propagation of measurement s errors How could we do that in excel? 16

Fitting with models Models integrated automatically in the menu 17

Fitting with models Parameters are updated 18

Other functionalities : Datas saved as txt Datas saved by group (copy of memory in file) Keeping measurements error bar X-Ray contrasts dialog box : for calcutating transmission of sample depending on composition and x-ray energy PySAXS is given to users Easy Installation with PythonXY 19

Improvements? Integration of the complete data treatment process? Xml? Nexus? tango ImageJ pysaxs Acquisition by experiment Image Data reduction Data treatment Images Experiment parameters Averaged datas Experiment parameters 20