<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to scripted_plotting</title><link>https://sourceforge.net/p/aoflagger/wiki/scripted_plotting/</link><description>Recent changes to scripted_plotting</description><atom:link href="https://sourceforge.net/p/aoflagger/wiki/scripted_plotting/feed" rel="self"/><language>en</language><lastBuildDate>Fri, 30 Mar 2018 12:02:09 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/aoflagger/wiki/scripted_plotting/feed" rel="self" type="application/rss+xml"/><item><title>scripted_plotting modified by André Offringa</title><link>https://sourceforge.net/p/aoflagger/wiki/scripted_plotting/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v9
+++ v10
@@ -1,4 +1,4 @@
-Both `rfigui` and `aoqplot` have options that make it possible to save certain statistics or overview images. This can be useful to e.g. automatically store a few default images that give a quick overview of the RFI situation. When parameters are given on the command line that save images, the `rfigui` and `aoqplot` tools will not open their default window and therefore do not require an X windows system to be running¹. In other words, in these modes the tools can be run from a command line script. Both `rfigui` and `aoqplot` can be run with parameter `--help`, which will show a list of command.
+Both `rfigui` and `aoqplot` have options that make it possible to save certain statistics or overview images. This can be useful to e.g. automatically store a few default images that give a quick overview of the RFI situation. When parameters are given on the command line that save images, the `rfigui` and `aoqplot` tools will not open their default window and therefore do not require an X windows system to be running¹. In other words, in these modes the tools can be run from a command line script. Both `rfigui` and `aoqplot` can be run with parameter `--help`, which will show a list of supported options.

 The `rfigui` tool can be used to save time-frequency "heatmap" images, that show the flux of the correlations in a two-dimensional time and frequency display. The syntax is as follows:

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">André Offringa</dc:creator><pubDate>Fri, 30 Mar 2018 12:02:09 -0000</pubDate><guid>https://sourceforge.net47a433e469be239b0f1725033e0afcd074ea20b3</guid></item><item><title>scripted_plotting modified by André Offringa</title><link>https://sourceforge.net/p/aoflagger/wiki/scripted_plotting/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v8
+++ v9
@@ -36,5 +36,11 @@
     Saving aartfaac-stddev-frequency.pdf...
     $

