<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to WeightRankFilter</title><link>https://sourceforge.net/p/wsclean/wiki/WeightRankFilter/</link><description>Recent changes to WeightRankFilter</description><atom:link href="https://sourceforge.net/p/wsclean/wiki/WeightRankFilter/feed" rel="self"/><language>en</language><lastBuildDate>Wed, 19 Sep 2018 12:13:34 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/wsclean/wiki/WeightRankFilter/feed" rel="self" type="application/rss+xml"/><item><title>WeightRankFilter modified by André Offringa</title><link>https://sourceforge.net/p/wsclean/wiki/WeightRankFilter/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v5
+++ v6
@@ -8,7 +8,7 @@
 ### Effect &amp;amp; improvement
 The exact effect of this option changes very much on the type of observation, image size and uv-coverage. I've seen improvements of 20-30% reduction in noise in certain VLA observations, while I hardly saw any improvement in certain LOFAR and MWA observation.

-To observe the effect of this filter, it can be useful to save the uv-weights with `-saveweights`, and perform an imaging run with and without the filter.
+To observe the effect of this filter, it can be useful to save the uv-weights with `-save-weights`, and perform an imaging run with and without the filter.

 ### Syntax
 The parameter to enable the weight rank filter is `-weighting-rank-filter`, which takes the factor relative to the RMS above which the values are truncated. For example:
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">André Offringa</dc:creator><pubDate>Wed, 19 Sep 2018 12:13:34 -0000</pubDate><guid>https://sourceforge.netc2d23feb799e23c8ccaedc1ed707a2071f477c84</guid></item><item><title>WeightRankFilter modified by André Offringa</title><link>https://sourceforge.net/p/wsclean/wiki/WeightRankFilter/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -1,7 +1,7 @@
 ## Weight rank filter
 The weight rank filter can be used to decrease noise by avoiding giving too much weight to a single visibility.

-To determine the [image weights](ImageWeighting), the weights are gridded on a regular grid. With uniform or Briggs' weighting, the total weight of a visibility is determined by the number of visibilities that fall into that cell: the fewer visibilities fall into the same cell, the more weight this visilibity receives. Because the visibilities form a track in uv-space, it can accidently happen that a particular visibility is the only visibility gridded in a particular uv-cell, while other uv-cells have on average hundred, thousands, ... of visibilities in them. This implies that this single visibility will receive a lot of weight.
+To determine the [image weights](ImageWeighting), the weights are gridded on a regular grid. With uniform or Briggs' weighting, the total weight of a visibility is determined by the number of visibilities that fall into that cell: the fewer visibilities fall into the same cell, the more weight this visilibity receives. Because the visibilities form a track in uv-space, it can happen that a particular visibility is the only visibility gridded in a particular uv-cell, while other uv-cells have on average hundred, thousands, ... of visibilities in them. This implies that this single visibility will receive a lot of weight.

 The weight rank filter in WSClean avoids this by calculating a local weight RMS of the grid, and truncating all weights that are some factor above the local RMS. This effectively decreases the weight of those visibilities that would receive excessive weight otherwise. This results in very little change in the PSF, but can effect the noise in the image significantly.

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">André Offringa</dc:creator><pubDate>Tue, 09 May 2017 10:50:48 -0000</pubDate><guid>https://sourceforge.netb91156512d0ae4d9b2e20dff0fbdbbbe023f4c8f</guid></item><item><title>WeightRankFilter modified by André Offringa</title><link>https://sourceforge.net/p/wsclean/wiki/WeightRankFilter/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -19,9 +19,9 @@

     wsclean -weighting-rank-filter 3 -weighting-rank-filter-size 64 [other options] observation.ms

