<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Book Antiqua";
        panose-1:2 4 6 2 5 3 5 3 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle19
        {mso-style-type:personal-compose;
        font-family:"Book Antiqua",serif;
        color:black;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-CA" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">All (But mostly Bob)<o:p></o:p></span></p>
<p><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black"> <o:p></o:p></span></p>
<p><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">I’m writing my own program for extracting the parameters you need to report in a paper and automatically generate a report I can send the users. One of the features of it is making
 a graph in the PDF of each result for quick viewing, and making a CSV for the engineers (since most of them are examining their data in various engineering graphic packages like Origion, since they just want to see what peaks are present).
<o:p></o:p></span></p>
<p><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black"> <o:p></o:p></span></p>
<p><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">Anyway, I’d like to extract the data directly from the *.brml file. I've *found* it, but it is in a really odd table format:
<o:p></o:p></span></p>
<p><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black"><o:p> </o:p></span></p>
<p><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">Example:
<o:p></o:p></span></p>
<p><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">      <Datum>229.285790558608,1,10.0001,5.0001,19829.1035,229.285790558608</Datum><o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">      <Datum>229.285790558608,1,10.1001,5.0501,19207.748,229.285790558608</Datum><br>
      <Datum>229.285790558608,1,10.2001,5.1001,19214.4043,229.285790558608</Datum><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black"><o:p> </o:p></span></p>
<p><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">GSAS-II reads this with
<br>
"<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">  x[i] = float(entry[2])<br>
  y[i] = float(entry[4])*float(entry[0])/effTime<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">"
<o:p></o:p></span></p>
<p><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black"><o:p> </o:p></span></p>
<p><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">Ok, so x is self explanatory, 10.0001 is the two theta.
<o:p></o:p></span></p>
<p><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">What is y doing? 19829.1035 would make sense as the counts, but it is being multiplied by column zero for some reason? I assume dividing by effTime just makes it into counts per
 second, but what is the rest of it doing?<o:p></o:p></span></p>
<p><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black"><o:p> </o:p></span></p>
<p><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">If anyone can help me understand this table so I can parse it myself, I'd really appreciate it. Thank you.
<o:p></o:p></span></p>
<p><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black"><o:p> </o:p></span></p>
<p><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">P.S. If anyone wants to use my software it is at
<a href="https://bitbucket.org/pxrd-report/pxrd-report/src/master/">https://bitbucket.org/pxrd-report/pxrd-report/src/master/</a> and I like to think is at the point it is giving quite usable reports.
<o:p></o:p></span></p>
<p><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black"> <o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">Dr. Matthew L. Brown  (he/him, they/them)</span><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">Lab Technician V (Chemistry, Crystallography)</span><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">Office: 250-807-8365</span><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black"> </span><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">UBC School of Engineering</span><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">1540 Innovation Dr.</span><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">Kelowna, BC</span><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black">V1V 1V7</span><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black"><o:p></o:p></span></p>
<p><span style="font-size:12.0pt;font-family:"Book Antiqua",serif;color:black"> <o:p></o:p></span></p>
</div>
</body>
</html>