<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=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><title>RE: [GSAS-II] Masking Bad Data Points In Image Data</title><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle19
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.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;}
/* List Definitions */
@list l0
        {mso-list-id:508375285;
        mso-list-template-ids:-1480445800;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:1.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:"Courier New";
        mso-bidi-font-family:"Times New Roman";}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:1.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:2.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:2.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:3.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:3.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:4.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:4.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l1
        {mso-list-id:1414858560;
        mso-list-template-ids:-946684006;}
@list l1:level1
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l1:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:1.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:"Courier New";
        mso-bidi-font-family:"Times New Roman";}
@list l1:level3
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:1.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l1:level4
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:2.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l1:level5
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:2.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l1:level6
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:3.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l1:level7
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:3.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l1:level8
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:4.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l1:level9
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:4.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l2
        {mso-list-id:1937133168;
        mso-list-template-ids:-849557894;}
@list l2:level1
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l2:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:1.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:"Courier New";
        mso-bidi-font-family:"Times New Roman";}
@list l2:level3
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:1.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l2:level4
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:2.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l2:level5
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:2.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l2:level6
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:3.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l2:level7
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:3.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l2:level8
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:4.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l2:level9
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:4.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></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-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Dear All<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thanks all for the excellent help, I was able to calibrate, import all data together, mask it and integrate it. Data qulity is not so good, so Rietveld refinement is not meaningful. I have few more questions:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>1-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; First, I imported LaB6 image file to do the calibrations and saved the &#8220;controls file&#8221;. Then I imported in situ image data files together but I had to add &#8220;control file&#8221; (to add &#8220;sample to detector&#8221; distance and beam center etc) individually to each image file. I have around 90 image files so it took long to add control file to every image file. I tried different ways but could not figure out any way to add control parameters to each image file. In Fit2d usually after calibration, calibration data is exported to all other image files. Is there any way to do this in GSAS2?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>2-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; After integrating all the image file, I could not find a way to export all the integrated data together. I had to export each integrated data file individually. How can I export all the integrated data together?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Feature Request:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Usually data recorded at synchrotron beamlines is not at CuKa wavelength but one is supposed to report this data in CuKa for easy comparison. It would be very helpful if GSAS2 users can export integrated diffraction image data, directly to CuKa wavelength.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thanks,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>/Shoaib<o:p></o:p></span></p><p><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p><span style='font-family:"Calibri","sans-serif";color:black'>Hi Shoaib,<br><br>I'm still working myself into the GSASII but I think I have figured of most of the often used options. I'm not sure to what extent you are familiar with the idea of masking but here are the basics. You can &quot;draw&quot; or select a region of different shape (e.g spot, polygon, arc etc) and that area is ignored in the integration. If you are familiar with masks in Fit2D program you will find nearly the same functionality in GSASII.<br><br><br>1)&nbsp; ....is there any way in GSAS2 to mask unwanted spots or sometimes even unwanted peaks...<br><br>-In order to create a mask you should load an image and in &quot;GSAS II data tree&quot; go to the sub tree: &quot;Mask&gt;Operations&gt;Create new&gt; .....&quot; How to use individual mask types is written on the bottom of the &quot;Mask&quot; window. You can save, copy and load created masks. You can do it individually to selected images apply it to all images.<br><br>-If you have an interference showing up always in the same area (e.g.&nbsp; a beam stop) you may also limit the angular range of the integrated area (&quot;Set Start/End azimuth&quot; and &quot;Inner/Outer 2-theta&quot; in the &quot;Image controls&quot; window)<br><br>2) ...integrating this data and then make a sequence file to integrate...<br><br>Yeas you can. Prepare masks for your images and go: Image Controls&gt;Operations&gt;Integrate all&gt; (Select 2D images) and Integrate. You will get a bunch of 1D diffraction patterns in the &quot;GSAS II data tree&quot;.<br><br>3)...refine many image files together...<br><br>Hmm, this is a tough one and I had not opportunity to try this one out. An option to sum up diffraction patterns might help here if there is no crystallographic argument against it (like change in: T, detector-sample distance, wavelength and so on.... )<br><br>Good luck!<br><br>Andrzej</span><o:p></o:p></p><p><b><span style='font-family:"Calibri","sans-serif";color:black'>From:</span></b><span style='font-family:"Calibri","sans-serif";color:black'> Brian Toby [<a href="mailto:bhtoby@comcast.net">mailto:bhtoby@comcast.net</a>]<br><b>Sent:</b> Wednesday, July 2, 2014 10:47 AM<br><b>To:</b> Shoaib Muhammad<br><b>Cc:</b> Robert Von Dreele<br><b>Subject:</b> Re: [GSAS-II] Masking Bad Data Points In Image Data</span><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif";color:black'>Yes, you can mask sections of the detector. You can read in a series of images and then once you have settings you are happy with the masking and integration for one image you can copy those settings to the rest of the images and then integrate them while you get a cup of coffee.&nbsp;</span><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif";color:black'>Brian</span><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif";color:black'>Yes. Go to the Mask data tree item for your 1st image &amp; add spots where you need them. Then change the size of the spot to fit. Use other masks as well; frame outlines the image to remove edge features. Masks can be copied to other images; they all can be integrated at once. Use sequential refinement to fit a sequence of images.<br>Bob Von Dreele<br>On 7/1/2014 8:33 PM, Shoaib Muhammad wrote:</span><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif";color:black'>&nbsp;</span><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif";color:black'>Dear All,</span><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif";color:black'>&nbsp;</span><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif";color:black'>Recently I noticed many updates in GSAS2 about image plate diffraction data integration and Rietveld refinement. I have some MAR345 type image plate diffraction data which I can successfully read in GSAS2. Data is recorded in situ on lithium ion battery cell so quality is not the best and has couple of unwanted bright spots. I was wondering, is there any way in GSAS2 to mask unwanted spots or sometimes even unwanted peaks while integrating this data and then make a sequence file to integrate &nbsp;and refine many image files together?</span><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif";color:black'>&nbsp;</span><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif";color:black'>Regards,</span><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif";color:black'>/Shoaib</span> <o:p></o:p></p><p style='margin-bottom:12.0pt'><o:p>&nbsp;</o:p></p><p><span style='font-size:10.0pt;font-family:"Courier New";color:black'>_______________________________________________</span><o:p></o:p></p><p><span style='font-size:10.0pt;font-family:"Courier New";color:black'>GSAS-II mailing list</span><o:p></o:p></p><p><a href="mailto:GSAS-II@mailman.aps.anl.gov"><span style='font-size:10.0pt;font-family:"Courier New";color:#0563C1'>GSAS-II@mailman.aps.anl.gov</span></a><o:p></o:p></p><p><a href="https://mailman.aps.anl.gov/mailman/listinfo/gsas-ii"><span style='font-size:10.0pt;font-family:"Courier New";color:#0563C1'>https://mailman.aps.anl.gov/mailman/listinfo/gsas-ii</span></a><o:p></o:p></p></div></body></html>