<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://viper.lbl.gov:8080/cctbx.xfel/index.php?action=history&amp;feed=atom&amp;title=Preparatory_steps_pyana_version</id>
	<title>Preparatory steps pyana version - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://viper.lbl.gov:8080/cctbx.xfel/index.php?action=history&amp;feed=atom&amp;title=Preparatory_steps_pyana_version"/>
	<link rel="alternate" type="text/html" href="http://viper.lbl.gov:8080/cctbx.xfel/index.php?title=Preparatory_steps_pyana_version&amp;action=history"/>
	<updated>2026-06-24T07:54:32Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.15</generator>
	<entry>
		<id>http://viper.lbl.gov:8080/cctbx.xfel/index.php?title=Preparatory_steps_pyana_version&amp;diff=951&amp;oldid=prev</id>
		<title>Aaron: /* Running and testing the command */</title>
		<link rel="alternate" type="text/html" href="http://viper.lbl.gov:8080/cctbx.xfel/index.php?title=Preparatory_steps_pyana_version&amp;diff=951&amp;oldid=prev"/>
		<updated>2015-05-08T17:37:13Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Running and testing the command&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:37, 8 May 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l74&quot;&gt;Line 74:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 74:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Before starting the averaging job the command, replace &amp;lt;code&amp;gt;&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;&amp;lt;username&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/code&amp;gt; in the configuration file with your user name.  To average run 2 using the modified configuration file, execute&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Before starting the averaging job the command, replace &amp;lt;code&amp;gt;&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;&amp;lt;username&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/code&amp;gt; in the configuration file with your user name.  To average run 2 using the modified configuration file, execute&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  $ cxi.lsf -c ~/myrelease/dark.cfg -i /reg/d/ana11/cxi/data/Mar2013calib/xtc \&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  $ cxi.lsf -c ~/myrelease/dark.cfg -i /reg/d/ana11/cxi/data/Mar2013calib/xtc \&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      -o /reg/g/cctbx/tutorials/scratch/&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;&amp;lt;username&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt; -p 6 -q &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;psanacsq &lt;/del&gt;-r 2 -s&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      -o /reg/g/cctbx/tutorials/scratch/&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;&amp;lt;username&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt; -p 6 -q &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;psanaq &lt;/ins&gt;-r 2 -s&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This will request 6 processors, overriding the &amp;lt;code&amp;gt;num-cpu&amp;lt;/code&amp;gt; parameter set in the configuration file.  The directory specified in the &amp;lt;code&amp;gt;-i&amp;lt;/code&amp;gt; option will be searched for XTC streams, and output will be arranged in the directory defined by the value of the &amp;lt;code&amp;gt;-o&amp;lt;/code&amp;gt; option.  The &amp;lt;code&amp;gt;-s&amp;lt;/code&amp;gt; option tells &amp;#039;&amp;#039;cxi.lsf&amp;#039;&amp;#039; to process all the streams on the same host—this is a requirement for averaging.  The job will be scheduled in the queue called &amp;lt;code&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;psanacsq&lt;/del&gt;&amp;lt;/code&amp;gt;, which is one of several available queues.  Note that the job must be submitted from the &amp;lt;code&amp;gt;~/myrelease&amp;lt;/code&amp;gt; directory.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This will request 6 processors, overriding the &amp;lt;code&amp;gt;num-cpu&amp;lt;/code&amp;gt; parameter set in the configuration file.  The directory specified in the &amp;lt;code&amp;gt;-i&amp;lt;/code&amp;gt; option will be searched for XTC streams, and output will be arranged in the directory defined by the value of the &amp;lt;code&amp;gt;-o&amp;lt;/code&amp;gt; option.  The &amp;lt;code&amp;gt;-s&amp;lt;/code&amp;gt; option tells &amp;#039;&amp;#039;cxi.lsf&amp;#039;&amp;#039; to process all the streams on the same host—this is a requirement for averaging.  The job will be scheduled in the queue called &amp;lt;code&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;psanaq&lt;/ins&gt;&amp;lt;/code&amp;gt;, which is one of several available queues.  Note that the job must be submitted from the &amp;lt;code&amp;gt;~/myrelease&amp;lt;/code&amp;gt; directory.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Type &amp;lt;code&amp;gt;bjobs&amp;lt;/code&amp;gt; to see if the job is running.  When it is, follow the output thusly:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Type &amp;lt;code&amp;gt;bjobs&amp;lt;/code&amp;gt; to see if the job is running.  When it is, follow the output thusly:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l83&quot;&gt;Line 83:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 83:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;When the average has been completed, the output can be inspected using the &amp;#039;&amp;#039;cctbx&amp;#039;&amp;#039; image viewer:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;When the average has been completed, the output can be inspected using the &amp;#039;&amp;#039;cctbx&amp;#039;&amp;#039; image viewer:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  $ cctbx.image_viewer /reg/g/cctbx/tutorials/scratch/&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;&amp;lt;username&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;/r0002/000/out/Ds1-r0002-*.pickle&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  $ cctbx.image_viewer /reg/g/cctbx/tutorials/scratch/&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;&amp;lt;username&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;/r0002/000/out/Ds1-r0002-*.pickle&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Averaging an experimental light run ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Averaging an experimental light run ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Aaron</name></author>
	</entry>
	<entry>
		<id>http://viper.lbl.gov:8080/cctbx.xfel/index.php?title=Preparatory_steps_pyana_version&amp;diff=896&amp;oldid=prev</id>
		<title>Aaron: Aaron moved page Preparatory steps to Preparatory steps pyana version</title>
		<link rel="alternate" type="text/html" href="http://viper.lbl.gov:8080/cctbx.xfel/index.php?title=Preparatory_steps_pyana_version&amp;diff=896&amp;oldid=prev"/>
		<updated>2014-12-12T00:40:55Z</updated>

		<summary type="html">&lt;p&gt;Aaron moved page &lt;a href=&quot;/cctbx.xfel/index.php/Preparatory_steps&quot; title=&quot;Preparatory steps&quot;&gt;Preparatory steps&lt;/a&gt; to &lt;a href=&quot;/cctbx.xfel/index.php/Preparatory_steps_pyana_version&quot; title=&quot;Preparatory steps pyana version&quot;&gt;Preparatory steps pyana version&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 00:40, 12 December 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Aaron</name></author>
	</entry>
	<entry>
		<id>http://viper.lbl.gov:8080/cctbx.xfel/index.php?title=Preparatory_steps_pyana_version&amp;diff=563&amp;oldid=prev</id>
		<title>Aaron: /* Creating a mask image */</title>
		<link rel="alternate" type="text/html" href="http://viper.lbl.gov:8080/cctbx.xfel/index.php?title=Preparatory_steps_pyana_version&amp;diff=563&amp;oldid=prev"/>
		<updated>2014-08-22T05:57:08Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Creating a mask image&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 05:57, 22 August 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l144&quot;&gt;Line 144:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 144:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The mask can be examined with &amp;#039;&amp;#039;cctbx.image_viewer&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The mask can be examined with &amp;#039;&amp;#039;cctbx.image_viewer&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==== Applying the mask ====&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Once the mask is created, it needs to be referenced by your configuration file:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; mask_path = &amp;lt;absolute path to mask file&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Further, the indexing software needs to know what value to use as the masked-out value.  Add the following to your phil files for indexing:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; integration.mask_pixel_value=-2&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Where -2 is the default mask value, but it can be whatever you specify using the -x option cxi.make_mask (see below).&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Options ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Options ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Aaron</name></author>
	</entry>
	<entry>
		<id>http://viper.lbl.gov:8080/cctbx.xfel/index.php?title=Preparatory_steps_pyana_version&amp;diff=508&amp;oldid=prev</id>
		<title>Nicksauter: /* Options */</title>
		<link rel="alternate" type="text/html" href="http://viper.lbl.gov:8080/cctbx.xfel/index.php?title=Preparatory_steps_pyana_version&amp;diff=508&amp;oldid=prev"/>
		<updated>2014-08-19T21:21:03Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Options&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:21, 19 August 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l156&quot;&gt;Line 156:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 156:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;-x, --mask_pix_val (default -2)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;-x, --mask_pix_val (default -2)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;: specifies the value to use when masking out a pixel. In other words, bad pixels in images in the XTC stream will be replaced with this value.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;: specifies the value to use when masking out a pixel. In other words, bad pixels in images in the XTC stream will be replaced with this value.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;;-o, --output (default mask_.pickle)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;: specifies the output file path, should be *.pickle, can include directory.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Nicksauter</name></author>
	</entry>
	<entry>
		<id>http://viper.lbl.gov:8080/cctbx.xfel/index.php?title=Preparatory_steps_pyana_version&amp;diff=163&amp;oldid=prev</id>
		<title>Hattne: Updated and reorganized averaging to cover cxi.lsf&#039;s -s option</title>
		<link rel="alternate" type="text/html" href="http://viper.lbl.gov:8080/cctbx.xfel/index.php?title=Preparatory_steps_pyana_version&amp;diff=163&amp;oldid=prev"/>
		<updated>2014-03-14T20:05:02Z</updated>

		<summary type="html">&lt;p&gt;Updated and reorganized averaging to cover cxi.lsf&amp;#039;s -s option&lt;/p&gt;
