<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.sternwarte.uni-erlangen.de/wiki/index.php?action=history&amp;feed=atom&amp;title=Model_decomp_%28xfig_example%29</id>
	<title>Model decomp (xfig example) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.sternwarte.uni-erlangen.de/wiki/index.php?action=history&amp;feed=atom&amp;title=Model_decomp_%28xfig_example%29"/>
	<link rel="alternate" type="text/html" href="https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=Model_decomp_(xfig_example)&amp;action=history"/>
	<updated>2026-04-19T02:29:43Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.7</generator>
	<entry>
		<id>https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=Model_decomp_(xfig_example)&amp;diff=1534&amp;oldid=prev</id>
		<title>Obst: Obst moved page Model decomp to Model decomp (xfig example) without leaving a redirect</title>
		<link rel="alternate" type="text/html" href="https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=Model_decomp_(xfig_example)&amp;diff=1534&amp;oldid=prev"/>
		<updated>2018-05-17T13:35:00Z</updated>

		<summary type="html">&lt;p&gt;Obst moved page &lt;a href=&quot;/wiki/index.php?title=Model_decomp&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Model decomp (page does not exist)&quot;&gt;Model decomp&lt;/a&gt; to &lt;a href=&quot;/wiki/index.php/Model_decomp_(xfig_example)&quot; title=&quot;Model decomp (xfig example)&quot;&gt;Model decomp (xfig example)&lt;/a&gt; without leaving a redirect&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:35, 17 May 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Obst</name></author>
	</entry>
	<entry>
		<id>https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=Model_decomp_(xfig_example)&amp;diff=1417&amp;oldid=prev</id>
		<title>Sokolova-lapa at 11:23, 2 May 2018</title>
		<link rel="alternate" type="text/html" href="https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=Model_decomp_(xfig_example)&amp;diff=1417&amp;oldid=prev"/>
		<updated>2018-05-02T11:23:57Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:23, 2 May 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l3&quot; &gt;Line 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:SLxfig]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:SLxfig]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:multipanel_decomposition.png]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:multipanel_decomposition.png&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;|800px|&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sokolova-lapa</name></author>
	</entry>
	<entry>
		<id>https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=Model_decomp_(xfig_example)&amp;diff=1406&amp;oldid=prev</id>
		<title>Sokolova-lapa: Created page with &quot;  Category:SLxfig  File:multipanel_decomposition.png   Spectral data and models of the best fits have been stored in tables using write_plot() and eval_fun_keV() in a...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=Model_decomp_(xfig_example)&amp;diff=1406&amp;oldid=prev"/>
		<updated>2018-05-02T11:16:18Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;  &lt;a href=&quot;/wiki/index.php/Category:SLxfig&quot; title=&quot;Category:SLxfig&quot;&gt;Category:SLxfig&lt;/a&gt;  &lt;a href=&quot;/wiki/index.php/File:Multipanel_decomposition.png&quot; title=&quot;File:Multipanel decomposition.png&quot;&gt;File:multipanel_decomposition.png&lt;/a&gt;   Spectral data and models of the best fits have been stored in tables using write_plot() and eval_fun_keV() in a...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:SLxfig]]&lt;br /&gt;
