xrd (version 1.6, 2005/11/05) | index /Users/schwehr/projects/xcore/src/pmag-kds-py/xrd.py |
Hangle X-Ray Diffraction data
Copyright (C) 2005 Kurt Schwehr
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Tested only with the SIO AF Scintag XDS 2000 running the DMSNT
software (version unknown). This software was developed with only 2
runs of the XRD, so I imaging it will break with other files.
SEE ALSO:
http://www.matter.org.uk/diffraction/
http://epswww.unm.edu/xrd/resources.htm
Sample cards: http://www.icdd.com/resources/webpdf/webpdf.htm
DATABASE:
What is the best way to build an open database of XRD specta? It
seems like a full database system is key. Writing spectra in python
dictories is clunky and will be slow when the database reaches any
sort of reasonable size.
It would be nice to also have some catagories that would help limit
the number of materials to search... e.g. marine sediments
If you want to contribute data, please send me a patch or you are
welcome to copy this file and start up your own.
Still need to have options to show the expected peaks for minerals.
Modules | ||||||
|
Classes | ||||||||
|
Functions | ||
|
Data | ||
ALWAYS = 0 BOMBASTIC = 4 TERSE = 1 TRACE = 2 VERBOSE = 3 VERSION = '0.11' __author__ = 'Kurt Schwehr' __date__ = '2005/11/05' __version__ = '1.6' database = {'corondum': {'alt name': 'Aluminum Oxide', 'spectrum': [(3.4796999999999998, 45, 0, 1, 2), (2.5508000000000002, 100, 1, 0, 4), (2.3794, 21, 1, 1, 0), (2.1654, 2, 0, 0, 6), (2.0853000000000002, 66, 1, 1, 3), (1.9642999999999999, 1, 2, 0, 2), (1.74, 34, 0, 2, 4), (1.6014999999999999, 89, 1, 1, 6), (1.5466, 1, 2, 1, 1), (1.5149999999999999, 2, 1, 2, 2), (1.5109999999999999, 14, 0, 1, 8), (1.4045000000000001, 23, 2, 1, 4), (1.3736999999999999, 27, 3, 0, 0), (1.3359000000000001, 1, 1, 2, 5), (1.2755000000000001, 2, 2, 0, 8), (1.2391000000000001, 29, 1, 0, 10), (1.2343, 12, 1, 1, 9), (1.1931, 1, 2, 1, 7), (1.1897, 2, 2, 2, 0), (1.1599999999999999, 1, 3, 0, 6), ...], 'wavelength': 1.540562}} |
Author | ||
Kurt Schwehr |