&lt;a href=&quot;http://viper.lbl.gov:8080/cctbx.xfel/index.php?title=Preparatory_steps_pyana_version&amp;amp;diff=163&amp;amp;oldid=162&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Hattne</name></author>
	</entry>
	<entry>
		<id>http://viper.lbl.gov:8080/cctbx.xfel/index.php?title=Preparatory_steps_pyana_version&amp;diff=162&amp;oldid=prev</id>
		<title>Hattne: Changed CS-PAD to CSPAD for consistency.</title>
		<link rel="alternate" type="text/html" href="http://viper.lbl.gov:8080/cctbx.xfel/index.php?title=Preparatory_steps_pyana_version&amp;diff=162&amp;oldid=prev"/>
		<updated>2014-03-14T18:11:33Z</updated>

		<summary type="html">&lt;p&gt;Changed CS-PAD to CSPAD for consistency.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The CSPAD detector at LCLS is sensitive to temperature distortions and is not automatically dark-subtracted, unlike images from a synchrotron source.  Because of this it is necessary to periodically collect a dark run with the shutters closed during an LCLS experiment.  The dark run should contain on the order of at least 1000 images.  Before an experimental run can be processed, this dark run must be averaged so that subsequent experimental data can have the dark subtracted from each image.  Further, events during collection can necessitate a new dark, such as ice in the beam oversaturating creating dead pixels or a change in temperature.&lt;br /&gt;
&lt;br /&gt;
In addition, averaging a lighted run in general is a useful tool for examining diffraction throughout a data collection run.&lt;br /&gt;
&lt;br /&gt;
Finally, inactive and non-bonded pixels, as well as hypersensitive pixels and any beam stop (if used) should be masked out.  This tutorial covers averaging dark and light runs, and creating mask images.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Setup your scratch area ==&lt;br /&gt;
&lt;br /&gt;
Create a scratch folder and populate it with some directories that will be used during this tutorial, changing &amp;lt;username&amp;gt; to your SLAC account name:&lt;br /&gt;
&lt;br /&gt;
 $ cd /reg/g/cctbx/tutorials/scratch/&lt;br /&gt;
 $ mkdir &amp;lt;username&amp;gt;&lt;br /&gt;
 $ cd &amp;lt;username&amp;gt;&lt;br /&gt;
 $ mkdir darks&lt;br /&gt;
 $ mkdir averages&lt;br /&gt;
 $ mkdir results&lt;br /&gt;
&lt;br /&gt;
Or you may use a directory in your home folder.&lt;br /&gt;
&lt;br /&gt;
== Create a dark average ==&lt;br /&gt;
&lt;br /&gt;
To create the average, start by copying the dark.cfg file to your pyana directory:&lt;br /&gt;
&lt;br /&gt;
 $ cd ~/myrelease&lt;br /&gt;
 $ sit_setup&lt;br /&gt;
 $ cp /reg/g/cctbx/tutorials/preprocessing/dark.cfg .&lt;br /&gt;
 &lt;br /&gt;
