How to convert XRD results in .txt format to .dat or others?

Click For Summary

Discussion Overview

The discussion revolves around the conversion of X-ray diffraction (XRD) results from .txt format to other compatible formats such as .dat or .xy for use in QualX software. Participants explore various methods and suggestions for achieving this conversion.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Experimental/applied

Main Points Raised

  • One participant seeks assistance in converting XRD data from .txt format to formats compatible with QualX software.
  • Another participant suggests that writing a conversion algorithm is often feasible if the relevant data formats are known.
  • Some participants question whether QualX can import .txt files, with one asserting that it should be possible since .txt files are ASCII format.
  • One participant confirms that they have attempted to import the .txt files but encountered issues, specifically with QualX version 2.17.
  • A suggestion is made to change the file extension of the .txt files to one that QualX accepts.
  • A later reply mentions using PowDLL, a free software, for converting XRD files to Excel format.

Areas of Agreement / Disagreement

Participants express differing views on whether QualX can read .txt files, with some asserting it should be possible while others report difficulties. The discussion remains unresolved regarding the best method for conversion.

Contextual Notes

Participants express varying levels of programming skill, which may affect their ability to implement suggested solutions. The specific requirements for file compatibility with QualX are not fully detailed.

Baho Ilok
Messages
45
Reaction score
5
I had some precipitate samples analyzed for XRD and the operator sent me the results in .txt format containing the 2θ and intensity data. I want to plug the data to QualX software but apparently it cannot read data in that format. Is there any way to convert the data to compatible formats (e.g., .dat, .xy)?

Thanks!
 
Engineering news on Phys.org
I haven't got a specific answer to your question but on many occasions I have written short pieces of computer code to convert data from one format to another .

If you have the two relevant data formats available it is not usually difficult to devise a conversion algorithm .
 
Baho Ilok said:
I had some precipitate samples analyzed for XRD and the operator sent me the results in .txt format containing the 2θ and intensity data. I want to plug the data to QualX software but apparently it cannot read data in that format. Is there any way to convert the data to compatible formats (e.g., .dat, .xy)?

Thanks!
Are you sure it can't? It looks to me like you can just use the "import" function and that it looks for ASCII format, which is what text files are.
 
Nidum said:
I haven't got a specific answer to your question but on many occasions I have written short pieces of computer code to convert data from one format to another .

If you have the two relevant data formats available it is not usually difficult to devise a conversion algorithm .
Sadly, I am not as skilled in programming as I would like to be. But thank you for your suggestion!
 
russ_watters said:
Are you sure it can't? It looks to me like you can just use the "import" function and that it looks for ASCII format, which is what text files are.
Yes I have tried it already. It still can't see the .txt files in the folder I put them. By the way, I am using the QualX version 2.17.
 
Baho Ilok said:
Yes I have tried it already. It still can't see the .txt files in the folder I put them. By the way, I am using the QualX version 2.17.
Try just changing the file extension to one it accepts.
 
  • Like
Likes   Reactions: Baho Ilok
russ_watters said:
Try just changing the file extension to one it accepts.
Wow. Simple as that. Thank you so much!
 
  • Like
Likes   Reactions: russ_watters
you can see the how to convert XRD file to excel using PowDLL a free software
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
14K
  • · Replies 19 ·
Replies
19
Views
10K
  • · Replies 152 ·
6
Replies
152
Views
11K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 8 ·
Replies
8
Views
6K
  • · Replies 6 ·
Replies
6
Views
6K
  • · Replies 4 ·
Replies
4
Views
9K