-Currently, the default in WSClean is to not apply any weighting rank filter. However, it is recommended to always apply a weak rank filter, because it improves the noise with hardly any change on the PSF. In case there are no visibilities with excessive weight, this filter will do nothing.
+Since [WSClean 2.2](Changelog-2.2), the default in WSClean is to apply a weighting rank filter with a value of 3. It is recommended to always apply a weak rank filter, because it improves the noise with hardly any change on the PSF. In case there are no visibilities with excessive weight, this filter will do nothing.

-The weight rank filter might become the default in WSClean in some later version. As far as I'm aware, there's no similar option in CASA. The option is available since [WSClean 1.8](Changelog-1.8).
+The weight rank filter is available since [WSClean 1.8](Changelog-1.8). In versions before [WSClean 2.2](Changelog-2.2), the default setting was to not apply a weight rank filter, and since 2.2 it was turned on with a value of 3. As far as I'm aware, there's no weight rank filter option in CASA.

 ### Related topics
 * [Image weighting](ImageWeighting), which discusses natural, uniform and Briggs' weighting, superuniform weighting, etc.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">André Offringa</dc:creator><pubDate>Sat, 21 Jan 2017 10:09:11 -0000</pubDate><guid>https://sourceforge.net5431d12ad9e317110d7b0b2e4062d60e784e23d4</guid></item><item><title>WeightRankFilter modified by André Offringa</title><link>https://sourceforge.net/p/wsclean/wiki/WeightRankFilter/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -23,5 +23,5 @@

 The weight rank filter might become the default in WSClean in some later version. As far as I'm aware, there's no similar option in CASA. The option is available since [WSClean 1.8](Changelog-1.8).

-Related topics:
+### Related topics
 * [Image weighting](ImageWeighting), which discusses natural, uniform and Briggs' weighting, superuniform weighting, etc.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">André Offringa</dc:creator><pubDate>Tue, 23 Feb 2016 15:21:54 -0000</pubDate><guid>https://sourceforge.nete6e59771744d6022da9b659c8ad589443ca9070c</guid></item><item><title>WeightRankFilter modified by André Offringa</title><link>https://sourceforge.net/p/wsclean/wiki/WeightRankFilter/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,8 +1,16 @@
 ## Weight rank filter
+The weight rank filter can be used to decrease noise by avoiding giving too much weight to a single visibility.
+
 To determine the [image weights](ImageWeighting), the weights are gridded on a regular grid. With uniform or Briggs' weighting, the total weight of a visibility is determined by the number of visibilities that fall into that cell: the fewer visibilities fall into the same cell, the more weight this visilibity receives. Because the visibilities form a track in uv-space, it can accidently happen that a particular visibility is the only visibility gridded in a particular uv-cell, while other uv-cells have on average hundred, thousands, ... of visibilities in them. This implies that this single visibility will receive a lot of weight.

 The weight rank filter in WSClean avoids this by calculating a local weight RMS of the grid, and truncating all weights that are some factor above the local RMS. This effectively decreases the weight of those visibilities that would receive excessive weight otherwise. This results in very little change in the PSF, but can effect the noise in the image significantly.

+### Effect &amp;amp; improvement
+The exact effect of this option changes very much on the type of observation, image size and uv-coverage. I've seen improvements of 20-30% reduction in noise in certain VLA observations, while I hardly saw any improvement in certain LOFAR and MWA observation.
+
+To observe the effect of this filter, it can be useful to save the uv-weights with `-saveweights`, and perform an imaging run with and without the filter.
+
+### Syntax
 The parameter to enable the weight rank filter is `-weighting-rank-filter`, which takes the factor relative to the RMS above which the values are truncated. For example:

     wsclean -weighting-rank-filter 3 [other options] observation.ms
@@ -11,9 +19,9 @@

     wsclean -weighting-rank-filter 3 -weighting-rank-filter-size 64 [other options] observation.ms

-Currently, the default in WSClean is to not apply any weighting rank filter. However, it is recommended to always apply a weak rank filter. This might become the default in WSClean in some later version. As far as I'm aware, there's no similar option in CASA.
+Currently, the default in WSClean is to not apply any weighting rank filter. However, it is recommended to always apply a weak rank filter, because it improves the noise with hardly any change on the PSF. In case there are no visibilities with excessive weight, this filter will do nothing.

