264 lines
17 KiB
HTML
264 lines
17 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/html; charset=utf-8" />
|
|
|
|
<title>mupp - μSR Parameter Plotter — musrfit 1.4.0 documentation</title>
|
|
|
|
<link rel="stylesheet" href="_static/nature.css" type="text/css" />
|
|
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
|
|
|
|
<script type="text/javascript">
|
|
var DOCUMENTATION_OPTIONS = {
|
|
URL_ROOT: './',
|
|
VERSION: '1.4.0',
|
|
COLLAPSE_INDEX: false,
|
|
FILE_SUFFIX: '.html',
|
|
HAS_SOURCE: true
|
|
};
|
|
</script>
|
|
<script type="text/javascript" src="_static/jquery.js"></script>
|
|
<script type="text/javascript" src="_static/underscore.js"></script>
|
|
<script type="text/javascript" src="_static/doctools.js"></script>
|
|
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
|
|
<link rel="top" title="musrfit 1.4.0 documentation" href="index.html" />
|
|
<link rel="next" title="msr2data - A Program for Automatically Processing Multiple musrfit msr Files" href="msr2data.html" />
|
|
<link rel="prev" title="musredit: the GUI Based Interface to musrfit" href="musredit.html" />
|
|
</head>
|
|
<body>
|
|
<div class="related">
|
|
<h3>Navigation</h3>
|
|
<ul>
|
|
<li class="right" style="margin-right: 10px">
|
|
<a href="genindex.html" title="General Index"
|
|
accesskey="I">index</a></li>
|
|
<li class="right" >
|
|
<a href="msr2data.html" title="msr2data - A Program for Automatically Processing Multiple musrfit msr Files"
|
|
accesskey="N">next</a> |</li>
|
|
<li class="right" >
|
|
<a href="musredit.html" title="musredit: the GUI Based Interface to musrfit"
|
|
accesskey="P">previous</a> |</li>
|
|
<li><a href="index.html">musrfit 1.4.0 documentation</a> »</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="document">
|
|
<div class="documentwrapper">
|
|
<div class="bodywrapper">
|
|
<div class="body">
|
|
|
|
<div class="section" id="mupp-mgrsr-parameter-plotter">
|
|
<span id="mupp"></span><span id="index-0"></span><h1>mupp - μSR Parameter Plotter<a class="headerlink" href="#mupp-mgrsr-parameter-plotter" title="Permalink to this headline">¶</a></h1>
|
|
<p><tt class="docutils literal"><span class="pre">mupp</span></tt> is a little helper program which allows to quickly plot a collection of msr-file parameters,
|
|
as for instance generated by <a class="reference internal" href="msr2data.html#msr2data"><em>msr2data</em></a>. It can handle <tt class="docutils literal"><span class="pre">db</span></tt>- and <tt class="docutils literal"><span class="pre">dat</span></tt>-files.
|
|
Also a collection of <tt class="docutils literal"><span class="pre">msr</span></tt>-files can be invoked. <tt class="docutils literal"><span class="pre">mupp</span></tt> is heavily inspired by μView (see
|
|
<a class="reference external" href="http://musr.org/muview/">here</a>).</p>
|
|
<p><tt class="docutils literal"><span class="pre">mupp</span></tt> can be operated from within as graphical user interface or via a command line scripting interface.
|
|
The <tt class="docutils literal"><span class="pre">mupp</span></tt> GUI can be invoked either directly from the command line or from within <a class="reference internal" href="musredit.html#musredit-sec"><em>musredit</em></a>.</p>
|
|
<div class="section" id="the-graphical-user-interface">
|
|
<span id="index-1"></span><h2>The Graphical User Interface<a class="headerlink" href="#the-graphical-user-interface" title="Permalink to this headline">¶</a></h2>
|
|
<p>A typical setting could look like this</p>
|
|
<img src="_images/mupp-gui-0.svg" /><ol class="arabic">
|
|
<li><p class="first">shows the list of loaded collections. A collection is defined as <tt class="docutils literal"><span class="pre">db</span></tt>- or <tt class="docutils literal"><span class="pre">dat</span></tt>-file (typically the
|
|
output from <a class="reference internal" href="msr2data.html#msr2data"><em>msr2data</em></a>). If you call the open-dialog and select a collection of
|
|
<tt class="docutils literal"><span class="pre">msr</span></tt>-files, <tt class="docutils literal"><span class="pre">mupp</span></tt> will call <tt class="docutils literal"><span class="pre">msr2data</span></tt> and tries to generate a collection on-the-fly.</p>
|
|
</li>
|
|
<li><p class="first">in this list, the data-tags of the currently selected collection is presented. The data-tags can be
|
|
directly dragged over to the <tt class="docutils literal"><span class="pre">x</span></tt>- and <tt class="docutils literal"><span class="pre">y</span></tt>-axis list. Another way is to select the data-tag
|
|
wished and click <tt class="docutils literal"><span class="pre">add</span> <span class="pre">X</span></tt> to add the selected data-tag to the <tt class="docutils literal"><span class="pre">x</span></tt>-axis list. Analogous it is done
|
|
for the <tt class="docutils literal"><span class="pre">y</span></tt>-axis.</p>
|
|
</li>
|
|
<li><p class="first"><tt class="docutils literal"><span class="pre">x</span></tt>-axis list. The labels are followed by <tt class="docutils literal"><span class="pre">(-X-)</span></tt> where the number <tt class="docutils literal"><span class="pre">X</span></tt> corresponds to the
|
|
selection it corresponds to. The numbering of the collection is as given in the collection list.</p>
|
|
</li>
|
|
<li><p class="first"><tt class="docutils literal"><span class="pre">y</span></tt>-axis list. The labels are followed by <tt class="docutils literal"><span class="pre">(-X-)</span></tt> where the number <tt class="docutils literal"><span class="pre">X</span></tt> corresponds to the
|
|
selection it corresponds to. The numbering of the collection is as given in the collection list.</p>
|
|
</li>
|
|
<li><p class="first"><tt class="docutils literal"><span class="pre">add</span> <span class="pre">X</span></tt> allows to add the currently selected data-tag to the <tt class="docutils literal"><span class="pre">x</span></tt>-axis list.</p>
|
|
</li>
|
|
<li><p class="first"><tt class="docutils literal"><span class="pre">add</span> <span class="pre">Y</span></tt> allows to add the currently selected data-tag to the <tt class="docutils literal"><span class="pre">y</span></tt>-axis list.</p>
|
|
</li>
|
|
<li><p class="first"><tt class="docutils literal"><span class="pre">remove</span> <span class="pre">X</span></tt> will remove the selected <tt class="docutils literal"><span class="pre">x</span></tt>-axis tag.</p>
|
|
</li>
|
|
<li><p class="first"><tt class="docutils literal"><span class="pre">remove</span> <span class="pre">Y</span></tt> will remove the selected <tt class="docutils literal"><span class="pre">y</span></tt>-axis tag.</p>
|
|
</li>
|
|
<li><p class="first">Often one would like to compare trends of different settings. In the above example each collections
|
|
holds an energy scans for a given temperature. Each collection is measured at a different temperature.
|
|
Now, instead of adding <tt class="docutils literal"><span class="pre">x</span></tt>- and <tt class="docutils literal"><span class="pre">y</span></tt>-axis tags for each collection, you can do the following:
|
|
you add <tt class="docutils literal"><span class="pre">x</span></tt>- and <tt class="docutils literal"><span class="pre">y</span></tt>-axis data-tags for the first collection. Afterwards you select all the other
|
|
collections of interest and click on <tt class="docutils literal"><span class="pre">Add</span> <span class="pre">Ditto</span></tt>. <tt class="docutils literal"><span class="pre">mupp</span></tt> will then add the corresponding
|
|
<tt class="docutils literal"><span class="pre">x</span></tt>- and <tt class="docutils literal"><span class="pre">y</span></tt>-axis data-tags accordingly. This is less error prone and quicker!</p>
|
|
</li>
|
|
<li><p class="first">Clicking the <tt class="docutils literal"><span class="pre">Plot</span></tt> button will invoke <tt class="docutils literal"><span class="pre">mupp_plot</span></tt> (a <tt class="docutils literal"><span class="pre">ROOT</span></tt> based application) which will
|
|
present the data, as shown here</p>
|
|
<a class="reference internal image-reference" href="_images/mupp-plot-0.svg"><img height="600px" src="_images/mupp-plot-0.svg" /></a>
|
|
</li>
|
|
<li><p class="first"><tt class="docutils literal"><span class="pre">Remove</span> <span class="pre">Collection</span></tt>: will remove the selected collection</p>
|
|
</li>
|
|
<li><p class="first"><tt class="docutils literal"><span class="pre">Refresh</span> <span class="pre">Collection</span></tt>: will reload the collection (<tt class="docutils literal"><span class="pre">db</span></tt>- or <tt class="docutils literal"><span class="pre">dat</span></tt>-file). This is often useful
|
|
during beamtime where the collection is growing run-by-run.</p>
|
|
</li>
|
|
<li><p class="first">This is the script command line. Currently it allows to perform the tasks without mouse gambling.
|
|
In the future much more commands are planed. See the <tt class="docutils literal"><span class="pre">Help</span> <span class="pre">/</span> <span class="pre">Cmd's</span></tt> for the currently available
|
|
commands.</p>
|
|
</li>
|
|
</ol>
|
|
</div>
|
|
<div class="section" id="the-scripting-interface">
|
|
<span id="index-2"></span><h2>The Scripting Interface<a class="headerlink" href="#the-scripting-interface" title="Permalink to this headline">¶</a></h2>
|
|
<p><tt class="docutils literal"><span class="pre">mupp</span></tt> can also be operated in a scripting like manner. The use cases are plot updates during run time,
|
|
or web-based interaction which requests figures. A script is invoked by the command line option <tt class="docutils literal"><span class="pre">-s</span></tt> (see
|
|
<a class="reference internal" href="#mupp-usage"><em>mupp command line summary</em></a>. Currently the following scripting commands are available:</p>
|
|
<dl class="docutils">
|
|
<dt><strong>loadPath <dir></strong></dt>
|
|
<dd>set the load path to <tt class="docutils literal"><span class="pre"><dir></span></tt>. Bash variables like $HOME are accepted. This is the path where to look for collection files (<tt class="docutils literal"><span class="pre">db</span></tt>- and <tt class="docutils literal"><span class="pre">dat</span></tt>-files).</dd>
|
|
<dt><strong>load <coll></strong></dt>
|
|
<dd>will load the collection <tt class="docutils literal"><span class="pre"><coll></span></tt>.</dd>
|
|
<dt><strong>selectAll</strong></dt>
|
|
<dd>will select all loaded collections. This means every plot of variable x/y will be carried out to <em>ALL</em> collections.</dd>
|
|
<dt><strong>select <nn></strong></dt>
|
|
<dd>selects collection <tt class="docutils literal"><span class="pre"><nn></span></tt>, where <tt class="docutils literal"><span class="pre"><nn></span></tt> is either the <em>number</em> of the collections, or its <em>name</em>, <em>e.g.</em>
|
|
select YBCO-40nm-T5K-FC150mT-Escan.db.</dd>
|
|
<dt><strong>addX <label></strong></dt>
|
|
<dd>add <tt class="docutils literal"><span class="pre"><label></span></tt> as a <em>x</em>-variable. Only <em>one</em> is allowed.</dd>
|
|
<dt><strong>addY <label(s)></strong></dt>
|
|
<dd>add <tt class="docutils literal"><span class="pre"><label(s)></span></tt> as <em>y</em>-variable. <em>Multiple</em> labels are possible.</dd>
|
|
<dt><strong>savePath <dir></strong></dt>
|
|
<dd>set the save path to <tt class="docutils literal"><span class="pre"><dir></span></tt>. The place where the macros, and/or the plot output will be saved.</dd>
|
|
<dt><strong>plot <fln></strong></dt>
|
|
<dd>where <tt class="docutils literal"><span class="pre"><fln></span></tt> is the file name with extension under which the plot should be saved.</dd>
|
|
<dt><strong>macro <fln></strong></dt>
|
|
<dd>where <tt class="docutils literal"><span class="pre"><fln></span></tt> is the file name under which the root macro should be saved.</dd>
|
|
</dl>
|
|
<p>An example script file <tt class="docutils literal"><span class="pre">field-vs-energy.txt</span></tt> might look like this:</p>
|
|
<div class="highlight-python"><div class="highlight"><pre><span></span># This is a comment
|
|
|
|
loadPath ./
|
|
|
|
load YBCO-40nm-T5K-FC150mT-Escan.db
|
|
load YBCO-40nm-T30K-FC150mT-Escan.db
|
|
load YBCO-40nm-T60K-FC150mT-Escan.db
|
|
load YBCO-40nm-T120K-FC150mT-Escan.db
|
|
|
|
selectAll
|
|
|
|
addX dataE
|
|
addY Field
|
|
|
|
savePath ./
|
|
plot FieldVsEnergy.pdf
|
|
|
|
macro FieldVsEnergy.C
|
|
|
|
# end
|
|
</pre></div>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="the-usage-summary">
|
|
<span id="mupp-usage"></span><span id="index-3"></span><h2>The Usage Summary<a class="headerlink" href="#the-usage-summary" title="Permalink to this headline">¶</a></h2>
|
|
<div class="highlight-python"><div class="highlight"><pre><span></span>usage: mupp [OPTIONS] [[--path <fit-param-path>] <fit-param-file-names>]
|
|
|
|
OPTIONS:
|
|
-h, --help: this help
|
|
-v, --version: current mupp version
|
|
-s <fln>, --script <fln>: <fln> being a mupp script.
|
|
--path <fit-param-path>: path where to look for the <fit-param-file-names>
|
|
<fit-param-file-names>: list of file name(s) to be loaded.
|
|
allowed formats are: db, dat, msr
|
|
|
|
SCRIPT COMMANDS:
|
|
Lines starting with '#', '%', or '//' are comments and will be ignored.
|
|
The same is true for empty lines. Comments are also allowed at the end
|
|
for a command, i.e. loadPath ./ # the best place ever.
|
|
|
|
loadPath <dir> : set the load path to <dir>. Bash variables like
|
|
$HOME are accepted.
|
|
load <coll> : will load a collection <coll>. Currently *.db and *.dat
|
|
are handled.
|
|
selectAll : will select all loaded collections. Thie means every plot
|
|
of variable x/y will be carried out to ALL collections.
|
|
select <nn> : selects collection <nn>, where <nn> is either the number
|
|
of the collections, or its name, e.g.
|
|
select YBCO-40nm-T5K-FC150mT-Escan.db
|
|
addX <label> : add <label> as a x-variable. Only one is allowed.
|
|
addY <label(s)>: add <label(s)> as y-variable. Multiple labls are possible.
|
|
savePath <dir> : set the save path to <dir>. The place where the macros,
|
|
and/or the plot output will be saved.
|
|
plot <fln> : where <fln> is the file name with extension under which
|
|
the plot should be saved.
|
|
macro <fln> : where <fln> is the file name under which the root macro
|
|
should be saved.
|
|
</pre></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="sphinxsidebar">
|
|
<div class="sphinxsidebarwrapper">
|
|
<h3><a href="index.html">Table Of Contents</a></h3>
|
|
<ul>
|
|
<li><a class="reference internal" href="#">mupp - μSR Parameter Plotter</a><ul>
|
|
<li><a class="reference internal" href="#the-graphical-user-interface">The Graphical User Interface</a></li>
|
|
<li><a class="reference internal" href="#the-scripting-interface">The Scripting Interface</a></li>
|
|
<li><a class="reference internal" href="#the-usage-summary">The Usage Summary</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
|
|
<h4>Previous topic</h4>
|
|
<p class="topless"><a href="musredit.html"
|
|
title="previous chapter"><tt class="docutils literal"><span class="pre">musredit</span></tt>: the GUI Based Interface to <tt class="docutils literal"><span class="pre">musrfit</span></tt></a></p>
|
|
<h4>Next topic</h4>
|
|
<p class="topless"><a href="msr2data.html"
|
|
title="next chapter">msr2data - A Program for Automatically Processing Multiple <tt class="docutils literal"><span class="pre">musrfit</span></tt> msr Files</a></p>
|
|
<h3>This Page</h3>
|
|
<ul class="this-page-menu">
|
|
<li><a href="_sources/mupp.txt"
|
|
rel="nofollow">Show Source</a></li>
|
|
</ul>
|
|
<div id="searchbox" style="display: none">
|
|
<h3>Quick search</h3>
|
|
<form class="search" action="search.html" method="get">
|
|
<input type="text" name="q" />
|
|
<input type="submit" value="Go" />
|
|
<input type="hidden" name="check_keywords" value="yes" />
|
|
<input type="hidden" name="area" value="default" />
|
|
</form>
|
|
<p class="searchtip" style="font-size: 90%">
|
|
Enter search terms or a module, class or function name.
|
|
</p>
|
|
</div>
|
|
<script type="text/javascript">$('#searchbox').show(0);</script>
|
|
</div>
|
|
</div>
|
|
<div class="clearer"></div>
|
|
</div>
|
|
<div class="related">
|
|
<h3>Navigation</h3>
|
|
<ul>
|
|
<li class="right" style="margin-right: 10px">
|
|
<a href="genindex.html" title="General Index"
|
|
>index</a></li>
|
|
<li class="right" >
|
|
<a href="msr2data.html" title="msr2data - A Program for Automatically Processing Multiple musrfit msr Files"
|
|
>next</a> |</li>
|
|
<li class="right" >
|
|
<a href="musredit.html" title="musredit: the GUI Based Interface to musrfit"
|
|
>previous</a> |</li>
|
|
<li><a href="index.html">musrfit 1.4.0 documentation</a> »</li>
|
|
</ul>
|
|
</div>
|
|
<div class="footer">
|
|
© Copyright 2018, Andreas Suter.
|
|
Last updated on Oct 15, 2018.
|
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3.
|
|
</div>
|
|
</body>
|
|
</html> |