+This is an example for the produced 'baselines' plot:
+![Result of aoqplot -save command (baseline plot)](https://sourceforge.net/p/aoflagger/wiki/scripted_plotting/attachment/wsrt-stddev-baselines.png)

+As can be seen from this image, antenna index 5 (WSRT RT5) is not working, and the autocorrelations show more power (as they should). Note that `aoqplot` uses the quality statistics tables inside the measurement set. These are normally produced by tools like `DPPP`, `cotter` or `aartfaac2ms`; however, if a measurement set is not produced by one of those tools, it is necessary to create these tables manually. This can be done with the `aoquality collect &amp;lt;obs.ms&amp;gt;` command.
+
+&lt;small&gt;
 ¹ - Older versions of `rfigui` and `aoqplot` would require an X window system to be running even when running in command line mode. However, that was resolved in AOFlagger [version 2.10](changelog-2.10.0).
+&lt;/small&gt;
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">André Offringa</dc:creator><pubDate>Fri, 30 Mar 2018 12:01:01 -0000</pubDate><guid>https://sourceforge.net40e06487e63998948983ec1cb8e80d75315ea1e8</guid></item><item><title>scripted_plotting modified by André Offringa</title><link>https://sourceforge.net/p/aoflagger/wiki/scripted_plotting/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v7
+++ v8
@@ -2,13 +2,39 @@

 The `rfigui` tool can be used to save time-frequency "heatmap" images, that show the flux of the correlations in a two-dimensional time and frequency display. The syntax is as follows:

-    rfigui -save-baseline &amp;lt;filename&amp;gt; &amp;lt;antenna1&amp;gt; &amp;lt;antenna2&amp;gt; &amp;lt;band&amp;gt; &amp;lt;sequence index=""&amp;gt;
+    $ rfigui -save-baseline &amp;lt;filename&amp;gt; &amp;lt;antenna1&amp;gt; &amp;lt;antenna2&amp;gt; &amp;lt;band&amp;gt; &amp;lt;sequence index=""&amp;gt;

 Filename should end with an image extension. Supported formats are `.png`, `.pdf` and `.svg`. Note that `.pdf` and `.svg` or of higher quality than `.png` files. The created plots will by default be made from the "`DATA`" column. However, a different column can be selected with the option `-data-column &amp;lt;name&amp;gt;`. The following example will save the correlated data from antennas 1 and 3: 

-    rfigui -data-column CORRECTED_DATA -save-baseline WSRT-RT2xRT4.pdf 1 3 0 0 3C196_spw5_sub1.MS/
+    $ rfigui -data-column CORRECTED_DATA -save-baseline WSRT-RT2xRT4.pdf 1 3 0 0 3C196_spw5_sub1.MS/

 Which creates the following pdf:
 ![Result of rfigui -save-baseline command (WSRT-RT2xRT4)](https://sourceforge.net/p/aoflagger/wiki/scripted_plotting/attachment/WSRT-RT2xRT4.png)

+It is also possible to repeat the '`-save-baseline`' option to save multiple images at once. This saves quite a few computations over saving the baselines one by one with separate `rfigui` calls.
+
+The `aoqplot` syntax to save plots is as follows:
+
+    $ aoqplot -save &amp;lt;filename prefix=""&amp;gt; &amp;lt;statistic name=""&amp;gt;
+
+Note that unlike `rfigui`, the `aoqplot` tool saves several images at once. The plots created are i) a per-baseline matrix plot; ii) a per antenna plot; iii) a spectrum; iv) a time-plot; and v) a time-frequency heatmap. The statistic name parameter is a case-sensitive name of the statistic that will be plotted over antenna/time/frequency, etc. The common statistics are: `StandardDeviation`, `DStandardDeviation` (=stddev of difference between channels), `Variance`, `Mean`, `RFIPercentage`, `RFIRatio` and`Count` (=visibility count). A full list of allowed statistics can be retrieved by typing `aoquality liststats` on the command line. However, not all allowed statistics are stored by default in a measurement set. This is an example `aoqplot` run:
+
+    $ aoqplot -save aartfaac-stddev StandardDeviation aartfaac-testobs.ms/
+     (1/1) Adding aartfaac-testobs.ms/ to statistics...
+    Lowering time resolution...
+    Lowering frequency resolution...
+    Integrating baseline statistics to one channel...
+    Regridding time statistics...
+    Copying statistics...
+    Integrating time statistics to one channel...
+    Opening statistics panel...
+    Saving aartfaac-stddev-antennas.pdf...
+    Saving aartfaac-stddev-baselines.pdf...
+    Saving aartfaac-stddev-baselinelengths.pdf...
+    Saving aartfaac-stddev-timefrequency.pdf...
+    Saving aartfaac-stddev-time.pdf...
+    Saving aartfaac-stddev-frequency.pdf...
+    $
+
+
 ¹ - Older versions of `rfigui` and `aoqplot` would require an X window system to be running even when running in command line mode. However, that was resolved in AOFlagger [version 2.10](changelog-2.10.0).
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">André Offringa</dc:creator><pubDate>Fri, 30 Mar 2018 11:49:49 -0000</pubDate><guid>https://sourceforge.net31bb026a7fc2be88a1694f4bd81c50f1d6a7b4c6</guid></item><item><title>scripted_plotting modified by André Offringa</title><link>https://sourceforge.net/p/aoflagger/wiki/scripted_plotting/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v6
+++ v7
@@ -6,9 +6,9 @@

 Filename should end with an image extension. Supported formats are `.png`, `.pdf` and `.svg`. Note that `.pdf` and `.svg` or of higher quality than `.png` files. The created plots will by default be made from the "`DATA`" column. However, a different column can be selected with the option `-data-column &amp;lt;name&amp;gt;`. The following example will save the correlated data from antennas 1 and 3: 

