With the latest Powder4 for Windows by Nita Dragoe will allow you to merge and normalise up to 10
patterns into a single file.
Download the zipped raw data files for merging, UDF and XY format
With the latest Powder4 for Windows by Nita Dragoe will allow you to merge and normalise up to 10 files
into a single file (calculating appropriate ESDs for each count). For this you need to give each
pattern a "monitor" value (counting time is probably the best way for most scans). This is done via
the Powder v4 interface as shown below.
Following are a few tips on how to use the latest Powder4 (i.e. version 0.3b) if you want to merge powder XRD files. WARNING: this is a dangerous operation, do not massage your data; make sure you know what you are doing.
First run Powder for Windows (make sure you have the latest versions)
A few instructions are listed on this panel ; read this from time to time, it contains some useful hints on what's going on with the program.
We are going to merge 10 files. Normally you have to conver the files
into column XY, or XY_ESD format. In the above example data, the
UDF files have been converted into XY format using Convert.
All these files have the first line as header, so we'll have to "tell" the program how to handle this. First, we click on Header/I don't have a header (this is optionally here but in many cases it's important to instruct the software that there is no header to look for). Then we click on Header/Ignore menu, just like in the following picture:
Now this is important : you have to instruct the program to ignore the first line otherwise you'll get a mess. Alternatively you can delete all the comments from the file but it's better to keep the original header in place (do not mix up the files!!!).
A small window will appear in which you insert (an integer) how many lines will be ignored.
Cancel or 0 have the same effect.
After that you can see listed in the menu Header/Ignore how many lines are going to be ignored. By line, this means everything up to an EOL character.
All the Merging files have to be in the same format (the same number of comments, the same step, the same wavelength). It is not necessary to have overlapping ranges, you may as well just add to files say one having data from 20 to 90 the other from 90 to 120.
There are two possibilities for merging files: either XY ascii files or XYZ ascii files. For the first case the ESD will be computed internally; then everything is the same.
In the following we will merge the three files : we choose File/Merge XY files (File, Merge XY Files) and add the files via the dialog box. Give the appropriate "normalization / monitor" value to the right of the file name. In this case, they are all 1 (equally weighted or 1 second per step in the counting time)
Now click OK
You will be prompted to output to a filename (enter this and the directory you wish the file to be place in); then you should get the following style of "OK" message:
This creates a file in the following style of format (2-theta, counts, ESD, ready to be converted into other formats such as GSAS)
The Merged data is still in memory so you can still save this into other formats, such as XYZ, ASCII or GSAS ESD format. For creating a GSAS ESD file, just select File, Save As, Gsas - CW ESD
Following is the top of the newly created GSAS file
If you are in the mood to create other files (e.g., CPI, just select File, Save As, Sietronics - CPI. However, note that the ESDs will not be included in this format.
Following is the top of the newly created CPI file