&lt;br /&gt;
[[File:multipanel_decomposition.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Spectral data and models of the best fits have been stored in tables using write_plot() and eval_fun_keV() in a file structure of shape /userdata/data/user/ &amp;quot;source&amp;quot; / &amp;quot;model&amp;quot; /decomposition/ &amp;quot;component&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/usr/bin/env isis-script&lt;br /&gt;
&lt;br /&gt;
require(&amp;quot;isisscripts&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
variable COLOR = [&amp;quot;dimgray&amp;quot;,&amp;quot;darkgray&amp;quot;,&amp;quot;lightgrey&amp;quot;];&lt;br /&gt;
variable MCOLOR = [&amp;quot;darkorange&amp;quot;,&amp;quot;blue&amp;quot;,&amp;quot;mediumaquamarine&amp;quot;,&amp;quot;purple&amp;quot;,&amp;quot;black&amp;quot;];&lt;br /&gt;
&lt;br /&gt;
% Lists of object names and model components to automatically build data paths&lt;br /&gt;
variable comp_list = {&amp;quot;tbnew_feo*relxilllp&amp;quot;,&amp;quot;tbnew_feo*powerlaw&amp;quot;,&amp;quot;tbnew_feo*xillver&amp;quot;,&amp;quot;complete_model&amp;quot;,&amp;quot;absorbed_model&amp;quot;};&lt;br /&gt;
variable namelist = {&amp;quot;ark120&amp;quot;,&amp;quot;pds456&amp;quot;,&amp;quot;fairall9&amp;quot;, &amp;quot;ngc1365&amp;quot;, &amp;quot;3c390_3&amp;quot;, &amp;quot;3c382&amp;quot;};&lt;br /&gt;
variable tex_name = {&amp;quot;Ark 120&amp;quot;,&amp;quot;PDS 456&amp;quot;,&amp;quot;Fairall 9&amp;quot;, &amp;quot;NGC 1365&amp;quot;, &amp;quot;3C390.3&amp;quot;, &amp;quot;3C382&amp;quot;};&lt;br /&gt;
variable detconst = {{1,1/1.08,1/1.1},{1,1/0.68,1/0.75},{1,1/0.995,1/1.02},{1,1/0.96,1/0.98},{1,1/1.062567,1/1.115621},{1,1/0.8153,1/0.7853389}};&lt;br /&gt;
&lt;br /&gt;
%-------main-loop-over-namelist---------------&lt;br /&gt;
variable panel = Struct_Type[length(namelist)];&lt;br /&gt;
variable i,j, lo, hi, val, err, err_max, err_min;&lt;br /&gt;
&lt;br /&gt;
for(j=0;j&amp;lt;length(namelist);j++){&lt;br /&gt;
&lt;br /&gt;
	% initialize panel j&lt;br /&gt;
	panel[j] = xfig_plot_new(12, 9);&lt;br /&gt;
	panel[j].world(0.5,80,5e-08,0.1; xlog=1, ylog=1);&lt;br /&gt;
	panel[j].ylabel(`Flux \footnotesize[s$^{-1}$\,cm$^{-2}$\,keV$^{-1}$]`);&lt;br /&gt;
	panel[j].xylabel(0.95,0.9,tex_name[j],0.5,0; world0);&lt;br /&gt;
&lt;br /&gt;
	variable write_folder = &amp;quot;/userdata/data/fink/&amp;quot;+namelist[j]+&amp;quot;/fit_relxilllp/decomposition/&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
	% plot data from three detectors in the background, corrected for according detector constant&lt;br /&gt;
	for(i=0;i&amp;lt;=2;i++){&lt;br /&gt;
		(lo, hi, val, err) = readcol(write_folder+&amp;quot;data_&amp;quot;+string(i)+&amp;quot;.dat&amp;quot;, 1, 2, 3, 4);&lt;br /&gt;
		panel[j].plot((lo+hi)/2., val*detconst[j][i], err*detconst[j][i]; sym=&amp;quot;point&amp;quot;, size=-1, eb_factor=0, color=COLOR[i]);&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	% plot model components (exception for pds456)&lt;br /&gt;
	for(i=0;i&amp;lt;length(comp_list);i++){&lt;br /&gt;
		if(not(comp_list[i]==&amp;quot;tbnew_feo*xillver&amp;quot; &amp;amp;&amp;amp; namelist[j] == &amp;quot;pds456&amp;quot;)){&lt;br /&gt;
		(lo, hi, val) = readcol(write_folder+comp_list[i]+&amp;quot;.dat&amp;quot;, 1, 2, 3);&lt;br /&gt;
		panel[j].plot((lo+hi)/2, val; line=0, eb_factor=0, size=0.01, color=MCOLOR[i], depth=10-i);&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
% some model labels&lt;br /&gt;
variable ypos = 0.42, ystep = 0.08;&lt;br /&gt;
panel[1].xylabel(0.05, ypos - 0*ystep, &amp;quot;Powerlaw&amp;quot;, -0.5, 0; world0, color = MCOLOR[1]);&lt;br /&gt;
panel[1].xylabel(0.05, ypos - 1*ystep, &amp;quot;CDR&amp;quot;,-0.5,0; world0, color = MCOLOR[2]);&lt;br /&gt;
panel[1].xylabel(0.05, ypos - 2*ystep, &amp;quot;Lamppost-RR&amp;quot;,-0.5,0; world0, color = MCOLOR[0]);&lt;br /&gt;
panel[1].xylabel(0.05, ypos - 3*ystep, &amp;quot;Powerlaw + Reflection&amp;quot;,-0.5,0; world0, color = MCOLOR[3]);&lt;br /&gt;
panel[1].xylabel(0.05, ypos - 4*ystep, &amp;quot;Full Absorbed Model&amp;quot;,-0.5,0; world0, color = MCOLOR[4]);&lt;br /&gt;
&lt;br /&gt;
%---------render-all--------------&lt;br /&gt;
variable multi = xfig_multiplot(panel; xlabel=`Energy [keV]`, cols=2);&lt;br /&gt;
multi.render(&amp;quot;multipanel_decomposition.pdf&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
quit;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sokolova-lapa</name></author>
	</entry>
</feed>