Open dark.cfg.  It will look something like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- XXX This is not true: can submit averaging job using cxi.lsf&amp;#039;s -s option.  Maybe fix that once there&amp;#039;s a separate page documenting cxi.lsf. --&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# -*- Mode: Conf -*-&lt;br /&gt;
#&lt;br /&gt;
# Since mod_average must be run on a single host, it cannot be&lt;br /&gt;
# submitted using cxi.lsf.&lt;br /&gt;
#&lt;br /&gt;
# bsub -n 6 -J r0002 -o /reg/g/cctbx/tutorials/scratch/&amp;lt;username&amp;gt;/dark_r0002.out -q psanacsq -R &amp;quot;span[hosts=1]&amp;quot; \&lt;br /&gt;
#   &amp;quot;cxi.pyana -c ~/myrelease/dark.cfg /reg/d/ana11/cxi/data/Mar2013calib/xtc/e236-r0002-s0*.xtc&amp;quot;&lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
[pyana]&lt;br /&gt;
modules = my_ana_pkg.mod_average&lt;br /&gt;
num-cpu = 8&lt;br /&gt;
&lt;br /&gt;
[my_ana_pkg.mod_average]&lt;br /&gt;
calib_dir      = /reg/g/cctbx/sources/cctbx_project/xfel/metrology/CSPad/run4/CxiDs1.0_Cspad.0&lt;br /&gt;
avg_dirname    = /reg/g/cctbx/tutorials/scratch/&amp;lt;username&amp;gt;/darks&lt;br /&gt;
stddev_dirname = /reg/g/cctbx/tutorials/scratch/&amp;lt;username&amp;gt;/darks&lt;br /&gt;
max_dirname    = /reg/g/cctbx/tutorials/scratch/&amp;lt;username&amp;gt;/darks&lt;br /&gt;
detz_offset    = 581&lt;br /&gt;
address         = CxiDs1-0|Cspad-0&lt;br /&gt;
avg_basename    = Ds1-r0002-avg&lt;br /&gt;
stddev_basename = Ds1-r0002-stddev&lt;br /&gt;
max_basename    = Ds1-r0002-max&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The config file is broken into three sections, the header, the pyana section and the modules section.&lt;br /&gt;
&lt;br /&gt;
=== Header Section ===&lt;br /&gt;
The comments at the top of the file include a bsub command.  This is the command to be entered from the ~/myrelease directory to queue the job for processing.  Bsub will submit the job, asking for 6 CPUs (-n), naming the job r0002 (-J), placing a log file in the -o location, and so forth.  There are several queues available for use, the psanacsq is just one of them.  The -R option restricts the job to running on a single host, which is required for averaging.  Finally, the cxi.pyana command in quotes is the command that will actually be executed on the host computer, and specifies the config file and the streams to use.  Note the asterisk, which allows averaging all the streams from a single run at one time.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Before executing the command, replace &amp;lt;username&amp;gt; in the command and in the config file with your user name.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== Pyana Section ===&lt;br /&gt;
Pyana operates by having a root section in the config file which specifies which modules to run.  In this case we are running &amp;#039;&amp;#039;cctbx.xfel&amp;#039;s&amp;#039;&amp;#039; mod_average module.  If we were running multiple modules, we could chain them together here, and each module would be executed in sequence using the parameters specified below.  We also request a number of cpus to parallelize the job with.  Even though averaging must be done on a single host, on that host the processing can be split up among multiple cores.  Note, other aspects of &amp;#039;&amp;#039;cctbx.xfel&amp;#039;&amp;#039;, such as indexing and integration, do not have this restriction.&lt;br /&gt;
&lt;br /&gt;
=== Module Section ===&lt;br /&gt;
The final section specifies parameters specific to averaging:&lt;br /&gt;
* calib_dir: this directory is provided by LCLS and includes the layout information of the 64 tiles of the CSPAD detector&lt;br /&gt;
* avg_dirname: directory to place the average image&lt;br /&gt;
* stddev_dirname: directory to place the standard deviation image&lt;br /&gt;
* max_dirname: directory to place the maximum projection image&lt;br /&gt;
* detz_offset: experiment-specific number used to calculate the detector distance.  This is the distance in millimeters between the sample interaction region and the far end of the detector stage.  The XTC stream contains the distance from the detector stage to the detector.  These two numbers are subtracted to calculate the distance between sample interaction region and the detector.  We determine this number experimentally using a grid search, testing a range of potential detz_offsets and choosing the one that shows the greatest success at indexing images&lt;br /&gt;
* address: the name of the detector in the XTC stream&lt;br /&gt;
* avg_basename: this name is prepended to a datestamp to name the average image&lt;br /&gt;
* stddev_basename: this name is prepended to a datestamp to name the standard deviation image&lt;br /&gt;
* max_basename: this name is prepended to a datestamp to name the maximum projection image image&lt;br /&gt;
&lt;br /&gt;
=== Running and testing the command ===&lt;br /&gt;
Submit the job as specified above, using the bsub command in the header:&lt;br /&gt;
 $ bsub -n 6 -J r0002 -o /reg/g/cctbx/tutorials/scratch/&amp;lt;username&amp;gt;/dark_r0002.out -q psanacsq -R &amp;quot;span[hosts=1]&amp;quot;&lt;br /&gt;
      &amp;quot;cxi.pyana -c ~/myrelease/dark.cfg /reg/d/ana11/cxi/data/Mar2013calib/xtc/e236-r0002-s0*.xtc&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Type bjobs to see if the job is running.  When it is, follow the output thusly:&lt;br /&gt;
 $ tail -f /reg/g/cctbx/tutorials/scratch/&amp;lt;username&amp;gt;/dark_r0002.out&lt;br /&gt;
