Index: c/sas/guiframe/media/Graph_help.html
===================================================================
--- src/sas/guiframe/media/Graph_help.html	(revision 794922220f2fb3b23dd08c648aabf87b4850596c)
+++ 	(revision )
@@ -1,122 +1,0 @@
-<html>
-<body>
-
-<h4>Graph Menu</h4>
-<ul>
-<li><a href="#intro">Introduction</a></li>
-<li><a href="#reset">Reset Graph</a></li>
-<li><a href="#hide">Hide/Show/Delete Graph</a></li>
-<li><a href="#info">Data Info</a></li>
-<li><a href="#save">Save plot Image</a></li>
-<li><a href="#savedata">Save Data</a></li>
-<li><a href="#drag">Drag plot</a></li>
-<li><a href="#zoom">Zoom In/Out</a></li>
-<li><a href="#remove">Remove Data</a></li>
-<li><a href="#scale">Change Scale</a></li>
-<li><a href="#linearfit">Linear Fit</a></li>
-<li><a href="#modify">Other Graph Modifications</a></li>
-</ul>
-
-<h5><a name="intro">Introduction</a></h5>
-<p> 
-	Locating the pointer and right-clicking on a data/theory plot will bring a context menu.
-	On the menu, select a menu item. 
-</p>
-
-<h5><a name="reset">Reset Graph</a></h5>
-<p>
-	To reset the graph's axis range, right click on the plot and the context menu pops-up.
-	Select <b>Reset Graph</b> and the plot will take its initial range. 
-	Also the 'home' icon in tool bar will do the same.
-</p>
-
-<h5><a name="hide">Hide/Show/Delete Graph</a></h5>
-<p>
-	To Hide, click the Hide (bar) button in the tool bar.<br>
-	To Show, select the the 'Show' menuitem in the 'Graph' menu in the menu bar.<br>
-	To Delete, click the 'x' button in the title bar.<br>
-	Note: If a residuals graph (in Fitting) is hidden, it will not show up after computation.
-</p>
-
-<h5><a name="save"> Save Plot Image</a></h5>
-<p>
-	Right click on plot. Context menu will pop-up select save image [file name].A dialog
-	window opens and write a the name of the file to save and click on <b>Save Image.</b>
-</p>
-
-<h5><a name="info"> Data Info</a></h5>
-<p>
-	From the context menu, select 'Data Info' to see the data information dialog panel.
-</p>
-
-<h5><a name="savedata"> Save Data</a></h5>
-<p>
-	From the context menu, select 'Save points as a file' for 1D, or 'Save as a file(DAT)'
-	for 2D. Note that two formats, txt and xml, are available in 1D saving.
-</p>
-
-
-<h5><a name="drag"> Drag Plot</a></h5>
-<p>
-Select the <b>crossed arrows</b>  button on the plot panel <b>toolbar </b> to drag the plot.
-To disable dragging mode, unselect the same button on the toolbar.
-</p>
-
-<h5><a name="remove">Remove data from plot</a></h5>
-<p>
-	Highlight the plot and the context menu appears.Select <b>remove [file name]</b>.
-	The plot selected will disappear.
-</p>
-
-<h5><a name="zoom">Zoom In/Out</a></h5>
-<p>
- Select the <b>rectangle</b>  button on the plot panel <b>toolbar </b> to zoom in
- a region of the plot.
-</p>
-<p>
-To disable zoom mode, unselect the same button on the toolbar. 
-After zoom in a region, select <b>left arrow</b> or <b>right arrow</b>button on the toolbar
-to set the graph the the previous size.
-If a mouse wheel button is available, <b>zoom in/out</b> by scrolling the mouse wheel
- ( see 'Key combination' help for details).
-</p>
-<h5><a name="scale">Change Scale</a></h5>
-<p>
-	If the loaded data is a 1-D data.Changing scale or Data Representation will work as
-	followed:<b>right click</b> on the plot window.
-	A context menu pops-up  and select <b>Change Scale</b>. A dialog window titled<b>
-	select the scale of the graph</b> will pop-up then change the <b>x</b>, the <b>y</b>
-	and the <b>view </b> values as wish.
-	The 'view' option includes the axis scale short-cuts such as Linear, Guinier, Cross-sectional (XC)
-	Guinier, and Porod plot scale.  For a proper data set, these axis scales can be used to estimate 
-	Rg, Rod diameter, or Backgroud of neutron scattering data respectively (via 'Linear Fit'; see below).
-	<br>
-	For a 2D image, <b>Right click</b> on the image to pop-up the context
-	menu. Select <Toggle linear/Log scale> to switch from linear to log scale. The scale 
-	selected is printed on the statusbar.
-	
-</p>
-
-<h5><a name="linearfit">Linear Fit</a></h5>
-<p>
-	Linear fit is to perform a line model fitting keeping the scale of the plot. 
-	Highlight data to fit. 
-	From the context menu
-	select <b> Linear Fit</b>.A dialog window appears.
-	Change model initial parameters, data limits
-	and hit <b> fit</b> button. 
-	New parameters values are displayed and the line with the new 
-	parameters is added to the plot.
-	Especially for Guinier, XC Guinier, and Porod plot scale, this 'Linear Fit' will provides Rg, 
-	Rod diameter, and background, respectively.  The following figure shows an example for the Guinier scale. 
-	</p>
-	<br>
-	<img src="guinier_fit.png" /><br>
-	<br>
-
-<h5><a name="modify">Other Graph Modifications</a></h5>
-<p>
-	Some custom modifications of the symbols, text, axis, etc of the graph are provided
-</p>
-</body>
-</html>
Index: src/sas/guiframe/media/Graph_help_v0.html
===================================================================
--- src/sas/guiframe/media/Graph_help_v0.html	(revision b532aa125f4128991fc9efb6c7c4d8727ef4ed6a)
+++ src/sas/guiframe/media/Graph_help_v0.html	(revision b532aa125f4128991fc9efb6c7c4d8727ef4ed6a)
@@ -0,0 +1,122 @@
+<html>
+<body>
+
+<h4>Graph Menu</h4>
+<ul>
+<li><a href="#intro">Introduction</a></li>
+<li><a href="#reset">Reset Graph</a></li>
+<li><a href="#hide">Hide/Show/Delete Graph</a></li>
+<li><a href="#info">Data Info</a></li>
+<li><a href="#save">Save plot Image</a></li>
+<li><a href="#savedata">Save Data</a></li>
+<li><a href="#drag">Drag plot</a></li>
+<li><a href="#zoom">Zoom In/Out</a></li>
+<li><a href="#remove">Remove Data</a></li>
+<li><a href="#scale">Change Scale</a></li>
+<li><a href="#linearfit">Linear Fit</a></li>
+<li><a href="#modify">Other Graph Modifications</a></li>
+</ul>
+
+<h5><a name="intro">Introduction</a></h5>
+<p> 
+	Locating the pointer and right-clicking on a data/theory plot will bring a context menu.
+	On the menu, select a menu item. 
+</p>
+
+<h5><a name="reset">Reset Graph</a></h5>
+<p>
+	To reset the graph's axis range, right click on the plot and the context menu pops-up.
+	Select <b>Reset Graph</b> and the plot will take its initial range. 
+	Also the 'home' icon in tool bar will do the same.
+</p>
+
+<h5><a name="hide">Hide/Show/Delete Graph</a></h5>
+<p>
+	To Hide, click the Hide (bar) button in the tool bar.<br>
+	To Show, select the the 'Show' menuitem in the 'Graph' menu in the menu bar.<br>
+	To Delete, click the 'x' button in the title bar.<br>
+	Note: If a residuals graph (in Fitting) is hidden, it will not show up after computation.
+</p>
+
+<h5><a name="save"> Save Plot Image</a></h5>
+<p>
+	Right click on plot. Context menu will pop-up select save image [file name].A dialog
+	window opens and write a the name of the file to save and click on <b>Save Image.</b>
+</p>
+
+<h5><a name="info"> Data Info</a></h5>
+<p>
+	From the context menu, select 'Data Info' to see the data information dialog panel.
+</p>
+
+<h5><a name="savedata"> Save Data</a></h5>
+<p>
+	From the context menu, select 'Save points as a file' for 1D, or 'Save as a file(DAT)'
+	for 2D. Note that two formats, txt and xml, are available in 1D saving.
+</p>
+
+
+<h5><a name="drag"> Drag Plot</a></h5>
+<p>
+Select the <b>crossed arrows</b>  button on the plot panel <b>toolbar </b> to drag the plot.
+To disable dragging mode, unselect the same button on the toolbar.
+</p>
+
+<h5><a name="remove">Remove data from plot</a></h5>
+<p>
+	Highlight the plot and the context menu appears.Select <b>remove [file name]</b>.
+	The plot selected will disappear.
+</p>
+
+<h5><a name="zoom">Zoom In/Out</a></h5>
+<p>
+ Select the <b>rectangle</b>  button on the plot panel <b>toolbar </b> to zoom in
+ a region of the plot.
+</p>
+<p>
+To disable zoom mode, unselect the same button on the toolbar. 
+After zoom in a region, select <b>left arrow</b> or <b>right arrow</b>button on the toolbar
+to set the graph the the previous size.
+If a mouse wheel button is available, <b>zoom in/out</b> by scrolling the mouse wheel
+ ( see 'Key combination' help for details).
+</p>
+<h5><a name="scale">Change Scale</a></h5>
+<p>
+	If the loaded data is a 1-D data.Changing scale or Data Representation will work as
+	followed:<b>right click</b> on the plot window.
+	A context menu pops-up  and select <b>Change Scale</b>. A dialog window titled<b>
+	select the scale of the graph</b> will pop-up then change the <b>x</b>, the <b>y</b>
+	and the <b>view </b> values as wish.
+	The 'view' option includes the axis scale short-cuts such as Linear, Guinier, Cross-sectional (XC)
+	Guinier, and Porod plot scale.  For a proper data set, these axis scales can be used to estimate 
+	Rg, Rod diameter, or Backgroud of neutron scattering data respectively (via 'Linear Fit'; see below).
+	<br>
+	For a 2D image, <b>Right click</b> on the image to pop-up the context
+	menu. Select <Toggle linear/Log scale> to switch from linear to log scale. The scale 
+	selected is printed on the statusbar.
+	
+</p>
+
+<h5><a name="linearfit">Linear Fit</a></h5>
+<p>
+	Linear fit is to perform a line model fitting keeping the scale of the plot. 
+	Highlight data to fit. 
+	From the context menu
+	select <b> Linear Fit</b>.A dialog window appears.
+	Change model initial parameters, data limits
+	and hit <b> fit</b> button. 
+	New parameters values are displayed and the line with the new 
+	parameters is added to the plot.
+	Especially for Guinier, XC Guinier, and Porod plot scale, this 'Linear Fit' will provides Rg, 
+	Rod diameter, and background, respectively.  The following figure shows an example for the Guinier scale. 
+	</p>
+	<br>
+	<img src="guinier_fit.png" /><br>
+	<br>
+
+<h5><a name="modify">Other Graph Modifications</a></h5>
+<p>
+	Some custom modifications of the symbols, text, axis, etc of the graph are provided
+</p>
+</body>
+</html>
Index: c/sas/guiframe/media/averaging_help.html
===================================================================
--- src/sas/guiframe/media/averaging_help.html	(revision 794922220f2fb3b23dd08c648aabf87b4850596c)
+++ 	(revision )
@@ -1,107 +1,0 @@
-<html>
-<body>
-
-<h4>2D Data Averaging</h4>
-<ul>
-<li><a href="#Description">Description</a></li>
-<li><a href="#How to use">How to Average? </a></li>
-<p> Available averagings: </p>
-<li><a href="#Circular Average">Perform Circular Average</a></li>
-<li><a href="#Masked Average">Masked Circular Average</a></li>
-<li><a href="#Sector"> Sector [Q view]</a></li>
-<li><a href="#Annulus"> Annulus [Phi view]</a></li>
-<li><a href="#Box sum"> Box sum</a></li>
-<li><a href="#Box averaging in Qx"> Box averaging in Qx</a></li>
-<li><a href="#Box averaging in Qy"> Box averaging in Qy</a></li>
-
-</ul>
-<h5><a name="Description">Description</a></h5>
-<p>
- This feature allows you to perform different types of averages on your data,
- and allows you to see what regions of the detector will contribute to 
- the average. 
- The region to be averaged will be drown and can be modified by dragging the lines around. 
-</p>
-
-
-<h5><a name="How to use">How to Average?</a></h5>
-<p>
-Right click on 2D data for the context menu to appear. Select one type of averages
-among <b>"sector [Q view]", "Annulus [Phi view]", "Box sum", "Box averaging in Qx ",
-"box averaging on Qy","Perform circular Average".</b>
-</p> 
-<p>
-A slicer will appear except for <b> "Perform circular Average"</b>
-that you can drag by clicking on a slicer 's marker. 
- When the marker is highlighted in red , it means that the slicer can change size.You can
- also move some of the slicer by simply drag its side when highlighted in red.
- the slicer size will be reset to its previous size if the user try to select a region greater 
- than the size of the data.
- 
-</p>
- <p>The user can also select a region to average when a slicer has been selected already by <b>right 
- clicking </b> on the context menu and selecting <b>Edit Slicer Parameters</b>. The dialog window 
- will appears and the user can enter values to selected a region or selected numbers of points to 
- plot <b>nbins</b>.
-</p>
- 
-<p>
- For <b>Box sum</b> , when the user selects this option, a new panel is created containing 
- the result of average of the sum of every pixels contains on  that data.The user can also enter 
- values to select a region.
-</p>
-
-<h5><a name="Circular Average">Perform Circular Average</a></h5>
-<p>
-It will perform and average in constant q-rings around the (x,y)
- pixel location of the beam center. 
-</p>
-
-
-<h5><a name="Masked Average">Masked Circular Average</a></h5>
-<p>
-This operation is same as 'Perform Circular Average' except that the masked region is excluded if masked.
-</p>
-
-<h5><a name="Sector">Sector [Q view]</a></h5>
-<p>
-It averages in constant q-arcs. The width of the sector
- is specified in degrees (+/- delta phi) each direction from the central angle (phi).
-</p>
-
-<h5><a name="Annulus"> Annulus [Phi view]</a></h5>
-<p>
-It performs an average between two q-values centered in (0,0),
- and averaged over a width of a specified number of pixels.
- The data is returned as a function of angle (phi) in degrees. 
- Moving one circle of this slicer
- to radius of zero corresponding to a circular averaging on radius qmax , 
- the outer circle.
-  The angle zero starts from the positive x-axis direction.
-</p>
-
-<h5><a name="Box sum"> Box sum</a></h5>
-<p>
-Perform the sum of counts in a 2D region of interest.When editing the slicer ,the user can 
-enter the length and the width the rectangle slicer and the coordinates of the center of this
-rectangle. 
-</p>
-<h5><a name="Box averaging in Qx"> Box averaging in Qx</a></h5>
-<p>
-Computes average I(Qx) for a region of interest. When editing the slicer ,the user can 
-control the length and the width the rectangle slicer. 
-The averaged output is calculated from the constant bins with rectangular shape.
-The resultant q values are nominal values, i.e., the central values of each bins on the x-axis.
-
-</p>
-<h5><a name="Box averaging in Qy"> Box averaging in Qy</a></h5>
-<p>
- Computes average I(Qy) for a region of interest.When editing the slicer ,the user can 
-control the length and the width the rectangle slicer. 
-The averaged output is calculated from the constant bins with rectangular shape.
-The resultant q values are nominal values, i.e., the central values of each bins on the y-axis.
-</p>
-
-</body>
-</html>
-
Index: src/sas/guiframe/media/averaging_help_v0.html
===================================================================
--- src/sas/guiframe/media/averaging_help_v0.html	(revision b532aa125f4128991fc9efb6c7c4d8727ef4ed6a)
+++ src/sas/guiframe/media/averaging_help_v0.html	(revision b532aa125f4128991fc9efb6c7c4d8727ef4ed6a)
@@ -0,0 +1,107 @@
+<html>
+<body>
+
+<h4>2D Data Averaging</h4>
+<ul>
+<li><a href="#Description">Description</a></li>
+<li><a href="#How to use">How to Average? </a></li>
+<p> Available averagings: </p>
+<li><a href="#Circular Average">Perform Circular Average</a></li>
+<li><a href="#Masked Average">Masked Circular Average</a></li>
+<li><a href="#Sector"> Sector [Q view]</a></li>
+<li><a href="#Annulus"> Annulus [Phi view]</a></li>
+<li><a href="#Box sum"> Box sum</a></li>
+<li><a href="#Box averaging in Qx"> Box averaging in Qx</a></li>
+<li><a href="#Box averaging in Qy"> Box averaging in Qy</a></li>
+
+</ul>
+<h5><a name="Description">Description</a></h5>
+<p>
+ This feature allows you to perform different types of averages on your data,
+ and allows you to see what regions of the detector will contribute to 
+ the average. 
+ The region to be averaged will be drown and can be modified by dragging the lines around. 
+</p>
+
+
+<h5><a name="How to use">How to Average?</a></h5>
+<p>
+Right click on 2D data for the context menu to appear. Select one type of averages
+among <b>"sector [Q view]", "Annulus [Phi view]", "Box sum", "Box averaging in Qx ",
+"box averaging on Qy","Perform circular Average".</b>
+</p> 
+<p>
+A slicer will appear except for <b> "Perform circular Average"</b>
+that you can drag by clicking on a slicer 's marker. 
+ When the marker is highlighted in red , it means that the slicer can change size.You can
+ also move some of the slicer by simply drag its side when highlighted in red.
+ the slicer size will be reset to its previous size if the user try to select a region greater 
+ than the size of the data.
+ 
+</p>
+ <p>The user can also select a region to average when a slicer has been selected already by <b>right 
+ clicking </b> on the context menu and selecting <b>Edit Slicer Parameters</b>. The dialog window 
+ will appears and the user can enter values to selected a region or selected numbers of points to 
+ plot <b>nbins</b>.
+</p>
+ 
+<p>
+ For <b>Box sum</b> , when the user selects this option, a new panel is created containing 
+ the result of average of the sum of every pixels contains on  that data.The user can also enter 
+ values to select a region.
+</p>
+
+<h5><a name="Circular Average">Perform Circular Average</a></h5>
+<p>
+It will perform and average in constant q-rings around the (x,y)
+ pixel location of the beam center. 
+</p>
+
+
+<h5><a name="Masked Average">Masked Circular Average</a></h5>
+<p>
+This operation is same as 'Perform Circular Average' except that the masked region is excluded if masked.
+</p>
+
+<h5><a name="Sector">Sector [Q view]</a></h5>
+<p>
+It averages in constant q-arcs. The width of the sector
+ is specified in degrees (+/- delta phi) each direction from the central angle (phi).
+</p>
+
+<h5><a name="Annulus"> Annulus [Phi view]</a></h5>
+<p>
+It performs an average between two q-values centered in (0,0),
+ and averaged over a width of a specified number of pixels.
+ The data is returned as a function of angle (phi) in degrees. 
+ Moving one circle of this slicer
+ to radius of zero corresponding to a circular averaging on radius qmax , 
+ the outer circle.
+  The angle zero starts from the positive x-axis direction.
+</p>
+
+<h5><a name="Box sum"> Box sum</a></h5>
+<p>
+Perform the sum of counts in a 2D region of interest.When editing the slicer ,the user can 
+enter the length and the width the rectangle slicer and the coordinates of the center of this
+rectangle. 
+</p>
+<h5><a name="Box averaging in Qx"> Box averaging in Qx</a></h5>
+<p>
+Computes average I(Qx) for a region of interest. When editing the slicer ,the user can 
+control the length and the width the rectangle slicer. 
+The averaged output is calculated from the constant bins with rectangular shape.
+The resultant q values are nominal values, i.e., the central values of each bins on the x-axis.
+
+</p>
+<h5><a name="Box averaging in Qy"> Box averaging in Qy</a></h5>
+<p>
+ Computes average I(Qy) for a region of interest.When editing the slicer ,the user can 
+control the length and the width the rectangle slicer. 
+The averaged output is calculated from the constant bins with rectangular shape.
+The resultant q values are nominal values, i.e., the central values of each bins on the y-axis.
+</p>
+
+</body>
+</html>
+
Index: c/sas/guiframe/media/change_scale_help.html
===================================================================
--- src/sas/guiframe/media/change_scale_help.html	(revision 794922220f2fb3b23dd08c648aabf87b4850596c)
+++ 	(revision )
@@ -1,16 +1,0 @@
-<html>
-<body>
-<h4>Change scale</h4>
-<p>
-	If the loaded data is a 1-D data.Changing scale or Data Representation will work as
-	followed:<b>right click</b> on the plot window.
-	A context menu pops-up  and select <b>Change Scale</b>. A dialog window titled<b>
-	select the scale of the graph</b> will pop-up then change the <b>x</b>, the <b>y</b>
-	and the <b>view </b> values as wish.
-	If the loaded data  is an image.<b>Right click</b> on the image to pop-up the context
-	menu. Select <Toggle linear/Log scale> to switch from linear to log scale. The scale 
-	selected is printed on the statusbar.
-	
-</p>
-</body>
-</html>
Index: src/sas/guiframe/media/change_scale_help_v0.html
===================================================================
--- src/sas/guiframe/media/change_scale_help_v0.html	(revision b532aa125f4128991fc9efb6c7c4d8727ef4ed6a)
+++ src/sas/guiframe/media/change_scale_help_v0.html	(revision b532aa125f4128991fc9efb6c7c4d8727ef4ed6a)
@@ -0,0 +1,16 @@
+<html>
+<body>
+<h4>Change scale</h4>
+<p>
+	If the loaded data is a 1-D data.Changing scale or Data Representation will work as
+	followed:<b>right click</b> on the plot window.
+	A context menu pops-up  and select <b>Change Scale</b>. A dialog window titled<b>
+	select the scale of the graph</b> will pop-up then change the <b>x</b>, the <b>y</b>
+	and the <b>view </b> values as wish.
+	If the loaded data  is an image.<b>Right click</b> on the image to pop-up the context
+	menu. Select <Toggle linear/Log scale> to switch from linear to log scale. The scale 
+	selected is printed on the statusbar.
+	
+</p>
+</body>
+</html>
Index: c/sas/guiframe/media/data_explorer_help.html
===================================================================
--- src/sas/guiframe/media/data_explorer_help.html	(revision 794922220f2fb3b23dd08c648aabf87b4850596c)
+++ 	(revision )
@@ -1,101 +1,0 @@
-<html>
-<body>
-
-<h4>Data Explorer Options</h4>
-<ul>
-<li><a href="#intro">Introduction</a></li>
-<li><a href="#load">Load data</a></li>
-<li><a href="#handy">Handy menu</a></li>
-<li><a href="#active">Activate data</a></li>
-<li><a href="#remove">Remove data</a></li>
-<li><a href="#append">Append plot to graph</a></li>
-<li><a href="#new">Create new plot</a></li>
-<li><a href="#freeze">Freeze theory</a></li>
-<li><a href="#send">Send data to applications</a></li>
-</ul>
-
-<h5><a name="intro"><font color="blue">Introduction</font></a></h5>
-<p> 
-<b>Data Explorer</b> is a panel that allows the user more interactions with
-data. Some functionalities provided by the Data Explorer are also available
-through the context menu of plot panels or other menus of the applications.Under 
-menu <b>View</b> of the menubar, Data explorer can be toggled between Show and Hide 
-by clicking the menu <b>Show/Hide Data Explorer</b>. 
-</p>
-<p><b><font size=2>IMPORTANT!</font></b> When Data explorer is hidden, all the data loaded will
-be sent directly to the current active application, if possible. When data Explorer is shown
-data go first to the Data Explorer for the user to handle them later.
-</p>
-
-<h5><a name="load"><font color="blue">Load data</font></a></h5>
-<p>
-To Load data, click the button <b>Load Data</b>, then select one or more (holding Ctrl key)
-files to load into the application. In
-the list, the <b>Data</b> will be displayed as the name
-of each selected file.
- Expending this data by clicking the <b>+</b> symbol
-will display available information about the data such as data title if exists.
-</p>
-
-
-<h5><a name="handy"><font color="blue">Handy menu</font></a></h5>
-<p>
-For a quick Data-info/Save/Plot/3d-plot(2d only)/Edit-mask(2d only), high-light the data/theory,
- right-click, and select a proper item from the context menu.
- <br>
-<img src="hand_menu.png"/>
-</p>
-
-<h5><a name="active"><font color="blue">Activate data</font></a></h5>
-<p>
-To interact with data, check a data label and click on a button. Checking Data 
-make them active  for the button operation. Unchecking Data labels will
-deactivate them.
-</p>
-<p>
-There is a combo box labeled <b> Selection Options</b> that allows to activate 
-or select multiple data simultaneously. 
-</p>
-
-<h5><a name="remove"><font color="blue">Remove data</font></a></h5>
-<p>
-Remove data button  remove all reference of this data into the application.
-</p>
-<p>
-<font size=2><b>WARNING!</b></font> Remove data will stop any jobs 
-currently using the selected data.
-</p>
-
-<h5><a name="append"><font color="blue">Append plot to graph</font></a></h5>
-<p>
-Click on the button <b>Append To</b> to append selected Data to a plot panel on
-focus. Next to this button is a combo box containing available panels names. 
-Selecting a name from this combo box will set  the corresponding lot panel on 
-focus. If not plot panel is available, the combo box and button will be disable.
-2D Data cannot be appended to any plot panels . This operation can only be 
-performed on 1D data and plot panels currently containing 1D data.
-</p>
-
-<h5><a name="new"><font color="blue">Create new plot</font></a></h5>
-<p>
-Click on <b>New Plot</b> button to create a new plot panel where selected data 
-will be plotted.
-</p>
-
-<h5><a name="freeze"><font color="blue">Freeze theory</font></a></h5>
-<p>
-<b>Freeze Theory</b> button generate Data from selected theory. This operation 
-can only be performed when theory labels are selected. 
-</p>
-
-<h5><a name="send"><font color="blue">Send to application</font></a></h5>
-<p>
-Click on the button <b>Send To</b> to send Data to the current active control page.
-One of the single/batch mode can be selected only for Fitting. The batch mode provides
-serial (batch) fitting with one model, i.e., fitting one data by another data.
-Note that only the Fitting allows more that one data to be sent.
-
-</p>
-
-</body>
-</html>
Index: src/sas/guiframe/media/data_explorer_help_v0.html
===================================================================
--- src/sas/guiframe/media/data_explorer_help_v0.html	(revision b532aa125f4128991fc9efb6c7c4d8727ef4ed6a)
+++ src/sas/guiframe/media/data_explorer_help_v0.html	(revision b532aa125f4128991fc9efb6c7c4d8727ef4ed6a)
@@ -0,0 +1,101 @@
+<html>
+<body>
+
+<h4>Data Explorer Options</h4>
+<ul>
+<li><a href="#intro">Introduction</a></li>
+<li><a href="#load">Load data</a></li>
+<li><a href="#handy">Handy menu</a></li>
+<li><a href="#active">Activate data</a></li>
+<li><a href="#remove">Remove data</a></li>
+<li><a href="#append">Append plot to graph</a></li>
+<li><a href="#new">Create new plot</a></li>
+<li><a href="#freeze">Freeze theory</a></li>
+<li><a href="#send">Send data to applications</a></li>
+</ul>
+
+<h5><a name="intro"><font color="blue">Introduction</font></a></h5>
+<p> 
+<b>Data Explorer</b> is a panel that allows the user more interactions with
+data. Some functionalities provided by the Data Explorer are also available
+through the context menu of plot panels or other menus of the applications.Under 
+menu <b>View</b> of the menubar, Data explorer can be toggled between Show and Hide 
+by clicking the menu <b>Show/Hide Data Explorer</b>. 
+</p>
+<p><b><font size=2>IMPORTANT!</font></b> When Data explorer is hidden, all the data loaded will
+be sent directly to the current active application, if possible. When data Explorer is shown
+data go first to the Data Explorer for the user to handle them later.
+</p>
+
+<h5><a name="load"><font color="blue">Load data</font></a></h5>
+<p>
+To Load data, click the button <b>Load Data</b>, then select one or more (holding Ctrl key)
+files to load into the application. In
+the list, the <b>Data</b> will be displayed as the name
+of each selected file.
+ Expending this data by clicking the <b>+</b> symbol
+will display available information about the data such as data title if exists.
+</p>
+
+
+<h5><a name="handy"><font color="blue">Handy menu</font></a></h5>
+<p>
+For a quick Data-info/Save/Plot/3d-plot(2d only)/Edit-mask(2d only), high-light the data/theory,
+ right-click, and select a proper item from the context menu.
+ <br>
+<img src="hand_menu.png"/>
+</p>
+
+<h5><a name="active"><font color="blue">Activate data</font></a></h5>
+<p>
+To interact with data, check a data label and click on a button. Checking Data 
+make them active  for the button operation. Unchecking Data labels will
+deactivate them.
+</p>
+<p>
+There is a combo box labeled <b> Selection Options</b> that allows to activate 
+or select multiple data simultaneously. 
+</p>
+
+<h5><a name="remove"><font color="blue">Remove data</font></a></h5>
+<p>
+Remove data button  remove all reference of this data into the application.
+</p>
+<p>
+<font size=2><b>WARNING!</b></font> Remove data will stop any jobs 
+currently using the selected data.
+</p>
+
+<h5><a name="append"><font color="blue">Append plot to graph</font></a></h5>
+<p>
+Click on the button <b>Append To</b> to append selected Data to a plot panel on
+focus. Next to this button is a combo box containing available panels names. 
+Selecting a name from this combo box will set  the corresponding lot panel on 
+focus. If not plot panel is available, the combo box and button will be disable.
+2D Data cannot be appended to any plot panels . This operation can only be 
+performed on 1D data and plot panels currently containing 1D data.
+</p>
+
+<h5><a name="new"><font color="blue">Create new plot</font></a></h5>
+<p>
+Click on <b>New Plot</b> button to create a new plot panel where selected data 
+will be plotted.
+</p>
+
+<h5><a name="freeze"><font color="blue">Freeze theory</font></a></h5>
+<p>
+<b>Freeze Theory</b> button generate Data from selected theory. This operation 
+can only be performed when theory labels are selected. 
+</p>
+
+<h5><a name="send"><font color="blue">Send to application</font></a></h5>
+<p>
+Click on the button <b>Send To</b> to send Data to the current active control page.
+One of the single/batch mode can be selected only for Fitting. The batch mode provides
+serial (batch) fitting with one model, i.e., fitting one data by another data.
+Note that only the Fitting allows more that one data to be sent.
+
+</p>
+
+</body>
+</html>
Index: c/sas/guiframe/media/key_help.html
===================================================================
--- src/sas/guiframe/media/key_help.html	(revision 794922220f2fb3b23dd08c648aabf87b4850596c)
+++ 	(revision )
@@ -1,40 +1,0 @@
-<html>
-<body>
-
-<h4>Key Combination</h4>
-<ul>
-<li><a href="#Float">Floating Panel</a></li>
-<li><a href="#GraphMenu">Graph Context Menu</a></li>
-<li><a href="#Zoom">Zoom In & Out</a></li>
-</ul>
-
-<h5><a name="Float">Floating Panel</a></h5>
-<p>
-<h6>For a graph panel to float on the top of the SV window:</h6></p>
-<p> Press the <b>Ctrl(Cmd on MAC) key</b> on dragging and placing a panel.
-Or if you want to make all plot panels float, select 'Float' from Graph/Preperences
-in the menu bar. Otherwise choose 'Dock'.</p>
-
-<p>
-<h5><a name="GraphMenu">Graph Context Menu</a></h5>
-<p>
-<h6>To get the graph context menu to print, copy, save data, (2D)average, etc.:</h6></p>
-<p> <b>Locate the mouse point on the plot to highlight and 
-<b>(Mouse) Right Click</b> to bring up the full menu.</p>
-
-<p>
-<h5><a name="Zoom">Zoom In and Out</a></h5>
-<p>
-<h6>To Zoom in or out the full plot:</h6></p>
-<p> <b>Locate the mouse point inside the graph which will be the center of the zooming,
-then <b>rotate MouseWheel</b>.</p>
-<p>
-<h6>To Zoom in or out the plot in x or y direction:</h6></p>
-<p> <b>Locate (and click) the mouse point near x (or y) axis just outside of the graph 
-and then <b>rotate MouseWheel</b>.</p>
-<p> Note that this works only on the 1D plots.</p>
-
-
-</body>
-</html>
-
Index: src/sas/guiframe/media/key_help_v0.html
===================================================================
--- src/sas/guiframe/media/key_help_v0.html	(revision b532aa125f4128991fc9efb6c7c4d8727ef4ed6a)
+++ src/sas/guiframe/media/key_help_v0.html	(revision b532aa125f4128991fc9efb6c7c4d8727ef4ed6a)
@@ -0,0 +1,40 @@
+<html>
+<body>
+
+<h4>Key Combination</h4>
+<ul>
+<li><a href="#Float">Floating Panel</a></li>
+<li><a href="#GraphMenu">Graph Context Menu</a></li>
+<li><a href="#Zoom">Zoom In & Out</a></li>
+</ul>
+
+<h5><a name="Float">Floating Panel</a></h5>
+<p>
+<h6>For a graph panel to float on the top of the SV window:</h6></p>
+<p> Press the <b>Ctrl(Cmd on MAC) key</b> on dragging and placing a panel.
+Or if you want to make all plot panels float, select 'Float' from Graph/Preperences
+in the menu bar. Otherwise choose 'Dock'.</p>
+
+<p>
+<h5><a name="GraphMenu">Graph Context Menu</a></h5>
+<p>
+<h6>To get the graph context menu to print, copy, save data, (2D)average, etc.:</h6></p>
+<p> <b>Locate the mouse point on the plot to highlight and 
+<b>(Mouse) Right Click</b> to bring up the full menu.</p>
+
+<p>
+<h5><a name="Zoom">Zoom In and Out</a></h5>
+<p>
+<h6>To Zoom in or out the full plot:</h6></p>
+<p> <b>Locate the mouse point inside the graph which will be the center of the zooming,
+then <b>rotate MouseWheel</b>.</p>
+<p>
+<h6>To Zoom in or out the plot in x or y direction:</h6></p>
+<p> <b>Locate (and click) the mouse point near x (or y) axis just outside of the graph 
+and then <b>rotate MouseWheel</b>.</p>
+<p> Note that this works only on the 1D plots.</p>
+
+
+</body>
+</html>
+
Index: c/sas/models/media/pd_help.html
===================================================================
--- src/sas/models/media/pd_help.html	(revision fd5ac0db8089df5bd882587f157d4bf317cfcf67)
+++ 	(revision )
@@ -1,182 +1,0 @@
-<head>
-<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
-<meta name=Generator content="Microsoft Word 12 (filtered)">
-
-</head>
-
-<body lang=EN-US>
-
-<div class=WordSection1>
-
-<p class=MsoNormal><h3><span style='font-family:"Times New Roman","serif"'>Polydisperisty
-and Angular Distributions</span></h3></p>
-
-<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>Calculates
-the form factor for a polydisperse and/or angular population of particles with
-uniform scattering length density. The resultant form factor is normalized by
-the average particle volume such that P(q) = scale*&lt;F*F&gt;/Vol + bkg, where
-F is the scattering amplitude and the &lt; &gt; denote an average over the size
-distribution.  Users should use PD (polydispersity: this definition is different from the typical definition in polymer science) 
-for a size distribution and Sigma for an
-angular distribution (see below).</span></p>
-<p> Note that this computation is very time intensive thus applying polydispersion/angular distrubtion for 
-more than one paramters or increasing Npts values might need extensive patience to complete the computation. Also
-note that even though it is time consuming, it is safer to have larger values of Npts and Nsigmas.</p>
-
-<p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span
-style='font-family:"Times New Roman","serif"'>The following five distribution
-functions are provided;</span></p>
-<ul>
-<li><a href="#Rectangular">Rectangular distribution</a></li>
-<li><a href="#Array">Array distribution</a></li>
-<li><a href="#Gaussian">Gaussian distribution</a></li>
-<li><a href="#Lognormal">Lognormal distribution</a></li>
-<li><a href="#Schulz">Schulz distribution</a></li>
-</ul>
-<p>&nbsp;</p>
-<p><a name="Rectangular"><h4>Rectangular distribution</a></h4></p>
-<p><img src="img/pd_image001.png"></p>
-<p>&nbsp;</p>
-<p>The x<sub>mean</sub> is the mean
-of the distribution, w is the half-width, and Norm is a normalization factor
-which is determined during the numerical calculation. Note that the Sigma and
-the half width <i>w</i> are different.</p>
-<p>The standard deviation is </p>
-<p><img src="img/pd_image002.png"></p>
-<p>&nbsp;</p>
-<p>The PD (polydispersity) is </p>
-<p><img src="img/pd_image003.png"></p>
-<p>&nbsp;</p>
-<p><img width=511 height=270
-id="Picture 1" src="img/pd_image004.jpg" alt=flat.gif></p>
-<p>&nbsp;</p>
-<p>&nbsp;</p>
-<p><a name="Array"><h4>Array distribution</h4></a></p>
-
-<p>This distribution is to be given
-by users as a txt file where the array should be defined by two columns in the
-order of x and f(x) values. The f(x) will be normalized by SasView during the
-computation.</p>
-
-<p>Example of an array in the file;</p>
-
-<p>30        0.1</p>
-
-<p>32        0.3</p>
-
-<p>35        0.4</p>
-
-<p>36        0.5</p>
-
-<p>37        0.6</p>
-
-<p>39        0.7</p>
-
-<p>41        0.9</p>
-
-<p'>&nbsp;</p>
-
-<p>We use only these array values in
-the computation, therefore the mean value given in the control panel, for
-example radius = 60, will be ignored.</p>
-<p>&nbsp;</p>
-
-
-<p><a name="Gaussian"><h4>Gaussian distribution</h4></a></p>
-<p>&nbsp;</p>
-
-<p><img src="img/pd_image005.png"></p>
-
-<p>&nbsp;</p>
-
-<p>The x<sub>mean</sub> is the mean
-of the distribution and Norm is a normalization factor which is determined
-during the numerical calculation.</p>
-
-<p>&nbsp;</p>
-
-<p>The PD (polydispersity) is </p>
-
-<p><img src="img/pd_image003.png"></p>
-
-<p>&nbsp;</p>
-
-<p><img width=518 height=275
-id="Picture 2" src="img/pd_image006.jpg" alt=gauss.gif></p>
-
-<p>&nbsp;</p>
-
-<p><a name="Lognormal"><h4>Lognormal distribution</h4></a></p>
-
-<p>&nbsp;</p>
-
-<p><img src="img/pd_image007.png"></p>
-
-<p>&nbsp;</p>
-
-<p>The &#956; = ln(x<sub>med</sub>),  x<sub>med</sub>
-is the median value of the distribution, and Norm is a normalization factor
-which will be determined during the numerical calculation. The median value is
-the value given in the size parameter in the control panel, for example,
-radius = 60.</p>
-
-<p >&nbsp;</p>
-
-<p>The PD (polydispersity) is given
-by &#963;,</p>
-
-<p><img src="img/pd_image008.png"></p>
-
-<p>&nbsp;</p>
-
-<p>For the angular distribution,</p>
-
-<p><img src="img/pd_image009.png"></p>
-
-<p>&nbsp;</p>
-
-<p>The mean value is given by x<sub>mean</sub>
-=exp(&#956;+p<sup>2</sup>/2).</p>
-
-<p>The peak value is given by x<sub>peak</sub>=exp(&#956;-p<sup>2</sup>).</span></p>
-
-<p>&nbsp;</p>
-
-<p><img width=450 height=239
-id="Picture 7" src="img/pd_image010.jpg" alt=lognormal.gif></p>
-
-<p>&nbsp;</p>
-
-<p>This distribution function
-spreads more and the peak shifts to the left as the p increases, requiring
-higher values of Nsigmas and Npts.</p>
-
-<p>&nbsp;</p>
-
-<p><a name="Schulz"><h4>Schulz distribution</h4></a></p>
-
-<p>&nbsp;</p>
-
-<p><img src="img/pd_image011.png"></p>
-
-<p>&nbsp;</p>
-
-<p>The x<sub>mean</sub> is the mean
-of the distribution and Norm is a normalization factor which is determined
-during the numerical calculation. </p>
-
-<p>The z = 1/p<sup>2</sup>  1.</p>
-<p>&nbsp;</p>
-
-<p>The PD (polydispersity) is </p>
-<p'><img src="img/pd_image012.png"></p>
-<p>Note that the higher PD (polydispersity)
- might need higher values of Npts and Nsigmas. For example, at PD = 0.7 and  radisus = 60 A, 
- Npts >= 160, and Nsigmas >= 15 at least.</p>
- <p/>
-<p><img width=438 height=232
-id="Picture 4" src="img/pd_image013.jpg" alt=schulz.gif></p>
-
-</div>
-<br>
-</body>
Index: src/sas/models/media/pd_help_v0.html
===================================================================
--- src/sas/models/media/pd_help_v0.html	(revision b532aa125f4128991fc9efb6c7c4d8727ef4ed6a)
+++ src/sas/models/media/pd_help_v0.html	(revision b532aa125f4128991fc9efb6c7c4d8727ef4ed6a)
@@ -0,0 +1,182 @@
+<head>
+<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
+<meta name=Generator content="Microsoft Word 12 (filtered)">
+
+</head>
+
+<body lang=EN-US>
+
+<div class=WordSection1>
+
+<p class=MsoNormal><h3><span style='font-family:"Times New Roman","serif"'>Polydisperisty
+and Angular Distributions</span></h3></p>
+
+<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>Calculates
+the form factor for a polydisperse and/or angular population of particles with
+uniform scattering length density. The resultant form factor is normalized by
+the average particle volume such that P(q) = scale*&lt;F*F&gt;/Vol + bkg, where
+F is the scattering amplitude and the &lt; &gt; denote an average over the size
+distribution.  Users should use PD (polydispersity: this definition is different from the typical definition in polymer science) 
+for a size distribution and Sigma for an
+angular distribution (see below).</span></p>
+<p> Note that this computation is very time intensive thus applying polydispersion/angular distrubtion for 
+more than one paramters or increasing Npts values might need extensive patience to complete the computation. Also
+note that even though it is time consuming, it is safer to have larger values of Npts and Nsigmas.</p>
+
+<p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span
+style='font-family:"Times New Roman","serif"'>The following five distribution
+functions are provided;</span></p>
+<ul>
+<li><a href="#Rectangular">Rectangular distribution</a></li>
+<li><a href="#Array">Array distribution</a></li>
+<li><a href="#Gaussian">Gaussian distribution</a></li>
+<li><a href="#Lognormal">Lognormal distribution</a></li>
+<li><a href="#Schulz">Schulz distribution</a></li>
+</ul>
+<p>&nbsp;</p>
+<p><a name="Rectangular"><h4>Rectangular distribution</a></h4></p>
+<p><img src="img/pd_image001.png"></p>
+<p>&nbsp;</p>
+<p>The x<sub>mean</sub> is the mean
+of the distribution, w is the half-width, and Norm is a normalization factor
+which is determined during the numerical calculation. Note that the Sigma and
+the half width <i>w</i> are different.</p>
+<p>The standard deviation is </p>
+<p><img src="img/pd_image002.png"></p>
+<p>&nbsp;</p>
+<p>The PD (polydispersity) is </p>
+<p><img src="img/pd_image003.png"></p>
+<p>&nbsp;</p>
+<p><img width=511 height=270
+id="Picture 1" src="img/pd_image004.jpg" alt=flat.gif></p>
+<p>&nbsp;</p>
+<p>&nbsp;</p>
+<p><a name="Array"><h4>Array distribution</h4></a></p>
+
+<p>This distribution is to be given
+by users as a txt file where the array should be defined by two columns in the
+order of x and f(x) values. The f(x) will be normalized by SasView during the
+computation.</p>
+
+<p>Example of an array in the file;</p>
+
+<p>30        0.1</p>
+
+<p>32        0.3</p>
+
+<p>35        0.4</p>
+
+<p>36        0.5</p>
+
+<p>37        0.6</p>
+
+<p>39        0.7</p>
+
+<p>41        0.9</p>
+
+<p'>&nbsp;</p>
+
+<p>We use only these array values in
+the computation, therefore the mean value given in the control panel, for
+example radius = 60, will be ignored.</p>
+<p>&nbsp;</p>
+
+
+<p><a name="Gaussian"><h4>Gaussian distribution</h4></a></p>
+<p>&nbsp;</p>
+
+<p><img src="img/pd_image005.png"></p>
+
+<p>&nbsp;</p>
+
+<p>The x<sub>mean</sub> is the mean
+of the distribution and Norm is a normalization factor which is determined
+during the numerical calculation.</p>
+
+<p>&nbsp;</p>
+
+<p>The PD (polydispersity) is </p>
+
+<p><img src="img/pd_image003.png"></p>
+
+<p>&nbsp;</p>
+
+<p><img width=518 height=275
+id="Picture 2" src="img/pd_image006.jpg" alt=gauss.gif></p>
+
+<p>&nbsp;</p>
+
+<p><a name="Lognormal"><h4>Lognormal distribution</h4></a></p>
+
+<p>&nbsp;</p>
+
+<p><img src="img/pd_image007.png"></p>
+
+<p>&nbsp;</p>
+
+<p>The &#956; = ln(x<sub>med</sub>),  x<sub>med</sub>
+is the median value of the distribution, and Norm is a normalization factor
+which will be determined during the numerical calculation. The median value is
+the value given in the size parameter in the control panel, for example,
+radius = 60.</p>
+
+<p >&nbsp;</p>
+
+<p>The PD (polydispersity) is given
+by &#963;,</p>
+
+<p><img src="img/pd_image008.png"></p>
+
+<p>&nbsp;</p>
+
+<p>For the angular distribution,</p>
+
+<p><img src="img/pd_image009.png"></p>
+
+<p>&nbsp;</p>
+
+<p>The mean value is given by x<sub>mean</sub>
+=exp(&#956;+p<sup>2</sup>/2).</p>
+
+<p>The peak value is given by x<sub>peak</sub>=exp(&#956;-p<sup>2</sup>).</span></p>
+
+<p>&nbsp;</p>
+
+<p><img width=450 height=239
+id="Picture 7" src="img/pd_image010.jpg" alt=lognormal.gif></p>
+
+<p>&nbsp;</p>
+
+<p>This distribution function
+spreads more and the peak shifts to the left as the p increases, requiring
+higher values of Nsigmas and Npts.</p>
+
+<p>&nbsp;</p>
+
+<p><a name="Schulz"><h4>Schulz distribution</h4></a></p>
+
+<p>&nbsp;</p>
+
+<p><img src="img/pd_image011.png"></p>
+
+<p>&nbsp;</p>
+
+<p>The x<sub>mean</sub> is the mean
+of the distribution and Norm is a normalization factor which is determined
+during the numerical calculation. </p>
+
+<p>The z = 1/p<sup>2</sup>  1.</p>
+<p>&nbsp;</p>
+
+<p>The PD (polydispersity) is </p>
+<p'><img src="img/pd_image012.png"></p>
+<p>Note that the higher PD (polydispersity)
+ might need higher values of Npts and Nsigmas. For example, at PD = 0.7 and  radisus = 60 A, 
+ Npts >= 160, and Nsigmas >= 15 at least.</p>
+ <p/>
+<p><img width=438 height=232
+id="Picture 4" src="img/pd_image013.jpg" alt=schulz.gif></p>
+
+</div>
+<br>
+</body>
Index: c/sas/models/media/polar_mag_help.html
===================================================================
--- src/sas/models/media/polar_mag_help.html	(revision 794922220f2fb3b23dd08c648aabf87b4850596c)
+++ 	(revision )
@@ -1,102 +1,0 @@
-<body>
-<br>
-<p><a name="magnetic"></a><strong><span style="font-size: 14pt;"> Polarization and Magnetic Scattering</span></strong></p>
-<br>
-<br>
-The magnetic scattering is implemented in five (2D) models, SphereModel, CoreShellModel, 
-CoreMultiShellModel, CylinderModel, and ParallelepipedModel. 
-In general, the scattering length density (SLD) in each regions where the SLD (=&#946;)
- is uniform, is a combination of the nuclear and magnetic SLDs 
-and depends on the spin states of the neutrons as follows:
-<br>
-<br>
-For magnetic scattering, only the magnetization component, <b>M</b><sub>perp</sub>, 
-perpendicular to the scattering vector <b>Q</b> contributes to the the magnetic 
-scattering length. (Figure below).
-<p>
-<img src="img/mag_vector.bmp"/>
-</p>
-<br>
-The magnetic scattering length density is then
-<p>
-<img src="img/dm_eq.gif"/>
-</p>
-<br>
-where &#947; = -1.913 the gyromagnetic ratio,  	&#956;<sub>B</sub> is the Bohr magneton, 
-r<sub>0</sub> is the classical radius of electron, 
-and <b>&#963;</b> is the Pauli spin.
-<br>
-For polarized neutron, the magnetic scattering is depending on the spin states.
-Let's consider that the incident neutrons are polarized parallel (+)/anti-parallel 
-(&#8211;) to the x' axis (See both Figures above).
-The possible out-coming states then are + and - states for both incident states.
-<br>
- - Non-spin-flips:  	(+ +) and  	(- -)
-<br>
- - Spin-flips:  	(+ -) and  	(- +)
-<br>
-<p>
-<img src="img/M_angles_pic.bmp"/>
-</p>
-<br>
-<br>
-Now, let's assume that the angles of the <b>Q</b> vector and the spin-axis (x') against x-axis 
-are &#966; and  &#952;<sub>up</sub>, respectively (See Figure above).
-Then, depending upon the polarization (spin) state of neutrons, the scattering length
-densities , including the nuclear scattering length density (&#946; <sub>N</sub>) are given as, for non-spin-flips,
-<p>
-<img src="img/sld1.gif"/>
-</p>
-<br>
-<br>
-for spin-flips,
-<p>
-<img src="img/sld2.gif"/>
-</p>
-<br>
-<br>
-where
-<p>
-<img src="img/mxp.gif"/>
-</p>
-<p>
-<img src="img/myp.gif"/>
-</p>
-<p>
-<img src="img/mzp.gif"/>
-</p>
-<p>
-<img src="img/mqx.gif"/>
-</p>
-<p>
-<img src="img/mqy.gif"/>
-</p>
-<br>
-<br>
-Here, the M<sub>0x</sub>, M<sub>0y</sub> and M<sub>0z</sub> are the x, y and z 
-components of the magnetization vector given in the xyz lab frame. 
-The angles of the magnetization, &#952;<sub>M</sub> and &#966;<sub>M</sub> as defined in the 
-Figure (above),
-<p>
-<img src="img/m0x_eq.gif"/>
-</p>
-<p>
-<img src="img/m0y_eq.gif"/>
-</p>
-<p>
-<img src="img/m0z_eq.gif"/>
-</p>
-<br>
-<p>
-The user input parameters are M0_sld = D<sub>M</sub>M<sub>0</sub>, Up_theta = &#952;<sub>up</sub>, 
-M_theta = &#952;<sub>M</sub>, and M_phi = &#966;<sub>M</sub>.
-The 'Up_frac_i' and 'Up_frac_f' are the ratio, (spin up) /(spin up + spin down) neutrons 
-before the sample and at the analyzer, respectively.
-</p>
-<br>
-*Note: The values of the 'Up_frac_i' and 'Up_frac_f' must be in the range between 0 and 1.
-</body>
-
-
-
-
Index: src/sas/models/media/polar_mag_help_v0.html
===================================================================
--- src/sas/models/media/polar_mag_help_v0.html	(revision b532aa125f4128991fc9efb6c7c4d8727ef4ed6a)
+++ src/sas/models/media/polar_mag_help_v0.html	(revision b532aa125f4128991fc9efb6c7c4d8727ef4ed6a)
@@ -0,0 +1,102 @@
+<body>
+<br>
+<p><a name="magnetic"></a><strong><span style="font-size: 14pt;"> Polarization and Magnetic Scattering</span></strong></p>
+<br>
+<br>
+The magnetic scattering is implemented in five (2D) models, SphereModel, CoreShellModel, 
+CoreMultiShellModel, CylinderModel, and ParallelepipedModel. 
+In general, the scattering length density (SLD) in each regions where the SLD (=&#946;)
+ is uniform, is a combination of the nuclear and magnetic SLDs 
+and depends on the spin states of the neutrons as follows:
+<br>
+<br>
+For magnetic scattering, only the magnetization component, <b>M</b><sub>perp</sub>, 
+perpendicular to the scattering vector <b>Q</b> contributes to the the magnetic 
+scattering length. (Figure below).
+<p>
+<img src="img/mag_vector.bmp"/>
+</p>
+<br>
+The magnetic scattering length density is then
+<p>
+<img src="img/dm_eq.gif"/>
+</p>
+<br>
+where &#947; = -1.913 the gyromagnetic ratio,  	&#956;<sub>B</sub> is the Bohr magneton, 
+r<sub>0</sub> is the classical radius of electron, 
+and <b>&#963;</b> is the Pauli spin.
+<br>
+For polarized neutron, the magnetic scattering is depending on the spin states.
+Let's consider that the incident neutrons are polarized parallel (+)/anti-parallel 
+(&#8211;) to the x' axis (See both Figures above).
+The possible out-coming states then are + and - states for both incident states.
+<br>
+ - Non-spin-flips:  	(+ +) and  	(- -)
+<br>
+ - Spin-flips:  	(+ -) and  	(- +)
+<br>
+<p>
+<img src="img/M_angles_pic.bmp"/>
+</p>
+<br>
+<br>
+Now, let's assume that the angles of the <b>Q</b> vector and the spin-axis (x') against x-axis 
+are &#966; and  &#952;<sub>up</sub>, respectively (See Figure above).
+Then, depending upon the polarization (spin) state of neutrons, the scattering length
+densities , including the nuclear scattering length density (&#946; <sub>N</sub>) are given as, for non-spin-flips,
+<p>
+<img src="img/sld1.gif"/>
+</p>
+<br>
+<br>
+for spin-flips,
+<p>
+<img src="img/sld2.gif"/>
+</p>
+<br>
+<br>
+where
+<p>
+<img src="img/mxp.gif"/>
+</p>
+<p>
+<img src="img/myp.gif"/>
+</p>
+<p>
+<img src="img/mzp.gif"/>
+</p>
+<p>
+<img src="img/mqx.gif"/>
+</p>
+<p>
+<img src="img/mqy.gif"/>
+</p>
+<br>
+<br>
+Here, the M<sub>0x</sub>, M<sub>0y</sub> and M<sub>0z</sub> are the x, y and z 
+components of the magnetization vector given in the xyz lab frame. 
+The angles of the magnetization, &#952;<sub>M</sub> and &#966;<sub>M</sub> as defined in the 
+Figure (above),
+<p>
+<img src="img/m0x_eq.gif"/>
+</p>
+<p>
+<img src="img/m0y_eq.gif"/>
+</p>
+<p>
+<img src="img/m0z_eq.gif"/>
+</p>
+<br>
+<p>
+The user input parameters are M0_sld = D<sub>M</sub>M<sub>0</sub>, Up_theta = &#952;<sub>up</sub>, 
+M_theta = &#952;<sub>M</sub>, and M_phi = &#966;<sub>M</sub>.
+The 'Up_frac_i' and 'Up_frac_f' are the ratio, (spin up) /(spin up + spin down) neutrons 
+before the sample and at the analyzer, respectively.
+</p>
+<br>
+*Note: The values of the 'Up_frac_i' and 'Up_frac_f' must be in the range between 0 and 1.
+</body>
+
+
+
+
Index: c/sas/models/media/smear_computation.html
===================================================================
--- src/sas/models/media/smear_computation.html	(revision fd5ac0db8089df5bd882587f157d4bf317cfcf67)
+++ 	(revision )
@@ -1,283 +1,0 @@
-
-<head>
-<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
-<meta name=Generator content="Microsoft Word 12 (filtered)">
-
-</head>
-
-<body lang=EN-US>
-
-<div class=WordSection1>
-
-<p class=MsoNormal><span style='font-size:16.0pt;line-height:115%;font-family:
-"Times New Roman","serif"'><h4>Smear Computation </h4></span></p>
-
-
-<ul style='margin-top:0in' type=disc>
- <li class=MsoNormal style='line-height:115%'><a href="#Slit Smear"><b>Slit Smear</b></a>
-     </li>
- <li class=MsoNormal style='line-height:115%'><a href="#Pinhole Smear"><b>Pinhole Smear</b></a>
-	</li>
- <li class=MsoNormal style='line-height:115%'><a href="#2D Smear"><b>2D Smear</b></a> 
-	</li>
-</ul>
-
-<p class=MsoListParagraph><span style='font-size:14.0pt;line-height:115%;
-font-family:"Times New Roman","serif"'><h5><a name="Slit Smear">Slit Smear</a></h5></span></p>
-
-<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>The sit
-smeared scattering intensity for SAS is defined by</span></p>
-
-<p class=MsoNormal><img 
-src="img/sm_image002.gif" align=left hspace=12></p>
-
-<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>           
-                                 ---- 1)</span><br clear=all>
-<span style='font-family:"Times New Roman","serif"'>where Norm = <span
-style='position:relative;top:15.0pt'><img 
-src="img/sm_image003.gif"></span>.</span></p>
-<br>
-<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>The
-functions <span style='position:relative;top:6.0pt'><img 
-src="img/sm_image004.gif"></span> and <span style='position:
-relative;top:6.0pt'><img 
-src="img/sm_image005.gif"></span> refer to the slit width weighting
-function and the slit height weighting determined at the q point, respectively.
- Here, we assumes that the weighting function is described by a rectangular
-function, i.e.,</span></p>
-
-<p class=MsoNormal><span style='position:relative;top:7.0pt'><img 
- src="img/sm_image006.gif">                                                                                                       
-  </span><span style='font-family:"Times New Roman","serif";position:relative;
-top:7.0pt'> ---- 2)</span></p>
-
-<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>and </span></p>
-
-<p class=MsoNormal><span style='position:relative;top:7.0pt'><img 
- src="img/sm_image007.gif"></span>,                                                                              
-                         <span style='font-family:"Times New Roman","serif"'> ---- 3)</span></p>
-
-<p>so that <img 
-src="img/sm_image008.gif"> <img src="img/sm_image009.gif">  for <img 
-src="img/sm_image010.gif"> and <i>u</i>. The <img src="img/sm_image011.gif"> 
- and <img src="img/sm_image012.gif">  stand for the slit height (FWHM/2) and the slit
-width (FWHM/2) in the q space. Now the integral of Eq. (1) is simplified to</span></p>
-
-<p class=MsoNormal><img 
-src="img/sm_image013.gif" align=left hspace=12><span
-style='font-family:"Times New Roman","serif"'>                                                  
-          ---- 4)</span></p>
-
-<p class=MsoNormal><span style='font-family:"Times New Roman","serif";
-position:relative;top:20.0pt'>&nbsp;</span></p>
-
-<p class=MsoListParagraphCxSpFirst style='margin-left:0in'><b><span
-style='font-family:"Times New Roman","serif"'>Numerical Implementation of Eq.
-(4) </span></b></p>
-
-<p class=MsoListParagraphCxSpMiddle style='margin-left:.25in;text-indent:-.25in'><span
-style='font-family:"Times New Roman","serif"'>1)<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-</span></span><span style='font-family:"Times New Roman","serif"'>For </span><span
-style='position:relative;top:6.0pt'><img 
-src="img/sm_image012.gif"></span>= 0  <span style='font-family:
-"Times New Roman","serif"'>and </span><span style='position:relative;
-top:6.0pt'><img src="img/sm_image011.gif"></span> =
-<span style='font-family:"Times New Roman","serif"'>constant:</span></p>
-
-<p>
-<img src="img/sm_image016.gif"></p>
-
-<p> For discrete q values, at the q
-values from the data points and at the q values extended up to  q<sub>N</sub>=
-q<sub>i</sub> +  <img src="img/sm_image011.gif"> , the smeared intensity can be
-calculated approximately, </p>
-
-<p><img 
-src="img/sm_image017.gif">.                                                           
- ---- 5)</p>
-
-<p class=MsoListParagraphCxSpMiddle style='margin-left:.25in'><span
-style='position:relative;top:7.0pt'><img 
-src="img/sm_image018.gif"></span> <span style='font-family:
-"Times New Roman","serif"'>= 0 for <i>I<sub>s</sub></i> in</span> <i><span
-style='font-family:"Times New Roman","serif"'>j &lt; i</span></i><span
-style='font-family:"Times New Roman","serif"'> or<i> j&gt;N-1</i>.</span></p>
-
-<p class=MsoListParagraphCxSpMiddle style='margin-left:.25in'><span
-style='font-family:"Times New Roman","serif"'>&nbsp;</span></p>
-
-<p class=MsoListParagraphCxSpMiddle style='margin-left:.25in;text-indent:-.25in'><span
-style='font-family:"Times New Roman","serif"'>2)<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-</span></span><span style='font-family:"Times New Roman","serif"'>For  </span><span
-style='position:relative;top:6.0pt'><img 
-src="img/sm_image012.gif"></span>= <span style='font-family:
-"Times New Roman","serif"'>constant </span> <span style='font-family:"Times New Roman","serif"'>and
-</span><span style='position:relative;top:6.0pt'><img 
-src="img/sm_image011.gif"></span> = <span style='font-family:
-"Times New Roman","serif"'>0:</span></p>
-
-<p class=MsoListParagraphCxSpMiddle style='margin-left:.25in'><span
-style='font-family:"Times New Roman","serif"'>Similarly to 1), we get</span></p>
-
-<p class=MsoListParagraphCxSpMiddle style='margin-left:.25in'>
-<img src="img/sm_image019.gif">                                                                                        
-<span style='font-family:"Times New Roman","serif"'> ---- 6)</span></p>
-
-<p class=MsoListParagraphCxSpMiddle style='margin-left:.25in'><span
-style='font-family:"Times New Roman","serif"'>for  q<sub>p</sub> = q<sub>i</sub>
-- </span><span style='position:relative;top:6.0pt'><img 
-src="img/sm_image012.gif"></span><span style='font-family:
-"Times New Roman","serif"'> and</span> <span style='font-family:"Times New Roman","serif"'>q<sub>N</sub>
-= q<sub>i</sub> + </span><span style='position:relative;top:6.0pt'><img
- src="img/sm_image012.gif"></span>.  <span
-style='position:relative;top:7.0pt'><img 
-src="img/sm_image018.gif"></span> <span style='font-family:
-"Times New Roman","serif"'>= 0 for <i>I<sub>s</sub></i> in</span> <i><span
-style='font-family:"Times New Roman","serif"'>j &lt; p</span></i><span
-style='font-family:"Times New Roman","serif"'> or<i> j&gt;N-1</i>.</span></p>
-
-<p class=MsoListParagraphCxSpMiddle style='margin-left:.25in'>&nbsp;</p>
-
-<p class=MsoListParagraphCxSpMiddle style='margin-left:.25in;text-indent:-.25in'><span
-style='font-family:"Times New Roman","serif"'>3)<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-</span></span><span style='font-family:"Times New Roman","serif"'>For  </span><span
-style='position:relative;top:6.0pt'><img 
-src="img/sm_image011.gif"></span>= <span style='font-family:
-"Times New Roman","serif"'>constant </span> <span style='font-family:"Times New Roman","serif"'>and
-</span><span style='position:relative;top:6.0pt'><img 
-src="img/sm_image011.gif"></span> = <span style='font-family:
-"Times New Roman","serif"'>constant:</span></p>
-
-<p class=MsoListParagraphCxSpMiddle style='margin-left:.25in'><span
-style='font-family:"Times New Roman","serif"'>This case, the best way is to
-perform the integration, Eq. (1), numerically for both slit height and width.
-However, the numerical integration is not correct enough unless given a large
-number of iteration, say at least 10000 by 10000 for each element of the matrix
-W, which will take minutes and minutes to finish the calculation for a set of
-typical SAS data. An alternative way which is correct for slit width &lt;&lt;
-slit hight, is used in the SASView:  This method is a mixed method that
-combines the method 1) with the numerical integration for the slit width.</span></p>
-
-<p class=MsoListParagraphCxSpMiddle style='margin-left:.25in'>
-</p>
-
-<p class=MsoListParagraphCxSpMiddle style='margin-left:.25in'>
-<img src="img/sm_image020.gif">    <span style='font-family:
-"Times New Roman","serif"'> ---- (7)</span></p>
-
-<p class=MsoListParagraphCxSpMiddle style='margin-left:.25in'><span
-style='font-family:"Times New Roman","serif"'>for  q<sub>p</sub> = q<sub>i</sub>
-- </span><span style='position:relative;top:6.0pt'><img 
-src="img/sm_image012.gif"></span><span style='font-family:
-"Times New Roman","serif"'> and</span> <span style='font-family:"Times New Roman","serif"'>q<sub>N</sub>
-= q<sub>i</sub> + </span><span style='position:relative;top:6.0pt'><img
- src="img/sm_image012.gif"></span>.  <span
-style='position:relative;top:7.0pt'><img 
-src="img/sm_image018.gif"></span> <span style='font-family:
-"Times New Roman","serif"'>= 0 for <i>I<sub>s</sub></i> in</span> <i><span
-style='font-family:"Times New Roman","serif"'>j &lt; p</span></i><span
-style='font-family:"Times New Roman","serif"'> or<i> j&gt;N-1</i>. </span></p>
-
-<p class=MsoListParagraphCxSpMiddle style='margin-left:.25in'><span
-style='font-family:"Times New Roman","serif"'>&nbsp;</span></p>
-
-<p class=MsoListParagraphCxSpMiddle style='margin-left:.25in'><span
-style='font-family:"Times New Roman","serif"'>&nbsp;</span></p>
-
-<p class=MsoListParagraphCxSpLast><span style='font-size:14.0pt;line-height:
-115%;font-family:"Times New Roman","serif"'><h5><a name="Pinhole Smear">Pinhole Smear</a></h5></span></p>
-
-<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>The
-pinhole smearing computation is done similar to the Case 2) above except that
-the weight function used was the Gaussian function, so that the Eq. 6) for this
-case becomes</span></p>
-
-<p class=MsoNormal><img src="img/sm_image021.gif"><span
-style='font-family:"Times New Roman","serif"'>   ---- (8)</span></p>
-
-<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>For all
-the cases above, the weighting matrix <i>W</i> is calculated when the smearing
-is called at the first time, and it includes the ~ 60 q values (finely binned
-evenly) below (&gt;0) and above the q range of data in order to cover all data
-points of the smearing computation for a given model and for a given slit size.
- The <i>Norm</i> factor is found numerically with the weighting matrix, and
-considered on <i>I<sub>s</sub></i> computation.</span></p>
-
-<p class=MsoListParagraphCxSpFirst style='margin-left:.25in'><span
-style='font-family:"Times New Roman","serif"'>&nbsp;</span></p>
-
-<p class=MsoListParagraphCxSpLast><span style='font-size:14.0pt;line-height:
-115%;font-family:"Times New Roman","serif"'><h5><a name="2D Smear">2D Smear</a></h5></span></p>
-
-<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>The
-2D smearing computation is done similar to the 1D pinhole smearing above
-except that the weight function used was the 2D elliptical Gaussian function</span></p>
-
-<p class=MsoNormal><img src="img/sm_image022.gif"><span
-style='font-family:"Times New Roman","serif"'>     ---- (9)</span></p>
-
-<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>In Eq
-(9), x<sub>0</sub> = qcos&#952;</span><span
-style='font-family:"Times New Roman","serif"'> and y<sub>0</sub> = qsin&#952;</span><span style='font-family:"Times New Roman","serif"'>
-, and the primed axes are in the coordinate rotated by an angle &#952;</span><span style='font-family:"Times New Roman","serif"'>
-around z-axis (below) so that x<sub>0</sub> =  x<sub>0</sub>cos&#952; + </span><span style='font-family:"Times New Roman","serif"'>y<sub>0</sub>
-sin&#952;  </span><span style='font-family:
-"Times New Roman","serif"'>and y<sub>0</sub> =  -x<sub>0</sub>sin&#952; + </span><span style='font-family:"Times New Roman","serif"'>y<sub>0</sub>
-cos&#952;.</span><span style='font-family:
-"Times New Roman","serif"'> Note that the rotation angle is zero for x-y
-symmetric elliptical Gaussian distribution</span>.
-<span style='font-family:"Times New Roman","serif"'>The  A is a
-normalization factor.</span></p>
-
-<p class=MsoNormal align=center style='text-align:center'><span
-style='font-family:"Times New Roman","serif"'><img 
-id="Object 1" src="img/sm_image023.gif"></span></p>
-
-<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>&nbsp;</span></p>
-
-<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>Now we
-consider a numerical integration where each bins in </span> &#920; </span><span style='font-family:"Times New Roman","serif"'>
-and R are <b>evenly </b>(this is to simplify the equation below) distributed by
-</span>&#916;&#920; </span><span style='font-family:
-"Times New Roman","serif"'>and </span> &#916;</span><span
-style='font-family:"Times New Roman","serif"'>R, respectively, and it is
-assumed that I(x, y) is constant within the bins which in turn becomes</span></p>
-
-<p class=MsoNormal><img src="img/sm_image024.gif"></p>
-
-<p class=MsoNormal>                                                                                                                                                                                <span
-style='font-family:"Times New Roman","serif"'> ---- (10)</span></p>
-
-<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>Since we
-have found the weighting factor on each bin points, it is convenient to
-transform x-y back to x-y coordinate (rotating it by -&#952;</span><span style='font-family:"Times New Roman","serif"'>
-around z axis).  Then, for the polar symmetric smear,</span></p>
-
-<p class=MsoNormal><img src="img/sm_image025.gif"><span
-style='position:relative;top:35.0pt'>      </span> ---- (11)</p>
-
-<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>where,</span></p>
-
-<p class=MsoNormal><img src="img/sm_image026.gif">,</p>
-
-<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>while
-for the x-y symmetric smear,</span></p>
-
-<p class=MsoNormal><img src="img/sm_image027.gif"><span
-style='font-family:"Times New Roman","serif"'>  ---- (12)</span></p>
-
-<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>where,</span></p>
-
-<p class=MsoNormal><img src="img/sm_image028.gif"></p>
-
-<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>Here, the
-current version of the SASVIEW uses the Eq. (11) for 2D smearing assuming that
-all the Gaussian weighting functions are aligned in the polar coordinate. </span></p>
-<p> In the control panel, the higher accuracy indicates more and finer binnng points 
-so that it costs more in time. </p>
-
-
-</div>
-
-</body>
-
Index: src/sas/models/media/smear_computation_v0.html
===================================================================
--- src/sas/models/media/smear_computation_v0.html	(revision b532aa125f4128991fc9efb6c7c4d8727ef4ed6a)
+++ src/sas/models/media/smear_computation_v0.html	(revision b532aa125f4128991fc9efb6c7c4d8727ef4ed6a)
@@ -0,0 +1,283 @@
+
+<head>
+<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
+<meta name=Generator content="Microsoft Word 12 (filtered)">
+
+</head>
+
+<body lang=EN-US>
+
+<div class=WordSection1>
+
+<p class=MsoNormal><span style='font-size:16.0pt;line-height:115%;font-family:
+"Times New Roman","serif"'><h4>Smear Computation </h4></span></p>
+
+
+<ul style='margin-top:0in' type=disc>
+ <li class=MsoNormal style='line-height:115%'><a href="#Slit Smear"><b>Slit Smear</b></a>
+     </li>
+ <li class=MsoNormal style='line-height:115%'><a href="#Pinhole Smear"><b>Pinhole Smear</b></a>
+	</li>
+ <li class=MsoNormal style='line-height:115%'><a href="#2D Smear"><b>2D Smear</b></a> 
+	</li>
+</ul>
+
+<p class=MsoListParagraph><span style='font-size:14.0pt;line-height:115%;
+font-family:"Times New Roman","serif"'><h5><a name="Slit Smear">Slit Smear</a></h5></span></p>
+
+<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>The sit
+smeared scattering intensity for SAS is defined by</span></p>
+
+<p class=MsoNormal><img 
+src="img/sm_image002.gif" align=left hspace=12></p>
+
+<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>           
+                                 ---- 1)</span><br clear=all>
+<span style='font-family:"Times New Roman","serif"'>where Norm = <span
+style='position:relative;top:15.0pt'><img 
+src="img/sm_image003.gif"></span>.</span></p>
+<br>
+<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>The
+functions <span style='position:relative;top:6.0pt'><img 
+src="img/sm_image004.gif"></span> and <span style='position:
+relative;top:6.0pt'><img 
+src="img/sm_image005.gif"></span> refer to the slit width weighting
+function and the slit height weighting determined at the q point, respectively.
+ Here, we assumes that the weighting function is described by a rectangular
+function, i.e.,</span></p>
+
+<p class=MsoNormal><span style='position:relative;top:7.0pt'><img 
+ src="img/sm_image006.gif">                                                                                                       
+  </span><span style='font-family:"Times New Roman","serif";position:relative;
+top:7.0pt'> ---- 2)</span></p>
+
+<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>and </span></p>
+
+<p class=MsoNormal><span style='position:relative;top:7.0pt'><img 
+ src="img/sm_image007.gif"></span>,                                                                              
+                         <span style='font-family:"Times New Roman","serif"'> ---- 3)</span></p>
+
+<p>so that <img 
+src="img/sm_image008.gif"> <img src="img/sm_image009.gif">  for <img 
+src="img/sm_image010.gif"> and <i>u</i>. The <img src="img/sm_image011.gif"> 
+ and <img src="img/sm_image012.gif">  stand for the slit height (FWHM/2) and the slit
+width (FWHM/2) in the q space. Now the integral of Eq. (1) is simplified to</span></p>
+
+<p class=MsoNormal><img 
+src="img/sm_image013.gif" align=left hspace=12><span
+style='font-family:"Times New Roman","serif"'>                                                  
+          ---- 4)</span></p>
+
+<p class=MsoNormal><span style='font-family:"Times New Roman","serif";
+position:relative;top:20.0pt'>&nbsp;</span></p>
+
+<p class=MsoListParagraphCxSpFirst style='margin-left:0in'><b><span
+style='font-family:"Times New Roman","serif"'>Numerical Implementation of Eq.
+(4) </span></b></p>
+
+<p class=MsoListParagraphCxSpMiddle style='margin-left:.25in;text-indent:-.25in'><span
+style='font-family:"Times New Roman","serif"'>1)<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+</span></span><span style='font-family:"Times New Roman","serif"'>For </span><span
+style='position:relative;top:6.0pt'><img 
+src="img/sm_image012.gif"></span>= 0  <span style='font-family:
+"Times New Roman","serif"'>and </span><span style='position:relative;
+top:6.0pt'><img src="img/sm_image011.gif"></span> =
+<span style='font-family:"Times New Roman","serif"'>constant:</span></p>
+
+<p>
+<img src="img/sm_image016.gif"></p>
+
+<p> For discrete q values, at the q
+values from the data points and at the q values extended up to  q<sub>N</sub>=
+q<sub>i</sub> +  <img src="img/sm_image011.gif"> , the smeared intensity can be
+calculated approximately, </p>
+
+<p><img 
+src="img/sm_image017.gif">.                                                           
+ ---- 5)</p>
+
+<p class=MsoListParagraphCxSpMiddle style='margin-left:.25in'><span
+style='position:relative;top:7.0pt'><img 
+src="img/sm_image018.gif"></span> <span style='font-family:
+"Times New Roman","serif"'>= 0 for <i>I<sub>s</sub></i> in</span> <i><span
+style='font-family:"Times New Roman","serif"'>j &lt; i</span></i><span
+style='font-family:"Times New Roman","serif"'> or<i> j&gt;N-1</i>.</span></p>
+
+<p class=MsoListParagraphCxSpMiddle style='margin-left:.25in'><span
+style='font-family:"Times New Roman","serif"'>&nbsp;</span></p>
+
+<p class=MsoListParagraphCxSpMiddle style='margin-left:.25in;text-indent:-.25in'><span
+style='font-family:"Times New Roman","serif"'>2)<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+</span></span><span style='font-family:"Times New Roman","serif"'>For  </span><span
+style='position:relative;top:6.0pt'><img 
+src="img/sm_image012.gif"></span>= <span style='font-family:
+"Times New Roman","serif"'>constant </span> <span style='font-family:"Times New Roman","serif"'>and
+</span><span style='position:relative;top:6.0pt'><img 
+src="img/sm_image011.gif"></span> = <span style='font-family:
+"Times New Roman","serif"'>0:</span></p>
+
+<p class=MsoListParagraphCxSpMiddle style='margin-left:.25in'><span
+style='font-family:"Times New Roman","serif"'>Similarly to 1), we get</span></p>
+
+<p class=MsoListParagraphCxSpMiddle style='margin-left:.25in'>
+<img src="img/sm_image019.gif">                                                                                        
+<span style='font-family:"Times New Roman","serif"'> ---- 6)</span></p>
+
+<p class=MsoListParagraphCxSpMiddle style='margin-left:.25in'><span
+style='font-family:"Times New Roman","serif"'>for  q<sub>p</sub> = q<sub>i</sub>
+- </span><span style='position:relative;top:6.0pt'><img 
+src="img/sm_image012.gif"></span><span style='font-family:
+"Times New Roman","serif"'> and</span> <span style='font-family:"Times New Roman","serif"'>q<sub>N</sub>
+= q<sub>i</sub> + </span><span style='position:relative;top:6.0pt'><img
+ src="img/sm_image012.gif"></span>.  <span
+style='position:relative;top:7.0pt'><img 
+src="img/sm_image018.gif"></span> <span style='font-family:
+"Times New Roman","serif"'>= 0 for <i>I<sub>s</sub></i> in</span> <i><span
+style='font-family:"Times New Roman","serif"'>j &lt; p</span></i><span
+style='font-family:"Times New Roman","serif"'> or<i> j&gt;N-1</i>.</span></p>
+
+<p class=MsoListParagraphCxSpMiddle style='margin-left:.25in'>&nbsp;</p>
+
+<p class=MsoListParagraphCxSpMiddle style='margin-left:.25in;text-indent:-.25in'><span
+style='font-family:"Times New Roman","serif"'>3)<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+</span></span><span style='font-family:"Times New Roman","serif"'>For  </span><span
+style='position:relative;top:6.0pt'><img 
+src="img/sm_image011.gif"></span>= <span style='font-family:
+"Times New Roman","serif"'>constant </span> <span style='font-family:"Times New Roman","serif"'>and
+</span><span style='position:relative;top:6.0pt'><img 
+src="img/sm_image011.gif"></span> = <span style='font-family:
+"Times New Roman","serif"'>constant:</span></p>
+
+<p class=MsoListParagraphCxSpMiddle style='margin-left:.25in'><span
+style='font-family:"Times New Roman","serif"'>This case, the best way is to
+perform the integration, Eq. (1), numerically for both slit height and width.
+However, the numerical integration is not correct enough unless given a large
+number of iteration, say at least 10000 by 10000 for each element of the matrix
+W, which will take minutes and minutes to finish the calculation for a set of
+typical SAS data. An alternative way which is correct for slit width &lt;&lt;
+slit hight, is used in the SASView:  This method is a mixed method that
+combines the method 1) with the numerical integration for the slit width.</span></p>
+
+<p class=MsoListParagraphCxSpMiddle style='margin-left:.25in'>
+</p>
+
+<p class=MsoListParagraphCxSpMiddle style='margin-left:.25in'>
+<img src="img/sm_image020.gif">    <span style='font-family:
+"Times New Roman","serif"'> ---- (7)</span></p>
+
+<p class=MsoListParagraphCxSpMiddle style='margin-left:.25in'><span
+style='font-family:"Times New Roman","serif"'>for  q<sub>p</sub> = q<sub>i</sub>
+- </span><span style='position:relative;top:6.0pt'><img 
+src="img/sm_image012.gif"></span><span style='font-family:
+"Times New Roman","serif"'> and</span> <span style='font-family:"Times New Roman","serif"'>q<sub>N</sub>
+= q<sub>i</sub> + </span><span style='position:relative;top:6.0pt'><img
+ src="img/sm_image012.gif"></span>.  <span
+style='position:relative;top:7.0pt'><img 
+src="img/sm_image018.gif"></span> <span style='font-family:
+"Times New Roman","serif"'>= 0 for <i>I<sub>s</sub></i> in</span> <i><span
+style='font-family:"Times New Roman","serif"'>j &lt; p</span></i><span
+style='font-family:"Times New Roman","serif"'> or<i> j&gt;N-1</i>. </span></p>
+
+<p class=MsoListParagraphCxSpMiddle style='margin-left:.25in'><span
+style='font-family:"Times New Roman","serif"'>&nbsp;</span></p>
+
+<p class=MsoListParagraphCxSpMiddle style='margin-left:.25in'><span
+style='font-family:"Times New Roman","serif"'>&nbsp;</span></p>
+
+<p class=MsoListParagraphCxSpLast><span style='font-size:14.0pt;line-height:
+115%;font-family:"Times New Roman","serif"'><h5><a name="Pinhole Smear">Pinhole Smear</a></h5></span></p>
+
+<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>The
+pinhole smearing computation is done similar to the Case 2) above except that
+the weight function used was the Gaussian function, so that the Eq. 6) for this
+case becomes</span></p>
+
+<p class=MsoNormal><img src="img/sm_image021.gif"><span
+style='font-family:"Times New Roman","serif"'>   ---- (8)</span></p>
+
+<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>For all
+the cases above, the weighting matrix <i>W</i> is calculated when the smearing
+is called at the first time, and it includes the ~ 60 q values (finely binned
+evenly) below (&gt;0) and above the q range of data in order to cover all data
+points of the smearing computation for a given model and for a given slit size.
+ The <i>Norm</i> factor is found numerically with the weighting matrix, and
+considered on <i>I<sub>s</sub></i> computation.</span></p>
+
+<p class=MsoListParagraphCxSpFirst style='margin-left:.25in'><span
+style='font-family:"Times New Roman","serif"'>&nbsp;</span></p>
+
+<p class=MsoListParagraphCxSpLast><span style='font-size:14.0pt;line-height:
+115%;font-family:"Times New Roman","serif"'><h5><a name="2D Smear">2D Smear</a></h5></span></p>
+
+<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>The
+2D smearing computation is done similar to the 1D pinhole smearing above
+except that the weight function used was the 2D elliptical Gaussian function</span></p>
+
+<p class=MsoNormal><img src="img/sm_image022.gif"><span
+style='font-family:"Times New Roman","serif"'>     ---- (9)</span></p>
+
+<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>In Eq
+(9), x<sub>0</sub> = qcos&#952;</span><span
+style='font-family:"Times New Roman","serif"'> and y<sub>0</sub> = qsin&#952;</span><span style='font-family:"Times New Roman","serif"'>
+, and the primed axes are in the coordinate rotated by an angle &#952;</span><span style='font-family:"Times New Roman","serif"'>
+around z-axis (below) so that x<sub>0</sub> =  x<sub>0</sub>cos&#952; + </span><span style='font-family:"Times New Roman","serif"'>y<sub>0</sub>
+sin&#952;  </span><span style='font-family:
+"Times New Roman","serif"'>and y<sub>0</sub> =  -x<sub>0</sub>sin&#952; + </span><span style='font-family:"Times New Roman","serif"'>y<sub>0</sub>
+cos&#952;.</span><span style='font-family:
+"Times New Roman","serif"'> Note that the rotation angle is zero for x-y
+symmetric elliptical Gaussian distribution</span>.
+<span style='font-family:"Times New Roman","serif"'>The  A is a
+normalization factor.</span></p>
+
+<p class=MsoNormal align=center style='text-align:center'><span
+style='font-family:"Times New Roman","serif"'><img 
+id="Object 1" src="img/sm_image023.gif"></span></p>
+
+<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>&nbsp;</span></p>
+
+<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>Now we
+consider a numerical integration where each bins in </span> &#920; </span><span style='font-family:"Times New Roman","serif"'>
+and R are <b>evenly </b>(this is to simplify the equation below) distributed by
+</span>&#916;&#920; </span><span style='font-family:
+"Times New Roman","serif"'>and </span> &#916;</span><span
+style='font-family:"Times New Roman","serif"'>R, respectively, and it is
+assumed that I(x, y) is constant within the bins which in turn becomes</span></p>
+
+<p class=MsoNormal><img src="img/sm_image024.gif"></p>
+
+<p class=MsoNormal>                                                                                                                                                                                <span
+style='font-family:"Times New Roman","serif"'> ---- (10)</span></p>
+
+<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>Since we
+have found the weighting factor on each bin points, it is convenient to
+transform x-y back to x-y coordinate (rotating it by -&#952;</span><span style='font-family:"Times New Roman","serif"'>
+around z axis).  Then, for the polar symmetric smear,</span></p>
+
+<p class=MsoNormal><img src="img/sm_image025.gif"><span
+style='position:relative;top:35.0pt'>      </span> ---- (11)</p>
+
+<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>where,</span></p>
+
+<p class=MsoNormal><img src="img/sm_image026.gif">,</p>
+
+<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>while
+for the x-y symmetric smear,</span></p>
+
+<p class=MsoNormal><img src="img/sm_image027.gif"><span
+style='font-family:"Times New Roman","serif"'>  ---- (12)</span></p>
+
+<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>where,</span></p>
+
+<p class=MsoNormal><img src="img/sm_image028.gif"></p>
+
+<p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>Here, the
+current version of the SASVIEW uses the Eq. (11) for 2D smearing assuming that
+all the Gaussian weighting functions are aligned in the polar coordinate. </span></p>
+<p> In the control panel, the higher accuracy indicates more and finer binnng points 
+so that it costs more in time. </p>
+
+
+</div>
+
+</body>
+
