Libraries of XAFS Spectra Matthew Newville Center for Advanced Radiation Sources The University of Chicago Q2XAFS 2011-Dec-08

XAFS Spectra Libraries

M Newville Univ of Chicago

Q2XAFS 2011-Dec-08

Standard File Formats for XAFS Spectra and Libraries of Spectra

Can we develop a file format to exchange and archive XAFS spectra? Bruce Ravel presented an ASCII format for a single XAFS spectra. I’ll add a few thoughts on using such a format. Challenges of standardization, acceptance, adoption. I I

XAFS-specific: Energy calibration, handling fluorescence dead-time. Implementation: libraries for format, use in existing/legacy codes. Tools for converting raw data into standard format.

Building Spectral libraries / databases: I

I

XAFS-specific: What data to store, assessing data and sample quality. Implementation: Centralized web libraries and/or local/personal libraries. Tools for building, reading libraries.

Standard File Format for XAFS Spectra

M Newville Univ of Chicago

Q2XAFS 2011-Dec-08

Principle Technical Issue: Monochromator Calibration λ = hc/E = 2d sin(θ) XANES analysis needs energies consistent to . 10−4 . Energy calibration practice is often based on metal foil spectra, with angular offset and/or d-spacing adjusted. Yuck! Absolute energies may not be accurate to 10−4 , but the error does not greatly distort EXAFS results. Typically, energy alignment of 2 spectra means changing one of: d = lattice constant (temperature sensitive) θ0 = angular offset

Mono d-spacing is strongly recommended for all spectra! Better yet – community challenge: Improve monochromators, establish absolute energy scale. Standard File Format for XAFS Spectra

M Newville Univ of Chicago

Q2XAFS 2011-Dec-08

Principle Implementation Issue: Programming Libraries A plain ASCII format (Ravel’s XDI, CIF) is simple enough that it can be imported easily into Excel, Origin, etc. A huge benefit. But: Any sufficiently complex format needs programming libraries. We do not want every person to write their own file reader/writer: makes extra work for all program authors. too hard to do consistently. defeats the purpose of standardization. Need libraries (C, Fortran, . . . ) that existing programs can use: Who is going to implement and support these libraries? Can the IXAS or IUCr support and host these libraries? The model of CIF is not very encouraging in this respect . . . .

Standard File Format for XAFS Spectra

M Newville Univ of Chicago

Q2XAFS 2011-Dec-08

XDI or CIF Format? XDI and CIF have much in common (Plain Text, hierarchical, extensible meta-data), but still need programming library to: Open File, verify Format Extract data arrays for energy, µ, I0 , etc Extract metadata strings by tag. Preferred Approach: use formal grammar (yacc or similar tool) to automatically generate C code, and derive all other interfaces from this. Also need a Dictionary of Meta-Data with Categories like: Facility machine name, x-ray source, ring energy, etc Beamline collimation, focusing optics Mono monocrhomator crystal type, d-spacing Sample name, preparation details, etc Detectors description of detectors Scan collection mode, start time, stop time, etc. May need help with both of these. Standard File Format for XAFS Spectra

M Newville Univ of Chicago

Q2XAFS 2011-Dec-08

Libraries of XAFS Spectra A primary reason for a Standard Data Format is to Share Data. Web-based Libraries of XAFS Spectra have obvious utility for sharing data: Look up, browse data from anywhere Data is available to everyone. Some notion of quality assurance is implied. But also raise a few issues: How is data accessed, organized, searched? How is data added? (current web databases are very limited.) How is data quality assessed, assured? How is connection, security handled? Who controls resources? Relying on a centralized library may not be ideal: Data quality is in the eye of the beholder. Some may want to control who accesses data, at least for a while. Databases and Libraries of XAFS Spectra

M Newville Univ of Chicago

Q2XAFS 2011-Dec-08

Existing Web Libraries: They all stink! There are several existing web-based libraries. An incomplete (US) list: http://ixs.iit.edu/database/ Farrel Lytle Database http://cars9.uchicago.edu/ newville/ModelLib/search.html http://x18b.nsls.bnl.gov/data.htm http://ssrl.slac.stanford.edu/mes/spectra/index.html These all suffer similar problems: How to add data? Data is rarely added, apparantly too hard to do. Inconsistent formats and data quality (especially Lytle database) Can only retrieve one spectra at a time.

An XAFS Spectral Library should be properly orgnaized – with a relational database model. This does not solve the above problems by itself, but better organization makes it possible to address these issues, and even to avoid them completely. Databases and Libraries of XAFS Spectra

M Newville Univ of Chicago

Q2XAFS 2011-Dec-08

Relational Databases and SQL Relational Databases are well-established and widely-used ways to store non-scientific (heterogeneous, mostly text) data: phone books library catalogs, journal search index tools on-line banking Data is organized into Tables – fixed Columns, one Row per Entry. SQL (Structured Query Language) is used to access data.

Judging from airport advertisements (Oracle, SAP), these are designed for large institutions and the people for whom a solution is something one buys and deploys, not something one mixes in the lab.