-This option is available since [WSClean 1.8](Changelog-1.8).
+The weight rank filter might become the default in WSClean in some later version. As far as I'm aware, there's no similar option in CASA. The option is available since [WSClean 1.8](Changelog-1.8).

 Related topics:
 * [Image weighting](ImageWeighting), which discusses natural, uniform and Briggs' weighting, superuniform weighting, etc.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">André Offringa</dc:creator><pubDate>Tue, 23 Feb 2016 15:21:31 -0000</pubDate><guid>https://sourceforge.netde73a8864ae4dfe2c4ca49c7827c09b604e6f882</guid></item><item><title>WeightRankFilter modified by André Offringa</title><link>https://sourceforge.net/p/wsclean/wiki/WeightRankFilter/</link><description>&lt;div class="markdown_content"&gt;&lt;h2 id="weight-rank-filter"&gt;Weight rank filter&lt;/h2&gt;
&lt;p&gt;To determine the &lt;a class="" href="/p/wsclean/wiki/ImageWeighting/"&gt;image weights&lt;/a&gt;, the weights are gridded on a regular grid. With uniform or Briggs' weighting, the total weight of a visibility is determined by the number of visibilities that fall into that cell: the fewer visibilities fall into the same cell, the more weight this visilibity receives. Because the visibilities form a track in uv-space, it can accidently happen that a particular visibility is the only visibility gridded in a particular uv-cell, while other uv-cells have on average hundred, thousands, ... of visibilities in them. This implies that this single visibility will receive a lot of weight.&lt;/p&gt;
&lt;p&gt;The weight rank filter in WSClean avoids this by calculating a local weight RMS of the grid, and truncating all weights that are some factor above the local RMS. This effectively decreases the weight of those visibilities that would receive excessive weight otherwise. This results in very little change in the PSF, but can effect the noise in the image significantly.&lt;/p&gt;
&lt;p&gt;The parameter to enable the weight rank filter is &lt;code&gt;-weighting-rank-filter&lt;/code&gt;, which takes the factor relative to the RMS above which the values are truncated. For example:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;wsclean&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;weighting&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;rank&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;filter&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;other&lt;/span&gt; &lt;span class="n"&gt;options&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="n"&gt;observation&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ms&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;The default size over which the RMS is calculated, is 16 uv-pixels. During this calculation, only uv-cells with coverage are used in the calculation. If the visibility coverage is very sparse, the size of 16 uv-pixels might be too small. It can be changed with the &lt;code&gt;-weighting-rank-filter-size&lt;/code&gt; option, for example:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;wsclean&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;weighting&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;rank&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;filter&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;weighting&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;rank&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;filter&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;size&lt;/span&gt; &lt;span class="mi"&gt;64&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;other&lt;/span&gt; &lt;span class="n"&gt;options&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="n"&gt;observation&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ms&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Currently, the default in WSClean is to not apply any weighting rank filter. However, it is recommended to always apply a weak rank filter. This might become the default in WSClean in some later version. As far as I'm aware, there's no similar option in CASA.&lt;/p&gt;
&lt;p&gt;This option is available since &lt;a class="" href="/p/wsclean/wiki/Changelog-1.8/"&gt;WSClean 1.8&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Related topics:&lt;br/&gt;
* &lt;a class="" href="/p/wsclean/wiki/ImageWeighting/"&gt;Image weighting&lt;/a&gt;, which discusses natural, uniform and Briggs' weighting, superuniform weighting, etc.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">André Offringa</dc:creator><pubDate>Tue, 23 Feb 2016 15:09:54 -0000</pubDate><guid>https://sourceforge.net25681da69511a85691149f6750996423179417fb</guid></item></channel></rss>