In this post I am adding a new calculator for crystallite size and strain calculation. This is based on Williamson-Hall plot. However, this time calculator is written in python language and anyone can download this small code snippet as a local copy on your computer to calculate size and strain.
Before you use this calculator, you need to install the following on your computer.
1. Python 2.7 or more
2. numpy
3. scipy
4. matplotlib
You can google it and install the above very easily.
Please read about Williamson-Hall plot before using this code.
In due course of time I will add more notes to this post. Till then
enjoy calculation.
In case of any difficulty please post a comment.
Before you use this calculator, you need to install the following on your computer.
1. Python 2.7 or more
2. numpy
3. scipy
4. matplotlib
You can google it and install the above very easily.
- You download the file williamson-hall_plot.py file
- Prepare a data file with peak position in column-1 and fwhm in column-2.
- Save this file as "data.txt" . You can use another name for this file provided you could able to change the same in the *.py file.
- You open a terminal (in linux and OSX) or cmd window in WINDOWS.
- Direct the terminal to the place where you want to work. Means move to that folder where your *.py and "data.txt" file exists.
- run the command "python williamson-hall_plot.py"
Please read about Williamson-Hall plot before using this code.
In due course of time I will add more notes to this post. Till then
enjoy calculation.
In case of any difficulty please post a comment.
pls tell properly with video
ReplyDeleteit is not working. Please explain with a video, if possible
ReplyDeleteBefore you use this calculator, you need to install the following on your computer.
Delete1. Python 2.7 or more
2. numpy
3. scipy
4. matplotlib
Then just follow the instructions.