igor-public/doc/html/pearl-scienta-preprocess_8ipf.html
matthias muntwiler cf1399e59c update pshell explorer and data import, misc. improvements
FEATURES

- pshell: convert scienta data to true counts
- pre-process: add gauss2_reduction data reduction function
- anglescan: add set_contrast and normalize_strip_phi functions
- explorer: show info about multi-region scans
- documentation: add detailed instructions for angle-scan processing

BUGFIXES

- explorer: fix attributes notebook
- pshell: fix progress bar
- elog: increase the number of accepted attachments
2017-09-21 12:36:30 +02:00

825 lines
41 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>PEARL Procedures: pearl-scienta-preprocess.ipf File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">PEARL Procedures
&#160;<span id="projectnumber">rev-distro-1.4.0-1-g0a436db-dirty</span>
</div>
<div id="projectbrief">Igor procedures for the analysis of PEARL data</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="modules.html"><span>Packages</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>Globals</span></a></li>
</ul>
</div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('pearl-scienta-preprocess_8ipf.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#namespaces">Namespaces</a> &#124;
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">pearl-scienta-preprocess.ipf File Reference<div class="ingroups"><a class="el" href="group___arpes_package.html">ARPES package</a></div></div> </div>
</div><!--header-->
<div class="contents">
<p>preprocessing functions for Scienta detector images.
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;mm-fitfuncs&quot;</code><br />
</div>
<p><a href="pearl-scienta-preprocess_8ipf_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespace_pearl_scienta_preprocess"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_pearl_scienta_preprocess.html">PearlScientaPreprocess</a></td></tr>
<tr class="memdesc:namespace_pearl_scienta_preprocess"><td class="mdescLeft">&#160;</td><td class="mdescRight">preprocessing functions for Scienta detector images. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a145c7275b8809c5e789b932ef46e4811"><td class="memItemLeft" align="right" valign="top">variable&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pearl-scienta-preprocess_8ipf.html#a145c7275b8809c5e789b932ef46e4811">prompt_int_linbg_reduction</a> (string *param)</td></tr>
<tr class="separator:a145c7275b8809c5e789b932ef46e4811"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae6877c51ad15c2ba8a69c65356cb34b8"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pearl-scienta-preprocess_8ipf.html#ae6877c51ad15c2ba8a69c65356cb34b8">capture_int_linbg_cursors</a> ()</td></tr>
<tr class="separator:ae6877c51ad15c2ba8a69c65356cb34b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a95fbd22f52f61d2bff0625b7b8e159d1"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pearl-scienta-preprocess_8ipf.html#a95fbd22f52f61d2bff0625b7b8e159d1">csr_int_linbg_reduction</a> (string win)</td></tr>
<tr class="separator:a95fbd22f52f61d2bff0625b7b8e159d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01fdc27931518dc988500b3cba409e57"><td class="memItemLeft" align="right" valign="top">variable&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pearl-scienta-preprocess_8ipf.html#a01fdc27931518dc988500b3cba409e57">test_int_linbg</a> (wave image)</td></tr>
<tr class="separator:a01fdc27931518dc988500b3cba409e57"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e5ae4a68d9caa4710db477d71e2b9e0"><td class="memItemLeft" align="right" valign="top">threadsafe variable&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pearl-scienta-preprocess_8ipf.html#a4e5ae4a68d9caa4710db477d71e2b9e0">int_linbg_reduction</a> (wave source, wave dest1, wave dest2, string *param)</td></tr>
<tr class="separator:a4e5ae4a68d9caa4710db477d71e2b9e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad9c09259aaaf32246fe9391dfb3e2c93"><td class="memItemLeft" align="right" valign="top">variable&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pearl-scienta-preprocess_8ipf.html#ad9c09259aaaf32246fe9391dfb3e2c93">test_shockley_anglefit</a> (wave image, variable branch)</td></tr>
<tr class="separator:ad9c09259aaaf32246fe9391dfb3e2c93"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3e0823a6ec7d85e08276cd32d0ffd21"><td class="memItemLeft" align="right" valign="top">variable&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pearl-scienta-preprocess_8ipf.html#ab3e0823a6ec7d85e08276cd32d0ffd21">prompt_Shockley_anglefit</a> (string *param)</td></tr>
<tr class="separator:ab3e0823a6ec7d85e08276cd32d0ffd21"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc472d56286afd855109d561fbf633bd"><td class="memItemLeft" align="right" valign="top">threadsafe variable&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pearl-scienta-preprocess_8ipf.html#adc472d56286afd855109d561fbf633bd">Shockley_anglefit</a> (wave source, wave dest1, wave dest2, string *param)</td></tr>
<tr class="separator:adc472d56286afd855109d561fbf633bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6d06ea5a11ba79160efeea7fe673af8c"><td class="memItemLeft" align="right" valign="top">variable&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pearl-scienta-preprocess_8ipf.html#a6d06ea5a11ba79160efeea7fe673af8c">prompt_int_quadbg_reduction</a> (string *param)</td></tr>
<tr class="separator:a6d06ea5a11ba79160efeea7fe673af8c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b1f473b96119afa602759a51e0c5b4c"><td class="memItemLeft" align="right" valign="top">variable&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pearl-scienta-preprocess_8ipf.html#a1b1f473b96119afa602759a51e0c5b4c">test_int_quadbg</a> (wave image)</td></tr>
<tr class="separator:a1b1f473b96119afa602759a51e0c5b4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa5ac074dd3e405d13d3c4401d96e4743"><td class="memItemLeft" align="right" valign="top">threadsafe variable&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pearl-scienta-preprocess_8ipf.html#aa5ac074dd3e405d13d3c4401d96e4743">int_quadbg_reduction</a> (wave source, wave dest1, wave dest2, string *param)</td></tr>
<tr class="separator:aa5ac074dd3e405d13d3c4401d96e4743"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a09ae6058d39d76a59c862e945d512fa8"><td class="memItemLeft" align="right" valign="top">variable&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pearl-scienta-preprocess_8ipf.html#a09ae6058d39d76a59c862e945d512fa8">scienta_norm</a> (wave w, variable x)</td></tr>
<tr class="separator:a09ae6058d39d76a59c862e945d512fa8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8536a1da8aa85e34370f384ad2ee0d5e"><td class="memItemLeft" align="right" valign="top">wave&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pearl-scienta-preprocess_8ipf.html#a8536a1da8aa85e34370f384ad2ee0d5e">fit_scienta_ang_transm</a> (wave data, wave params)</td></tr>
<tr class="separator:a8536a1da8aa85e34370f384ad2ee0d5e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26f46acd339fb483ce9792e06170c189"><td class="memItemLeft" align="right" valign="top">threadsafe variable&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pearl-scienta-preprocess_8ipf.html#a26f46acd339fb483ce9792e06170c189">scienta_ang_transm</a> (wave w, variable x)</td></tr>
<tr class="separator:a26f46acd339fb483ce9792e06170c189"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f850a816852a1d0e22deaf894765c2c"><td class="memItemLeft" align="right" valign="top">wave&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pearl-scienta-preprocess_8ipf.html#a4f850a816852a1d0e22deaf894765c2c">fit_scienta_poly_bg</a> (wave data, wave params, variable bgterms)</td></tr>
<tr class="separator:a4f850a816852a1d0e22deaf894765c2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26e51aa77d5f416d613f1c5df82b6f5c"><td class="memItemLeft" align="right" valign="top">variable&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pearl-scienta-preprocess_8ipf.html#a26e51aa77d5f416d613f1c5df82b6f5c">scienta_poly_bg</a> (wave w, variable e, variable a)</td></tr>
<tr class="separator:a26e51aa77d5f416d613f1c5df82b6f5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e7de6441bbcba217760448babaca827"><td class="memItemLeft" align="right" valign="top">variable&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pearl-scienta-preprocess_8ipf.html#a6e7de6441bbcba217760448babaca827">prompt_redim_linbg_reduction</a> (string *param)</td></tr>
<tr class="memdesc:a6e7de6441bbcba217760448babaca827"><td class="mdescLeft">&#160;</td><td class="mdescRight">parameter dialog for the <a class="el" href="pearl-scienta-preprocess_8ipf.html#a9b3321b9ed876ff50e260fa311ebf4be" title="linear background reduction function for incorrectly dimensioned scienta image ">redim_linbg_reduction()</a> function <a href="#a6e7de6441bbcba217760448babaca827">More...</a><br /></td></tr>
<tr class="separator:a6e7de6441bbcba217760448babaca827"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b3321b9ed876ff50e260fa311ebf4be"><td class="memItemLeft" align="right" valign="top">threadsafe variable&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pearl-scienta-preprocess_8ipf.html#a9b3321b9ed876ff50e260fa311ebf4be">redim_linbg_reduction</a> (wave source, wave dest1, wave dest2, string *param)</td></tr>
<tr class="memdesc:a9b3321b9ed876ff50e260fa311ebf4be"><td class="mdescLeft">&#160;</td><td class="mdescRight">linear background reduction function for incorrectly dimensioned scienta image <a href="#a9b3321b9ed876ff50e260fa311ebf4be">More...</a><br /></td></tr>
<tr class="separator:a9b3321b9ed876ff50e260fa311ebf4be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57308c99b9e4dd48d139f6613a8a9f40"><td class="memItemLeft" align="right" valign="top">variable&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pearl-scienta-preprocess_8ipf.html#a57308c99b9e4dd48d139f6613a8a9f40">test_gauss2_reduction</a> (wave image)</td></tr>
<tr class="memdesc:a57308c99b9e4dd48d139f6613a8a9f40"><td class="mdescLeft">&#160;</td><td class="mdescRight">apply the gauss2_reduction function to a single image <a href="#a57308c99b9e4dd48d139f6613a8a9f40">More...</a><br /></td></tr>
<tr class="separator:a57308c99b9e4dd48d139f6613a8a9f40"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a79eb4d0d4902a549bf92553840b884e8"><td class="memItemLeft" align="right" valign="top">variable&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pearl-scienta-preprocess_8ipf.html#a79eb4d0d4902a549bf92553840b884e8">prompt_gauss2_reduction</a> (string *param)</td></tr>
<tr class="memdesc:a79eb4d0d4902a549bf92553840b884e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">prompt for the gauss2_reduction parameters <a href="#a79eb4d0d4902a549bf92553840b884e8">More...</a><br /></td></tr>
<tr class="separator:a79eb4d0d4902a549bf92553840b884e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9ea97d870f53a70583c53328599ff14"><td class="memItemLeft" align="right" valign="top">threadsafe variable&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pearl-scienta-preprocess_8ipf.html#af9ea97d870f53a70583c53328599ff14">gauss2_reduction</a> (wave source, wave dest1, wave dest2, string *param)</td></tr>
<tr class="memdesc:af9ea97d870f53a70583c53328599ff14"><td class="mdescLeft">&#160;</td><td class="mdescRight">fit horizontal cuts of an image with two gaussian peaks on a linear background <a href="#af9ea97d870f53a70583c53328599ff14">More...</a><br /></td></tr>
<tr class="separator:af9ea97d870f53a70583c53328599ff14"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>preprocessing functions for Scienta detector images. </p>
<p>this procedure contains functions for data reduction and instrument-specific normalization.</p>
<dl class="section author"><dt>Author</dt><dd>matthias muntwiler, <a href="#" onclick="location.href='mai'+'lto:'+'mat'+'th'+'ias'+'.m'+'unt'+'wi'+'ler'+'@p'+'si.'+'ch'; return false;">matth<span style="display: none;">.nosp@m.</span>ias.<span style="display: none;">.nosp@m.</span>muntw<span style="display: none;">.nosp@m.</span>iler<span style="display: none;">.nosp@m.</span>@psi.<span style="display: none;">.nosp@m.</span>ch</a></dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>2013-17 Paul Scherrer Institut <br />
Licensed under the Apache License, Version 2.0 (the "License"); <br />
you may not use this file except in compliance with the License. <br />
You may obtain a copy of the License at <a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a> </dd></dl>
<p>Definition in file <a class="el" href="pearl-scienta-preprocess_8ipf_source.html">pearl-scienta-preprocess.ipf</a>.</p>
</div><h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="ae6877c51ad15c2ba8a69c65356cb34b8"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">string capture_int_linbg_cursors </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="pearl-scienta-preprocess_8ipf_source.html#l00066">66</a> of file <a class="el" href="pearl-scienta-preprocess_8ipf_source.html">pearl-scienta-preprocess.ipf</a>.</p>
</div>
</div>
<a class="anchor" id="a95fbd22f52f61d2bff0625b7b8e159d1"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">string csr_int_linbg_reduction </td>
<td>(</td>
<td class="paramtype">string&#160;</td>
<td class="paramname"><em>win</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="pearl-scienta-preprocess_8ipf_source.html#l00076">76</a> of file <a class="el" href="pearl-scienta-preprocess_8ipf_source.html">pearl-scienta-preprocess.ipf</a>.</p>
</div>
</div>
<a class="anchor" id="a8536a1da8aa85e34370f384ad2ee0d5e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">wave fit_scienta_ang_transm </td>
<td>(</td>
<td class="paramtype">wave&#160;</td>
<td class="paramname"><em>data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">wave&#160;</td>
<td class="paramname"><em>params</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="pearl-scienta-preprocess_8ipf_source.html#l00551">551</a> of file <a class="el" href="pearl-scienta-preprocess_8ipf_source.html">pearl-scienta-preprocess.ipf</a>.</p>
</div>
</div>
<a class="anchor" id="a4f850a816852a1d0e22deaf894765c2c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">wave fit_scienta_poly_bg </td>
<td>(</td>
<td class="paramtype">wave&#160;</td>
<td class="paramname"><em>data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">wave&#160;</td>
<td class="paramname"><em>params</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">variable&#160;</td>
<td class="paramname"><em>bgterms</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="pearl-scienta-preprocess_8ipf_source.html#l00610">610</a> of file <a class="el" href="pearl-scienta-preprocess_8ipf_source.html">pearl-scienta-preprocess.ipf</a>.</p>
</div>
</div>
<a class="anchor" id="af9ea97d870f53a70583c53328599ff14"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">threadsafe variable gauss2_reduction </td>
<td>(</td>
<td class="paramtype">wave&#160;</td>
<td class="paramname"><em>source</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">wave&#160;</td>
<td class="paramname"><em>dest1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">wave&#160;</td>
<td class="paramname"><em>dest2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">string *&#160;</td>
<td class="paramname"><em>param</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>fit horizontal cuts of an image with two gaussian peaks on a linear background </p>
<p>the function fits each horizontal profile (EDC) with two gaussian peaks on a linear background. the position and width of the peaks is kept fixed according to input parameters. the peak amplitude is constrained to positive value.</p>
<p>the width parameter is defined as in Igor's gauss curve fit function (standard deviation divided by the square root of two). the return value in dest1 is the integrated peak either of peak 1 or peak 2. dest2 returns the corresponding error estimate.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">source</td><td>source wave. two-dimensional distribution of counts. for correct weighting and error estimation it is important that the source wave contains actual counts (Poisson statistics). </td></tr>
<tr><td class="paramname">dest1</td><td>(out) peak area </td></tr>
<tr><td class="paramname">dest2</td><td>(out) error estimate of peak area </td></tr>
<tr><td class="paramname">param</td><td>(in, out) semicolon-separated key=value list of processing parameters. this is a pass-by-reference argument. the following parameters are required. position, width and limit parameters are on the x (energy) scale. <ul>
<li>rngl low limit of fit interval </li>
<li>rngh high limit of fit interval </li>
<li>pos1 position of peak 1 </li>
<li>wid1 width of peak 1 </li>
<li>pos2 position of peak 2 </li>
<li>wid2 width of peak 2 </li>
<li>return select result to return, either "int1" or "int2". </li>
<li>ybox box size of averaging in y direction, must be 1 or 3. other values lead to corrupt data.</li>
</ul>
</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>zero if successful, non-zero if an error occurs. </dd></dl>
<p>Definition at line <a class="el" href="pearl-scienta-preprocess_8ipf_source.html#l00903">903</a> of file <a class="el" href="pearl-scienta-preprocess_8ipf_source.html">pearl-scienta-preprocess.ipf</a>.</p>
</div>
</div>
<a class="anchor" id="a4e5ae4a68d9caa4710db477d71e2b9e0"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">threadsafe variable int_linbg_reduction </td>
<td>(</td>
<td class="paramtype">wave&#160;</td>
<td class="paramname"><em>source</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">wave&#160;</td>
<td class="paramname"><em>dest1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">wave&#160;</td>
<td class="paramname"><em>dest2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">string *&#160;</td>
<td class="paramname"><em>param</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="pearl-scienta-preprocess_8ipf_source.html#l00197">197</a> of file <a class="el" href="pearl-scienta-preprocess_8ipf_source.html">pearl-scienta-preprocess.ipf</a>.</p>
</div>
</div>
<a class="anchor" id="aa5ac074dd3e405d13d3c4401d96e4743"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">threadsafe variable int_quadbg_reduction </td>
<td>(</td>
<td class="paramtype">wave&#160;</td>
<td class="paramname"><em>source</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">wave&#160;</td>
<td class="paramname"><em>dest1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">wave&#160;</td>
<td class="paramname"><em>dest2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">string *&#160;</td>
<td class="paramname"><em>param</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="pearl-scienta-preprocess_8ipf_source.html#l00457">457</a> of file <a class="el" href="pearl-scienta-preprocess_8ipf_source.html">pearl-scienta-preprocess.ipf</a>.</p>
</div>
</div>
<a class="anchor" id="a79eb4d0d4902a549bf92553840b884e8"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">variable prompt_gauss2_reduction </td>
<td>(</td>
<td class="paramtype">string *&#160;</td>
<td class="paramname"><em>param</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>prompt for the gauss2_reduction parameters </p>
<p>useful for testing or manual processing. to debug, (temporarily) remove the threadsafe attribute from the gauss2_reduction function. </p>
<p>Definition at line <a class="el" href="pearl-scienta-preprocess_8ipf_source.html#l00834">834</a> of file <a class="el" href="pearl-scienta-preprocess_8ipf_source.html">pearl-scienta-preprocess.ipf</a>.</p>
</div>
</div>
<a class="anchor" id="a145c7275b8809c5e789b932ef46e4811"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">variable prompt_int_linbg_reduction </td>
<td>(</td>
<td class="paramtype">string *&#160;</td>
<td class="paramname"><em>param</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="pearl-scienta-preprocess_8ipf_source.html#l00036">36</a> of file <a class="el" href="pearl-scienta-preprocess_8ipf_source.html">pearl-scienta-preprocess.ipf</a>.</p>
</div>
</div>
<a class="anchor" id="a6d06ea5a11ba79160efeea7fe673af8c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">variable prompt_int_quadbg_reduction </td>
<td>(</td>
<td class="paramtype">string *&#160;</td>
<td class="paramname"><em>param</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="pearl-scienta-preprocess_8ipf_source.html#l00410">410</a> of file <a class="el" href="pearl-scienta-preprocess_8ipf_source.html">pearl-scienta-preprocess.ipf</a>.</p>
</div>
</div>
<a class="anchor" id="a6e7de6441bbcba217760448babaca827"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">variable prompt_redim_linbg_reduction </td>
<td>(</td>
<td class="paramtype">string *&#160;</td>
<td class="paramname"><em>param</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>parameter dialog for the <a class="el" href="pearl-scienta-preprocess_8ipf.html#a9b3321b9ed876ff50e260fa311ebf4be" title="linear background reduction function for incorrectly dimensioned scienta image ">redim_linbg_reduction()</a> function </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">param</td><td>parameter string in a key1=value1;key2=value2;... list. the parameter string is passed by reference. see <a class="el" href="pearl-scienta-preprocess_8ipf.html#a9b3321b9ed876ff50e260fa311ebf4be" title="linear background reduction function for incorrectly dimensioned scienta image ">redim_linbg_reduction()</a> for a description of parameters.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>zero if the user clicked OK, non-zero if the user clicked Cancel. </dd></dl>
<p>Definition at line <a class="el" href="pearl-scienta-preprocess_8ipf_source.html#l00716">716</a> of file <a class="el" href="pearl-scienta-preprocess_8ipf_source.html">pearl-scienta-preprocess.ipf</a>.</p>
</div>
</div>
<a class="anchor" id="ab3e0823a6ec7d85e08276cd32d0ffd21"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">variable prompt_Shockley_anglefit </td>
<td>(</td>
<td class="paramtype">string *&#160;</td>
<td class="paramname"><em>param</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="pearl-scienta-preprocess_8ipf_source.html#l00322">322</a> of file <a class="el" href="pearl-scienta-preprocess_8ipf_source.html">pearl-scienta-preprocess.ipf</a>.</p>
</div>
</div>
<a class="anchor" id="a9b3321b9ed876ff50e260fa311ebf4be"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">threadsafe variable redim_linbg_reduction </td>
<td>(</td>
<td class="paramtype">wave&#160;</td>
<td class="paramname"><em>source</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">wave&#160;</td>
<td class="paramname"><em>dest1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">wave&#160;</td>
<td class="paramname"><em>dest2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">string *&#160;</td>
<td class="paramname"><em>param</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>linear background reduction function for incorrectly dimensioned scienta image </p>
<p>if the energy step size does not divide the energy range to an integer number, the scienta image is exported with the wrong array size. this can be fixed by redimensioning the array.</p>
<p>the current implementation works in the case where dimension 0 needs to be incremented. the function may be generalized to dimension 1 and/or decrementing by additional parameters. it is not known yet whether a generalization is needed or whether it can cover all cases.</p>
<p>background subtraction and peak integration is the same as by the <a class="el" href="pearl-scienta-preprocess_8ipf.html#a4e5ae4a68d9caa4710db477d71e2b9e0">int_linbg_reduction()</a> function.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">source</td><td>source wave Scienta detector image, energy axis along X, angle axis along Y</td></tr>
<tr><td class="paramname">dest1</td><td>destination wave 1</td></tr>
<tr><td class="paramname">dest2</td><td>destination wave 2 each wave is a one-dimensional intensity distribution the function may redimension these waves to one of the image dimensions (it must be clear to the user which dimension this is). the meaning of dest1 and dest2 is up to the particular function, e.g. dest1 could hold the mean value and dest2 the one-sigma error, or dest1 could hold the X-profile, and dest2 the Y-profile.</td></tr>
<tr><td class="paramname">param</td><td>parameter string in a key1=value1;key2=value2;... list. the parameter string is passed by reference.</td></tr>
</table>
</dd>
</dl>
<p>all region parameters are relative to the image size (0...1). </p><ul>
<li>Lcrop size of the lower cropping region </li>
<li>Hcrop size of the upper cropping region </li>
<li>Lsize size of the lower background integration region </li>
<li>Hsize size of the upper background integration region </li>
<li>Cpos center position of the of the peak integration region </li>
<li>Csize size of the peak integration region</li>
</ul>
<p>typical values (peak centered on detector, FWHM ~ 20 % of image) Lcrop=0.11;Hcrop=0.11;Lsize=0.2;Hsize=0.2;Cpos=0.5;Csize=0.2</p>
<dl class="section return"><dt>Returns</dt><dd>zero if successful, non-zero if an error occurs. </dd></dl>
<p>Definition at line <a class="el" href="pearl-scienta-preprocess_8ipf_source.html#l00787">787</a> of file <a class="el" href="pearl-scienta-preprocess_8ipf_source.html">pearl-scienta-preprocess.ipf</a>.</p>
</div>
</div>
<a class="anchor" id="a26f46acd339fb483ce9792e06170c189"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">threadsafe variable scienta_ang_transm </td>
<td>(</td>
<td class="paramtype">wave&#160;</td>
<td class="paramname"><em>w</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">variable&#160;</td>
<td class="paramname"><em>x</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="pearl-scienta-preprocess_8ipf_source.html#l00578">578</a> of file <a class="el" href="pearl-scienta-preprocess_8ipf_source.html">pearl-scienta-preprocess.ipf</a>.</p>
</div>
</div>
<a class="anchor" id="a09ae6058d39d76a59c862e945d512fa8"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">variable scienta_norm </td>
<td>(</td>
<td class="paramtype">wave&#160;</td>
<td class="paramname"><em>w</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">variable&#160;</td>
<td class="paramname"><em>x</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="pearl-scienta-preprocess_8ipf_source.html#l00544">544</a> of file <a class="el" href="pearl-scienta-preprocess_8ipf_source.html">pearl-scienta-preprocess.ipf</a>.</p>
</div>
</div>
<a class="anchor" id="a26e51aa77d5f416d613f1c5df82b6f5c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">variable scienta_poly_bg </td>
<td>(</td>
<td class="paramtype">wave&#160;</td>
<td class="paramname"><em>w</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">variable&#160;</td>
<td class="paramname"><em>e</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">variable&#160;</td>
<td class="paramname"><em>a</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="pearl-scienta-preprocess_8ipf_source.html#l00654">654</a> of file <a class="el" href="pearl-scienta-preprocess_8ipf_source.html">pearl-scienta-preprocess.ipf</a>.</p>
</div>
</div>
<a class="anchor" id="adc472d56286afd855109d561fbf633bd"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">threadsafe variable Shockley_anglefit </td>
<td>(</td>
<td class="paramtype">wave&#160;</td>
<td class="paramname"><em>source</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">wave&#160;</td>
<td class="paramname"><em>dest1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">wave&#160;</td>
<td class="paramname"><em>dest2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">string *&#160;</td>
<td class="paramname"><em>param</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="pearl-scienta-preprocess_8ipf_source.html#l00337">337</a> of file <a class="el" href="pearl-scienta-preprocess_8ipf_source.html">pearl-scienta-preprocess.ipf</a>.</p>
</div>
</div>
<a class="anchor" id="a57308c99b9e4dd48d139f6613a8a9f40"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">variable test_gauss2_reduction </td>
<td>(</td>
<td class="paramtype">wave&#160;</td>
<td class="paramname"><em>image</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>apply the gauss2_reduction function to a single image </p>
<p>useful for testing or manual processing. to debug, (temporarily) remove the threadsafe attribute from the gauss2_reduction function. </p>
<p>Definition at line <a class="el" href="pearl-scienta-preprocess_8ipf_source.html#l00810">810</a> of file <a class="el" href="pearl-scienta-preprocess_8ipf_source.html">pearl-scienta-preprocess.ipf</a>.</p>
</div>
</div>
<a class="anchor" id="a01fdc27931518dc988500b3cba409e57"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">variable test_int_linbg </td>
<td>(</td>
<td class="paramtype">wave&#160;</td>
<td class="paramname"><em>image</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="pearl-scienta-preprocess_8ipf_source.html#l00180">180</a> of file <a class="el" href="pearl-scienta-preprocess_8ipf_source.html">pearl-scienta-preprocess.ipf</a>.</p>
</div>
</div>
<a class="anchor" id="a1b1f473b96119afa602759a51e0c5b4c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">variable test_int_quadbg </td>
<td>(</td>
<td class="paramtype">wave&#160;</td>
<td class="paramname"><em>image</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="pearl-scienta-preprocess_8ipf_source.html#l00440">440</a> of file <a class="el" href="pearl-scienta-preprocess_8ipf_source.html">pearl-scienta-preprocess.ipf</a>.</p>
</div>
</div>
<a class="anchor" id="ad9c09259aaaf32246fe9391dfb3e2c93"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">variable test_shockley_anglefit </td>
<td>(</td>
<td class="paramtype">wave&#160;</td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">variable&#160;</td>
<td class="paramname"><em>branch</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="pearl-scienta-preprocess_8ipf_source.html#l00297">297</a> of file <a class="el" href="pearl-scienta-preprocess_8ipf_source.html">pearl-scienta-preprocess.ipf</a>.</p>
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_fe5dc42579d4b99403482a3a637d9f7d.html">pearl</a></li><li class="navelem"><a class="el" href="pearl-scienta-preprocess_8ipf.html">pearl-scienta-preprocess.ipf</a></li>
<li class="footer">Generated on Thu Sep 21 2017 12:35:04 for PEARL Procedures by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
</ul>
</div>
</body>
</html>