But: relational databases have been shown many times to be the best way to organize data, and are not hard to use.

Databases and Libraries of XAFS Spectra

M Newville Univ of Chicago

Q2XAFS 2011-Dec-08

Relational Databases Model: iTunes for XAFS Spectra Key tech: A small relational database.

SQLite puts a relational database in one portable file. This is widely used by apps that excel at organizing meta-data:

Personal Libraries of XAFS Spectra (Songs). Organize Spectra into Suites (Albums). Search, Sort by beamline, element, etc. Extract individual Spectra (to XDI/xasCIF). Up/Download spectra to public website(s). Databases and Libraries of XAFS Spectra

Used by: Apple, Mozilla, Adobe, Google, Dropbox, Skype, . . . . Completely Free. Public Domain.

M Newville Univ of Chicago

Q2XAFS 2011-Dec-08

XAFS Spectra Library: Organization of Data A relational database (SQL) allows many spectra to be grouped and searched, sorted by a range of properties: Element, Absorption Edge, Beamline, Sample . . . Data are not required to be ideal, model compound data They could be any set of spectra. How would data be organized? Data would be held in Tables of Spectra – arrays of Energy, I0 , Itrans , µtrans , µfluor , etc. Sample – Sample name, formula, material source, . . . Monochromator – Mono type, d-spacing Element, Edge Beamline, Facility Several others: (Person, Ligand, Collection Mode, . . . ) Also: data can be grouped into a Suite of Spectra – named groups of spectra, assigned to a Person, and Ratings added to Spectra or Suites of Spectra. Databases and Libraries of XAFS Spectra

M Newville Univ of Chicago

Q2XAFS 2011-Dec-08

XAFS Spectra Library: Details of some tables Spectra Table (one set per spectra) – the most complicated table: Name name notes energy energy units i0 itrans ifluor irefer mu(trans, fluor, refer) notes (i0, trans, fluor, refer) collection date monochomator element edge beamlime citation sample reference sample person Databases and Libraries of XAFS Spectra

Description name of spectra spectra notes X-ray Energy units for energy array I0 , incident intensity I1 , transmitted intensity If , corrected fluorescence I2 , reference intensity µ for each of these notes on each channel collection date, time link to monochromator table link to element table link to edge table link to beamline table link to citation table link to sample table link to sample table link to person table

Notes text text Array of data (as text) (eV, keV, degrees) Array of data (as text) Array of data (as text) Array of data (as text) Array of data (as text) Array of data (as text) text ISO date time (Si 111, Si 311, . . . ) (. . . , Fe, Co, Ni, . . . ) (K, L3,L2, . . . ) literature citation sample info sample info spectra donor

M Newville Univ of Chicago

Q2XAFS 2011-Dec-08

XAFS Spectra Library: few more tables Monochromator Table: Name name notes dspacing steps per degree energy unitis

Description name of mono notes d spacing step precision units of energy

Data Type text text number, in ˚ Angstroms number (eV, keV, degrees)

Sample Table: Name name notes formula material source person

Description name of sample notes chemical formula origin of sample link to person table

Data Type text text text text

Person Table: Name name email affiliation

Description name of person email address institution

Databases and Libraries of XAFS Spectra

Data Type text text text

Most tables are very simple. The key is that table entries can be related.

M Newville Univ of Chicago

Q2XAFS 2011-Dec-08

XAFS Spectra Library: SQLite SQLite for a database of XAFS Spectra: Relational Database in a single, portable file. Data integrity, format, management solved (compare to XDI v CIF) Can access data with SQL, any programming language. Many general purpose tools exist!

Viewing an XAFS Spectra Database with a Standard SQLite viewer (Mozilla) Databases and Libraries of XAFS Spectra

M Newville Univ of Chicago

Q2XAFS 2011-Dec-08

Applications using an XAFS Spectra Library Of course, we’d like dedicated applications for an XAFS Database: Desktop Application: Portable (Mac, Win, Unix) GUI application for storing spectra in personal libraries of spectra, suites of spectra. Export data to XDI/xasCIF. Share libraries, or upload to centralized sites. Web Application: Centralized, public sites allowing searching, downloading spectra or libraries, and upload, merging of libraries.

As with XDI/xasCIF, the main issues are non-technical. Will this be used by a large enough community? Can the community maintain and support such applications? Who owns the data and applications?

Databases and Libraries of XAFS Spectra

M Newville Univ of Chicago

Q2XAFS 2011-Dec-08

XAFS Data Library Desktop Application: Preview Here are screenshots of a start of such a Desktop Application for a Spectral Library:

Sample Table Window Gives a Standard Format for an XAFS Spectra Library. Organize Spectra into Suites. Portable application: SQLite/Python/wx Work in Progress: need help!

Main Window: browse spectra. Databases and Libraries of XAFS Spectra

M Newville Univ of Chicago

Q2XAFS 2011-Dec-08

XAFS Data Library Desktop Application: More Screenshots

Beamline Table Window

Import ASCII Column Data: Good at reading XDI files!! Databases and Libraries of XAFS Spectra