&lt;br /&gt;
When the average has been completed, the output can be inspected using the &amp;quot;cctbx&amp;quot; image viewer:&lt;br /&gt;
 $ cctbx.image_viewer /reg/g/cctbx/tutorials/scratch/&amp;lt;username&amp;gt;/darks/Ds1-r0002-*.pickle&lt;br /&gt;
&lt;br /&gt;
== Averaging an experimental light run ==&lt;br /&gt;
&lt;br /&gt;
Once the dark run is made, experimental runs can be averaged to see the extent of diffraction and potential pathologies in the run. Copy the average.cfg file from the tutorials directory to your pyana directory:&lt;br /&gt;
&lt;br /&gt;
 $ cd ~/myrelease&lt;br /&gt;
 $ cp /reg/g/cctbx/tutorials/preprocessing/average.cfg .&lt;br /&gt;
&lt;br /&gt;
The cfg will look like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# -*- Mode: Conf -*-&lt;br /&gt;
#&lt;br /&gt;
# Since mod_average must be run on a single host, it cannot be&lt;br /&gt;
# submitted using cxi.lsf.&lt;br /&gt;
#&lt;br /&gt;
# bsub -n 6 -J r0003 -o /reg/g/cctbx/tutorials/scratch/&amp;lt;username&amp;gt;/average_r0003.out -q psanacsq -R &amp;quot;span[hosts=1]&amp;quot; \&lt;br /&gt;
#   &amp;quot;cxi.pyana -c average.cfg /reg/d/ana11/cxi/data/Mar2013calib/xtc/e236-r0003-s0*.xtc&amp;quot;&lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
[pyana]&lt;br /&gt;
modules = my_ana_pkg.mod_average&lt;br /&gt;
num-cpu = 8&lt;br /&gt;
&lt;br /&gt;
[my_ana_pkg.mod_average]&lt;br /&gt;
calib_dir      = /reg/g/cctbx/sources/cctbx_project/xfel/metrology/CSPad/run4/CxiDs1.0_Cspad.0&lt;br /&gt;
dark_path      = /reg/g/cctbx/tutorials/scratch/&amp;lt;username&amp;gt;/darks/&amp;lt;name of dark average&amp;gt;.pickle&lt;br /&gt;
dark_stddev    = /reg/g/cctbx/tutorials/scratch/&amp;lt;username&amp;gt;/darks/&amp;lt;name of dark stddev&amp;gt;.pickle&lt;br /&gt;
avg_dirname    = /reg/g/cctbx/tutorials/scratch/&amp;lt;username&amp;gt;/averages&lt;br /&gt;
stddev_dirname = /reg/g/cctbx/tutorials/scratch/&amp;lt;username&amp;gt;/averages&lt;br /&gt;
max_dirname    = /reg/g/cctbx/tutorials/scratch/&amp;lt;username&amp;gt;/averages&lt;br /&gt;
detz_offset    = 581&lt;br /&gt;
address         = CxiDs1-0|Cspad-0&lt;br /&gt;
avg_basename    = Ds1-r0003-avg&lt;br /&gt;
stddev_basename = Ds1-r0003-stddev&lt;br /&gt;
max_basename    = Ds1-r0003-max&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The only difference is the addition of two parameters:&lt;br /&gt;
* dark_path: path to the average dark image created before&lt;br /&gt;
* dark_stddev: path to the standard deviation dark image created before&lt;br /&gt;
&lt;br /&gt;
The job is ran as before using the bsub command in the header, again remembering to change all instances of &amp;lt;username&amp;gt; to your own SLAC user name.  Here you must also change &amp;lt;name of dark average&amp;gt; and &amp;lt;name of dark stddev&amp;gt; to the names of the average and standard deviation images created in the previous step.  The result of the run will be three new images that can be viewed with cctbx.image_viewer in the same manner as the darks were.&lt;br /&gt;
&lt;br /&gt;
== Information contained in the light average ==&lt;br /&gt;
&lt;br /&gt;
Firstly, the light and dark images can be used to mask of any bad pixels, as detailed below. The light images (maximum in particular) also serve as a virtual, dark-subtracted, powder pattern that can used to inspect the data for diffraction. The light maximum should also flag up obvious errors in metrology, because rings will be non-continuous if the quadrants are misaligned. Intensity values from the corners of the light average or maximum are also useful to estimate background when taking first guesses at thresholds for hit-finding and integration.&lt;br /&gt;
&lt;br /&gt;
== Creating a mask image ==&lt;br /&gt;
&amp;#039;&amp;#039;cctbx.xfel&amp;#039;&amp;#039; uses three images to create a mask.  Those images, and the purposes of them are listed below:&lt;br /&gt;
* Average image from a dark run: pixels ≤ 0 are considered dead, pixels &amp;gt; 2000 are too sensitive&lt;br /&gt;
* Standard deviation from a dark run: pixels ≤ 0 are considered dead, pixels ≥ 10 are too uncertain&lt;br /&gt;
* Maximum projection from a lighted run (&amp;#039;&amp;#039;i.e.&amp;#039;&amp;#039; an experimental run): pixels &amp;lt; 300 are considered non-bonded or in a shadow.  [N.B.--this assumes a lot--300 may be appropriate for XPP data collected at atmosphere; not CXI data in vacuo--NKS.] The presence of diffracting data is not needed, but also will not interfere.&lt;br /&gt;
&lt;br /&gt;
To create the mask, execute these commands:&lt;br /&gt;
 $ cd /reg/g/cctbx/tutorials/scratch/&amp;lt;username&amp;gt;/&lt;br /&gt;
 $ mkdir masks&lt;br /&gt;
 $ cd masks&lt;br /&gt;
 $ cxi.make_mask -m 10 ../darks/&amp;lt;name of dark average&amp;gt;.pickle ../darks/&amp;lt;name of dark standard deviation&amp;gt;.pickle&lt;br /&gt;
     ../averages/&amp;lt;name of light maximum projection&amp;gt;.pickle&lt;br /&gt;
&lt;br /&gt;
A new image is created where each pixel has one of two values: -2 (masked out pixels), and 0 (good pixels).  Note, the maximum projection minimum pixel value is overridden here to a value that is more sensible for the tutorial&amp;#039;s lysozyme data.  You will likely need to adjust this parameter based on your data (see below for details and for further overrides).  &lt;br /&gt;
&lt;br /&gt;
Use the resultant mask image during processing with &amp;#039;&amp;#039;cctbx.xfel&amp;#039;&amp;#039; by adding this flag to your pyana config file:&lt;br /&gt;
&lt;br /&gt;
 mask_path   = &amp;lt;path to mask file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In addition, a polygon and a circle can be specified using the --poly_mask and --circle_mask parameters:&lt;br /&gt;
&lt;br /&gt;
 $ cxi.make_mask --poly_mask=17,854,76,967,760,982,762,879 --circle_mask=855,939,103 Cspad-avg.pickle Cspad-stddev.pickle Cspad-max.pickle&lt;br /&gt;
&lt;br /&gt;
This example creates a mask image with a polygon [with vertices (17,854), (76,967), (760,982), and (762,879)] masked out, and a circle with center (855,939) and radius 103 masked out. Only one polygon and circle can be specified at the moment.&lt;br /&gt;
&lt;br /&gt;
The mask can be examined with cctbx.image_viewer.&lt;br /&gt;
&lt;br /&gt;
=== Options ===&lt;br /&gt;
&lt;br /&gt;
Some additional options are available for specifying the details of the masking operation:&lt;br /&gt;
;-a,  --avg_max (default 2000)&lt;br /&gt;
: specifies the maximum value in ADU a pixel in the average image can have before it&amp;#039;s masked out.  The minimum is always zero.&lt;br /&gt;
;-s, --stddev_max (default 10)&lt;br /&gt;
: specifies the maximum value in ADU a pixel in the standard deviation image can have before it&amp;#039;s masked out.  The minimum is always zero.&lt;br /&gt;
;-m, --maxproj_min (default 300)&lt;br /&gt;
: specifies the minimum value in ADU a pixel in the maximum projection image can have before it&amp;#039;s masked out.  Of the three parameters for controlling cutoffs in &amp;#039;&amp;#039;cxi.make_mask&amp;#039;&amp;#039;, the -m option is unique from the -a and -s options in that it will likely vary the according to your sample&amp;#039;s background.  Carefully examine the corners of your lighted maximum projection and choose a value lower than the ADU values displayed.  Also note that there is no cutoff on the high end of the maximum projection image specified in the mask, as that is defined as the saturation value for the detector.&lt;br /&gt;
;-x, --mask_pix_val (default -2)&lt;br /&gt;
: specifies the value to use when masking out a pixel. In other words, bad pixels in images in the XTC stream will be replaced with this value.&lt;/div&gt;</summary>
		<author><name>Hattne</name></author>
	</entry>
	<entry>
		<id>http://viper.lbl.gov:8080/cctbx.xfel/index.php?title=Preparatory_steps_pyana_version&amp;diff=161&amp;oldid=prev</id>
		<title>Hattne: Replaced ./lsf.sh with cxi.lsf.</title>
		<link rel="alternate" type="text/html" href="http://viper.lbl.gov:8080/cctbx.xfel/index.php?title=Preparatory_steps_pyana_version&amp;diff=161&amp;oldid=prev"/>
		<updated>2014-02-11T00:36:10Z</updated>

		<summary type="html">&lt;p&gt;Replaced ./lsf.sh with cxi.lsf.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The CS-PAD detector at LCLS is sensitive to temperature distortions and is not automatically dark-subtracted, unlike images from a synchrotron source.  Because of this it is necessary to periodically collect a dark run with the shutters closed during an LCLS experiment.  The dark run should contain on the order of at least 1000 images.  Before an experimental run can be processed, this dark run must be averaged so that subsequent experimental data can have the dark subtracted from each image.  Further, events during collection can necessitate a new dark, such as ice in the beam oversaturating creating dead pixels or a change in temperature.&lt;br /&gt;
&lt;br /&gt;
In addition, averaging a lighted run in general is a useful tool for examining diffraction throughout a data collection run.&lt;br /&gt;
&lt;br /&gt;
Finally, inactive and non-bonded pixels, as well as hypersensitive pixels and any beam stop (if used) should be masked out.  This tutorial covers averaging dark and light runs, and creating mask images.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Setup your scratch area ==&lt;br /&gt;
&lt;br /&gt;
Create a scratch folder and populate it with some directories that will be used during this tutorial, changing &amp;lt;username&amp;gt; to your SLAC account name:&lt;br /&gt;
&lt;br /&gt;
 $ cd /reg/g/cctbx/tutorials/scratch/&lt;br /&gt;
 $ mkdir &amp;lt;username&amp;gt;&lt;br /&gt;
 $ cd &amp;lt;username&amp;gt;&lt;br /&gt;
 $ mkdir darks&lt;br /&gt;
 $ mkdir averages&lt;br /&gt;
 $ mkdir results&lt;br /&gt;
&lt;br /&gt;
Or you may use a directory in your home folder.&lt;br /&gt;
&lt;br /&gt;
== Create a dark average ==&lt;br /&gt;
&lt;br /&gt;
To create the average, start by copying the dark.cfg file to your pyana directory:&lt;br /&gt;
&lt;br /&gt;
 $ cd ~/myrelease&lt;br /&gt;
 $ sit_setup&lt;br /&gt;
 $ cp /reg/g/cctbx/tutorials/preprocessing/dark.cfg .&lt;br /&gt;
 &lt;br /&gt;
Open dark.cfg.  It will look something like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- XXX This is not true: can submit averaging job using cxi.lsf&amp;#039;s -s option.  Maybe fix that once there&amp;#039;s a separate page documenting cxi.lsf. --&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# -*- Mode: Conf -*-&lt;br /&gt;
#&lt;br /&gt;
# Since mod_average must be run on a single host, it cannot be&lt;br /&gt;
# submitted using cxi.lsf.&lt;br /&gt;
#&lt;br /&gt;
# bsub -n 6 -J r0002 -o /reg/g/cctbx/tutorials/scratch/&amp;lt;username&amp;gt;/dark_r0002.out -q psanacsq -R &amp;quot;span[hosts=1]&amp;quot; \&lt;br /&gt;
#   &amp;quot;cxi.pyana -c ~/myrelease/dark.cfg /reg/d/ana11/cxi/data/Mar2013calib/xtc/e236-r0002-s0*.xtc&amp;quot;&lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
[pyana]&lt;br /&gt;
modules = my_ana_pkg.mod_average&lt;br /&gt;
num-cpu = 8&lt;br /&gt;
&lt;br /&gt;
[my_ana_pkg.mod_average]&lt;br /&gt;
calib_dir      = /reg/g/cctbx/sources/cctbx_project/xfel/metrology/CSPad/run4/CxiDs1.0_Cspad.0&lt;br /&gt;
avg_dirname    = /reg/g/cctbx/tutorials/scratch/&amp;lt;username&amp;gt;/darks&lt;br /&gt;
stddev_dirname = /reg/g/cctbx/tutorials/scratch/&amp;lt;username&amp;gt;/darks&lt;br /&gt;
max_dirname    = /reg/g/cctbx/tutorials/scratch/&amp;lt;username&amp;gt;/darks&lt;br /&gt;
detz_offset    = 581&lt;br /&gt;
address         = CxiDs1-0|Cspad-0&lt;br /&gt;
avg_basename    = Ds1-r0002-avg&lt;br /&gt;
stddev_basename = Ds1-r0002-stddev&lt;br /&gt;
max_basename    = Ds1-r0002-max&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The config file is broken into three sections, the header, the pyana section and the modules section.&lt;br /&gt;
&lt;br /&gt;
=== Header Section ===&lt;br /&gt;
The comments at the top of the file include a bsub command.  This is the command to be entered from the ~/myrelease directory to queue the job for processing.  Bsub will submit the job, asking for 6 CPUs (-n), naming the job r0002 (-J), placing a log file in the -o location, and so forth.  There are several queues available for use, the psanacsq is just one of them.  The -R option restricts the job to running on a single host, which is required for averaging.  Finally, the cxi.pyana command in quotes is the command that will actually be executed on the host computer, and specifies the config file and the streams to use.  Note the asterisk, which allows averaging all the streams from a single run at one time.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Before executing the command, replace &amp;lt;username&amp;gt; in the command and in the config file with your user name.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== Pyana Section ===&lt;br /&gt;
Pyana operates by having a root section in the config file which specifies which modules to run.  In this case we are running &amp;#039;&amp;#039;cctbx.xfel&amp;#039;s&amp;#039;&amp;#039; mod_average module.  If we were running multiple modules, we could chain them together here, and each module would be executed in sequence using the parameters specified below.  We also request a number of cpus to parallelize the job with.  Even though averaging must be done on a single host, on that host the processing can be split up among multiple cores.  Note, other aspects of &amp;#039;&amp;#039;cctbx.xfel&amp;#039;&amp;#039;, such as indexing and integration, do not have this restriction.&lt;br /&gt;
&lt;br /&gt;
=== Module Section ===&lt;br /&gt;
The final section specifies parameters specific to averaging:&lt;br /&gt;
* calib_dir: this directory is provided by LCLS and includes the layout information of the 64 tiles of the CS-PAD detector&lt;br /&gt;
* avg_dirname: directory to place the average image&lt;br /&gt;
* stddev_dirname: directory to place the standard deviation image&lt;br /&gt;
* max_dirname: directory to place the maximum projection image&lt;br /&gt;
* detz_offset: experiment-specific number used to calculate the detector distance.  This is the distance in millimeters between the sample interaction region and the far end of the detector stage.  The XTC stream contains the distance from the detector stage to the detector.  These two numbers are subtracted to calculate the distance between sample interaction region and the detector.  We determine this number experimentally using a grid search, testing a range of potential detz_offsets and choosing the one that shows the greatest success at indexing images&lt;br /&gt;
* address: the name of the detector in the XTC stream&lt;br /&gt;
* avg_basename: this name is prepended to a datestamp to name the average image&lt;br /&gt;
* stddev_basename: this name is prepended to a datestamp to name the standard deviation image&lt;br /&gt;
* max_basename: this name is prepended to a datestamp to name the maximum projection image image&lt;br /&gt;
&lt;br /&gt;
=== Running and testing the command ===&lt;br /&gt;
Submit the job as specified above, using the bsub command in the header:&lt;br /&gt;
 $ bsub -n 6 -J r0002 -o /reg/g/cctbx/tutorials/scratch/&amp;lt;username&amp;gt;/dark_r0002.out -q psanacsq -R &amp;quot;span[hosts=1]&amp;quot;&lt;br /&gt;
      &amp;quot;cxi.pyana -c ~/myrelease/dark.cfg /reg/d/ana11/cxi/data/Mar2013calib/xtc/e236-r0002-s0*.xtc&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Type bjobs to see if the job is running.  When it is, follow the output thusly:&lt;br /&gt;
 $ tail -f /reg/g/cctbx/tutorials/scratch/&amp;lt;username&amp;gt;/dark_r0002.out&lt;br /&gt;
&lt;br /&gt;
When the average has been completed, the output can be inspected using the &amp;quot;cctbx&amp;quot; image viewer:&lt;br /&gt;
 $ cctbx.image_viewer /reg/g/cctbx/tutorials/scratch/&amp;lt;username&amp;gt;/darks/Ds1-r0002-*.pickle&lt;br /&gt;
&lt;br /&gt;
== Averaging an experimental light run ==&lt;br /&gt;
&lt;br /&gt;
Once the dark run is made, experimental runs can be averaged to see the extent of diffraction and potential pathologies in the run. Copy the average.cfg file from the tutorials directory to your pyana directory:&lt;br /&gt;
&lt;br /&gt;
 $ cd ~/myrelease&lt;br /&gt;
 $ cp /reg/g/cctbx/tutorials/preprocessing/average.cfg .&lt;br /&gt;
&lt;br /&gt;
The cfg will look like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# -*- Mode: Conf -*-&lt;br /&gt;
#&lt;br /&gt;
# Since mod_average must be run on a single host, it cannot be&lt;br /&gt;
# submitted using cxi.lsf.&lt;br /&gt;
#&lt;br /&gt;
# bsub -n 6 -J r0003 -o /reg/g/cctbx/tutorials/scratch/&amp;lt;username&amp;gt;/average_r0003.out -q psanacsq -R &amp;quot;span[hosts=1]&amp;quot; \&lt;br /&gt;
#   &amp;quot;cxi.pyana -c average.cfg /reg/d/ana11/cxi/data/Mar2013calib/xtc/e236-r0003-s0*.xtc&amp;quot;&lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
[pyana]&lt;br /&gt;
modules = my_ana_pkg.mod_average&lt;br /&gt;
num-cpu = 8&lt;br /&gt;
&lt;br /&gt;
[my_ana_pkg.mod_average]&lt;br /&gt;
calib_dir      = /reg/g/cctbx/sources/cctbx_project/xfel/metrology/CSPad/run4/CxiDs1.0_Cspad.0&lt;br /&gt;
dark_path      = /reg/g/cctbx/tutorials/scratch/&amp;lt;username&amp;gt;/darks/&amp;lt;name of dark average&amp;gt;.pickle&lt;br /&gt;
dark_stddev    = /reg/g/cctbx/tutorials/scratch/&amp;lt;username&amp;gt;/darks/&amp;lt;name of dark stddev&amp;gt;.pickle&lt;br /&gt;
avg_dirname    = /reg/g/cctbx/tutorials/scratch/&amp;lt;username&amp;gt;/averages&lt;br /&gt;
stddev_dirname = /reg/g/cctbx/tutorials/scratch/&amp;lt;username&amp;gt;/averages&lt;br /&gt;
max_dirname    = /reg/g/cctbx/tutorials/scratch/&amp;lt;username&amp;gt;/averages&lt;br /&gt;
detz_offset    = 581&lt;br /&gt;
address         = CxiDs1-0|Cspad-0&lt;br /&gt;
avg_basename    = Ds1-r0003-avg&lt;br /&gt;
stddev_basename = Ds1-r0003-stddev&lt;br /&gt;
max_basename    = Ds1-r0003-max&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The only difference is the addition of two parameters:&lt;br /&gt;
* dark_path: path to the average dark image created before&lt;br /&gt;
* dark_stddev: path to the standard deviation dark image created before&lt;br /&gt;
&lt;br /&gt;
The job is ran as before using the bsub command in the header, again remembering to change all instances of &amp;lt;username&amp;gt; to your own SLAC user name.  Here you must also change &amp;lt;name of dark average&amp;gt; and &amp;lt;name of dark stddev&amp;gt; to the names of the average and standard deviation images created in the previous step.  The result of the run will be three new images that can be viewed with cctbx.image_viewer in the same manner as the darks were.&lt;br /&gt;
&lt;br /&gt;
== Information contained in the light average ==&lt;br /&gt;
&lt;br /&gt;
Firstly, the light and dark images can be used to mask of any bad pixels, as detailed below. The light images (maximum in particular) also serve as a virtual, dark-subtracted, powder pattern that can used to inspect the data for diffraction. The light maximum should also flag up obvious errors in meteorology, because rings will be non-continuous if the quadrants are misaligned. Intensity values from the corners of the light average or maximum are also useful to estimate background when taking first guesses at thresholds for hit-finding and integration.&lt;br /&gt;
&lt;br /&gt;
== Creating a mask image ==&lt;br /&gt;
&amp;#039;&amp;#039;cctbx.xfel&amp;#039;&amp;#039; uses three images to create a mask.  Those images, and the purposes of them are listed below:&lt;br /&gt;
* Average image from a dark run: pixels ≤ 0 are considered dead, pixels &amp;gt; 2000 are too sensitive&lt;br /&gt;
* Standard deviation from a dark run: pixels ≤ 0 are considered dead, pixels ≥ 10 are too uncertain&lt;br /&gt;
* Maximum projection from a lighted run (&amp;#039;&amp;#039;i.e.&amp;#039;&amp;#039; an experimental run): pixels &amp;lt; 300 are considered non-bonded or in a shadow.  The presence of diffracting data is not needed, but also will not interfere.&lt;br /&gt;
&lt;br /&gt;
To create the mask, execute these commands:&lt;br /&gt;
 $ cd /reg/g/cctbx/tutorials/scratch/&amp;lt;username&amp;gt;/&lt;br /&gt;
 $ mkdir masks&lt;br /&gt;
 $ cd masks&lt;br /&gt;
 $ cxi.make_mask -m 10 ../darks/&amp;lt;name of dark average&amp;gt;.pickle ../darks/&amp;lt;name of dark standard deviation&amp;gt;.pickle&lt;br /&gt;
     ../averages/&amp;lt;name of light maximum projection&amp;gt;.pickle&lt;br /&gt;
&lt;br /&gt;
A new image is created where each pixel has one of two values: -2 (masked out pixels), and 0 (good pixels).  Note, the maximum projection minimum pixel value is overridden here to a value that is more sensible for the tutorial&amp;#039;s lysozyme data.  You will likely need to adjust this parameter based on your data (see below for details and for further overrides).  &lt;br /&gt;
&lt;br /&gt;
Use the resultant mask image during processing with &amp;#039;&amp;#039;cctbx.xfel&amp;#039;&amp;#039; by adding this flag to your pyana config file:&lt;br /&gt;
&lt;br /&gt;
 mask_path   = &amp;lt;path to mask file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In addition, a polygon and a circle can be specified using the --poly_mask and --circle_mask parameters:&lt;br /&gt;
&lt;br /&gt;
 $ cxi.make_mask --poly_mask=17,854,76,967,760,982,762,879 --circle_mask=855,939,103 Cspad-avg.pickle Cspad-stddev.pickle Cspad-max.pickle&lt;br /&gt;
&lt;br /&gt;
This example creates a mask image with the polygon with points (17,854), (76,967), (760,982), and (762,879) masked out, and the circle with center (855,939) and radius 103 masked out. Only one polygon and circle can be specified at the moment.&lt;br /&gt;
&lt;br /&gt;
The mask can be examined with cctbx.image_viewer.&lt;br /&gt;
&lt;br /&gt;
=== Options ===&lt;br /&gt;
&lt;br /&gt;
Some additional options are available for specifying the details of the masking operation:&lt;br /&gt;
;-a,  --avg_max (default 2000)&lt;br /&gt;
: specifies the maximum value in ADU a pixel in the average image can have before it&amp;#039;s masked out.  The minimum is always zero.&lt;br /&gt;
;-s, --stddev_max (default 10)&lt;br /&gt;
: specifies the maximum value in ADU a pixel in the standard deviation image can have before it&amp;#039;s masked out.  The minimum is always zero.&lt;br /&gt;
;-m, --maxproj_min (default 300)&lt;br /&gt;
: specifies the minimum value in ADU a pixel in the maximum projection image can have before it&amp;#039;s masked out.  Of the three parameters for controlling cutoffs in &amp;#039;&amp;#039;cxi.make_mask&amp;#039;&amp;#039;, the -m option is unique from the -a and -s options in that it will likely vary the according to your sample&amp;#039;s background.  Carefully examine the corners of your lighted maximum projection and choose a value lower than the ADU values displayed.  Also note that there is no cutoff on the high end of the maximum projection image specified in the mask, as that is defined as the saturation value for the detector.&lt;br /&gt;
;-x, --mask_pix_val (default -2)&lt;br /&gt;
: specifies the value to use when masking out a pixel. In other words, bad pixels in images in the XTC stream will be replaced with this value.&lt;/div&gt;</summary>
		<author><name>Hattne</name></author>
	</entry>
	<entry>
		<id>http://viper.lbl.gov:8080/cctbx.xfel/index.php?title=Preparatory_steps_pyana_version&amp;diff=160&amp;oldid=prev</id>
		<title>Hattne: Moved scratch-area setup to tutorial.</title>
		<link rel="alternate" type="text/html" href="http://viper.lbl.gov:8080/cctbx.xfel/index.php?title=Preparatory_steps_pyana_version&amp;diff=160&amp;oldid=prev"/>
		<updated>2014-02-05T18:51:59Z</updated>

		<summary type="html">&lt;p&gt;Moved scratch-area setup to tutorial.&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:51, 5 February 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l4&quot;&gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Finally, inactive and non-bonded pixels, as well as hypersensitive pixels and any beam stop (if used) should be masked out.  This tutorial covers averaging dark and light runs, and creating mask images.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Finally, inactive and non-bonded pixels, as well as hypersensitive pixels and any beam stop (if used) should be masked out.  This tutorial covers averaging dark and light runs, and creating mask images.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== Setup your scratch area ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Create a scratch folder and populate it with some directories that will be used during this tutorial, changing &amp;lt;username&gt; to your SLAC account name:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; $ cd /reg/g/cctbx/tutorials/scratch/&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; $ mkdir &amp;lt;username&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; $ cd &amp;lt;username&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; $ mkdir darks&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; $ mkdir averages&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; $ mkdir results&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Create a dark average ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Create a dark average ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Hattne</name></author>
	</entry>
	<entry>
		<id>http://viper.lbl.gov:8080/cctbx.xfel/index.php?title=Preparatory_steps_pyana_version&amp;diff=188&amp;oldid=prev</id>
		<title>Aaron: /* Averaging an experimental light run */</title>
		<link rel="alternate" type="text/html" href="http://viper.lbl.gov:8080/cctbx.xfel/index.php?title=Preparatory_steps_pyana_version&amp;diff=188&amp;oldid=prev"/>
		<updated>2014-01-29T23:38:37Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Averaging an experimental light run&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:38, 29 January 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l114&quot;&gt;Line 114:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 114:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* dark_stddev: path to the standard deviation dark image created before&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* dark_stddev: path to the standard deviation dark image created before&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The job is ran as before using the bsub command in the header, again remembering to change all instances of &amp;lt;username&amp;gt; to your own SLAC user name.  &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;It &lt;/del&gt;can be &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;tested &lt;/del&gt;with cctbx.image_viewer in the same manner as &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;well&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The job is ran as before using the bsub command in the header, again remembering to change all instances of &amp;lt;username&amp;gt; to your own SLAC user name.  &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Here you must also change &amp;lt;name of dark average&amp;gt; and &amp;lt;name of dark stddev&amp;gt; to the names of the average and standard deviation images created in the previous step.  The result of the run will be three new images that &lt;/ins&gt;can be &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;viewed &lt;/ins&gt;with cctbx.image_viewer in the same manner as &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;the darks were&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Information contained in the light average ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Information contained in the light average ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Aaron</name></author>
	</entry>
	<entry>
		<id>http://viper.lbl.gov:8080/cctbx.xfel/index.php?title=Preparatory_steps_pyana_version&amp;diff=187&amp;oldid=prev</id>
		<title>Aaron: /* Averaging an experimental light run */</title>
		<link rel="alternate" type="text/html" href="http://viper.lbl.gov:8080/cctbx.xfel/index.php?title=Preparatory_steps_pyana_version&amp;diff=187&amp;oldid=prev"/>
		<updated>2014-01-29T23:29:21Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Averaging an experimental light run&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:29, 29 January 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l79&quot;&gt;Line 79:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 79:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  $ cd ~/myrelease&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  $ cd ~/myrelease&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  $ cp /reg/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;d/ffb/cxi/temp&lt;/del&gt;/cctbx/tutorials/preprocessing/average.cfg .&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  $ cp /reg/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;g&lt;/ins&gt;/cctbx/tutorials/preprocessing/average.cfg .&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The cfg will look like this:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The cfg will look like this:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Aaron</name></author>
	</entry>
</feed>