-    rfigui -data-column CORRECTED_DATA -save-baseline WSRT-ant1xant3.pdf 1 3 0 0 3C196_spw5_sub1.MS/
+    rfigui -data-column CORRECTED_DATA -save-baseline WSRT-RT2xRT4.pdf 1 3 0 0 3C196_spw5_sub1.MS/

 Which creates the following pdf:
-![Output of -save-baseline (WSRT-RT2xRT4)](https://sourceforge.net/p/aoflagger/wiki/scripted_plotting/attachment/WSRT-RT2xRT4.png)
+![Result of rfigui -save-baseline command (WSRT-RT2xRT4)](https://sourceforge.net/p/aoflagger/wiki/scripted_plotting/attachment/WSRT-RT2xRT4.png)

 ¹ - Older versions of `rfigui` and `aoqplot` would require an X window system to be running even when running in command line mode. However, that was resolved in AOFlagger [version 2.10](changelog-2.10.0).
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">André Offringa</dc:creator><pubDate>Fri, 30 Mar 2018 11:35:07 -0000</pubDate><guid>https://sourceforge.net3913fdf1edc78cf02824c1b1a3152f03891c415a</guid></item><item><title>scripted_plotting modified by André Offringa</title><link>https://sourceforge.net/p/aoflagger/wiki/scripted_plotting/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v5
+++ v6
@@ -6,8 +6,9 @@

 Filename should end with an image extension. Supported formats are `.png`, `.pdf` and `.svg`. Note that `.pdf` and `.svg` or of higher quality than `.png` files. The created plots will by default be made from the "`DATA`" column. However, a different column can be selected with the option `-data-column &amp;lt;name&amp;gt;`. The following example will save the correlated data from antennas 1 and 3: 

-    rfigui -save-baseline WSRT-ant1xant3.pdf 1 3 0 0 3C196_spw5_sub1.MS/
+    rfigui -data-column CORRECTED_DATA -save-baseline WSRT-ant1xant3.pdf 1 3 0 0 3C196_spw5_sub1.MS/

-
+Which creates the following pdf:
+![Output of -save-baseline (WSRT-RT2xRT4)](https://sourceforge.net/p/aoflagger/wiki/scripted_plotting/attachment/WSRT-RT2xRT4.png)

 ¹ - Older versions of `rfigui` and `aoqplot` would require an X window system to be running even when running in command line mode. However, that was resolved in AOFlagger [version 2.10](changelog-2.10.0).
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">André Offringa</dc:creator><pubDate>Fri, 30 Mar 2018 11:33:21 -0000</pubDate><guid>https://sourceforge.net73948ba252c472303a44939270ff096c3be19658</guid></item><item><title>scripted_plotting modified by André Offringa</title><link>https://sourceforge.net/p/aoflagger/wiki/scripted_plotting/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">André Offringa</dc:creator><pubDate>Fri, 30 Mar 2018 11:32:10 -0000</pubDate><guid>https://sourceforge.net05e78361155459185c6b95bbdd022e7d1545271e</guid></item><item><title>scripted_plotting modified by André Offringa</title><link>https://sourceforge.net/p/aoflagger/wiki/scripted_plotting/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">André Offringa</dc:creator><pubDate>Fri, 30 Mar 2018 11:31:21 -0000</pubDate><guid>https://sourceforge.net0d6ebb74be8ff9076f262e98c96389cbe3d63933</guid></item><item><title>scripted_plotting modified by André Offringa</title><link>https://sourceforge.net/p/aoflagger/wiki/scripted_plotting/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">André Offringa</dc:creator><pubDate>Fri, 30 Mar 2018 11:30:44 -0000</pubDate><guid>https://sourceforge.netf03df4eb6a27cdf22423bfbce92464685e43d42b</guid></item><item><title>scripted_plotting modified by André Offringa</title><link>https://sourceforge.net/p/aoflagger/wiki/scripted_plotting/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,6 +1,13 @@
-Both `rfigui` and `aoqplot` have options that allow saving of certain statistics or overview images, which makes it possible to automatically store a few images that give a quick overview. When parameters are given on the command line that save images, the `rfigui` and `aoqplot` tools will not open their default window and therefore do not require an X windows system to be running¹. In other words, in these modes the tools can be run from a command line script.
+Both `rfigui` and `aoqplot` have options that make it possible to save certain statistics or overview images. This can be useful to e.g. automatically store a few default images that give a quick overview of the RFI situation. When parameters are given on the command line that save images, the `rfigui` and `aoqplot` tools will not open their default window and therefore do not require an X windows system to be running¹. In other words, in these modes the tools can be run from a command line script. Both `rfigui` and `aoqplot` can be run with parameter `--help`, which will show a list of command.

-The `rfigui` tool can be used to save time-frequency "heatmap" images, that show the flux of the correlations in a two-dimensional time and frequency display. When used in this mode
+The `rfigui` tool can be used to save time-frequency "heatmap" images, that show the flux of the correlations in a two-dimensional time and frequency display. The syntax is as follows:
+
+    rfigui -save-baseline &amp;lt;filename&amp;gt; &amp;lt;antenna1&amp;gt; &amp;lt;antenna2&amp;gt; &amp;lt;band&amp;gt; &amp;lt;sequence index=""&amp;gt;
+
+Filename should end with an image extension. Supported formats are `.png`, `.pdf` and `.svg`. Note that `.pdf` and `.svg` or of higher quality than `.png` files. The created plots will by default be made from the "`DATA`" column. However, a different column can be selected with the option `-data-column &amp;lt;name&amp;gt;`. The following example will save the correlated data from antennas 1 and 3: 
+
+    rfigui -save-baseline WSRT-ant1xant3.pdf 1 3 0 0 3C196_spw5_sub1.MS/
+

 ¹ - Older versions of `rfigui` and `aoqplot` would require an X window system to be running even when running in command line mode. However, that was resolved in AOFlagger [version 2.10](changelog-2.10.0).
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">André Offringa</dc:creator><pubDate>Fri, 30 Mar 2018 11:30:10 -0000</pubDate><guid>https://sourceforge.net63c34681bb5dfbd15f4b528738fa4bcaf65a2ae1</guid></item><item><title>scripted_plotting modified by André Offringa</title><link>https://sourceforge.net/p/aoflagger/wiki/scripted_plotting/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Both &lt;code&gt;rfigui&lt;/code&gt; and &lt;code&gt;aoqplot&lt;/code&gt; have options that allow saving of certain statistics or overview images, which makes it possible to automatically store a few images that give a quick overview. When parameters are given on the command line that save images, the &lt;code&gt;rfigui&lt;/code&gt; and &lt;code&gt;aoqplot&lt;/code&gt; tools will not open their default window and therefore do not require an X windows system to be running¹. In other words, in these modes the tools can be run from a command line script.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;rfigui&lt;/code&gt; tool can be used to save time-frequency "heatmap" images, that show the flux of the correlations in a two-dimensional time and frequency display. When used in this mode&lt;/p&gt;
&lt;p&gt;¹ - Older versions of &lt;code&gt;rfigui&lt;/code&gt; and &lt;code&gt;aoqplot&lt;/code&gt; would require an X window system to be running even when running in command line mode. However, that was resolved in AOFlagger &lt;a class="" href="/p/aoflagger/wiki/changelog-2.10.0/"&gt;version 2.10&lt;/a&gt;.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">André Offringa</dc:creator><pubDate>Fri, 30 Mar 2018 11:20:22 -0000</pubDate><guid>https://sourceforge.net163b624078bf4a5da4a5c10c4e87fefd2824936f</guid></item></channel></rss>