Plot µ(E ), I0 for spectra M Newville Univ of Chicago

Q2XAFS 2011-Dec-08

Conclusions, Request for Comments A Proposal for a Standard XAS File Format: Plain Text (ASCII) column file for a single spectra µ(E ) and χ(k) only. Question #1: XDI or xasCIF? Question #2: What Meta-Data Tags are needed? Seeking Comments, Suggestions, Volunteers! A Proposal for Libraries of XAFS Spectra: Use portable relational database for XAFS spectra library. Support personal libraries with a GUI application. Support web libaries based on these portable databases. Code for database and GUI underway, but far from ready. Seeking Comments, Suggestions, Volunteers!

Conclusions

M Newville Univ of Chicago

Q2XAFS 2011-Dec-08

Libraries of XAFS Spectra - GitHub

Can the IXAS or IUCr support and host these libraries? The model of ... Web-based Libraries of XAFS Spectra have obvious utility for sharing data: Look up ... But: relational databases have been shown many times to be the best ... Page 10 ...

798KB Sizes 63 Downloads 275 Views

Recommend Documents

How to use the Axure libraries - GitHub
Open Axure RP 8. The libraries and template files are created using version 8, they won't work in version 7 or earlier. We suggest you upgrade to the latest ...

Imagining a CIF-based XAFS data exchange standard - GitHub
May 26, 2008 - Excellent relational database descriptors. – Vectors and ... Datafile loop = a filled-in table in the database. ○ A loop row ... DDL1/2/m/custom.

A review of C++ 11/14 only Boost libraries - GitHub
1. 1. 1. Boost.Hana. Louis Dionne. 14 none. 2015-04. 1. 0.9. 0.6 header only. 1. 1 ... standalone ASIO the Networking TS reference impl ..... service design and .

The XAFS Phase Isolation and Characterization of Dispersion Phase ...
Abstract: According to Lu Kunquan's XAFS formula for mixing phase system, it is impossible to get the true structure of this kind of system by usual data analysis.

Terrorist Groups - Oklahoma Department of Libraries
recently as 16 September 2002, al Qaeda cells operating in America reportedly were using Internet-based phone services ...... U.S. Department of Defense. Ralph Peters. Parameters: US Army. War College Quarterly. Vol. 30, No. 4, Winter 2000-2001. Carl

The XAFS Phase Isolation and Characterization of Dispersion Phase ...
kind of system by usual data analysis. A method which combines Lu Kunquan's XAFS formula with XRD was proposed to isolate XAFS of crystalline and ...

Wavelet Transform-based Clustering of Spectra in ...
Various kinds of statistical and mathematical data analysis techniques ... originating from different chemical applications and acquired by different spectrometers.

Cosmological effects of the first stars: evolving spectra ...
Oct 16, 2007 - and hot stars with virtually no metal content. They are believed to have been formed in the early. Universe. The have not been observed. Yet.

The synthesis, molecular structure and spectra properties of ... - Arkivoc
In our work we have replaced the exocyclic oxygen atom with sulfur in .... there is no possibility for increasing the electron density on selenium atom i.e. aliphatic ...

Libraries and Google Book Search
Google Book Search allows you to search the full text of books -- from the first word on the ... No preview available: For books where we're unable to show snippets, you'll see only bibliographic information. ... Download public domain works.

1 Evaluation of dynamical spectra for @ = B quantum ...
interpreting electrical resistivity measurements, neutron scattering, photoemission, and other dynamical probes. Recently, an algo- rithm for obtaining dynamical ...

Spectra Chesterfield Public Schools 2017 Scholarship Application.pdf
Spectra Chesterfield Public Schools 2017 Scholarship Application.pdf. Spectra Chesterfield Public Schools 2017 Scholarship Application.pdf. Open. Extract.

2. Atomic Spectra MCQ.pdf
Whoops! There was a problem loading more pages. Whoops! There was a problem previewing this document. Retrying... Download. Connect more apps.Missing:

Descargar directx libraries pcsx2
descargar musica mp4 de patito feo.descargar libro ubuntu pdf.descargar for ... musica de one direction para mp4.descargar videos de youtube mp3 android. ... strike 1.6 romania.descargar reproductor de musica blackberry.descargar.

download The Essential Friends Of Libraries: Fast Facts ...
... Forms And Tips by Sandy Dolnick, The Essential Friends Of Libraries: Fast Facts, Forms And Tips For ios by Sandy Dolnick, Download and read The Essential ...

Eighteen school libraries - South Dakota Department of Education
May 28, 2015 - refers to the learning environment (both physical and online), ... Brookings High School; Librarian Jean Kirschenman, Administrator Paul Von.

The role of Research Libraries in the creation, archiving ... - RLUK
various initiatives, such as the production and preservation of tools, but also into the different models of .... of support employed by US libraries when it comes to DH research; the service model, the lab model and ...... institutional material); s

Eighteen school libraries - South Dakota Department of Education
May 28, 2015 - refers to the learning environment (both physical and online), ... Brookings High School; Librarian Jean Kirschenman, Administrator Paul Von.