<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to LocalRMSThresholding</title><link>https://sourceforge.net/p/wsclean/wiki/LocalRMSThresholding/</link><description>Recent changes to LocalRMSThresholding</description><atom:link href="https://sourceforge.net/p/wsclean/wiki/LocalRMSThresholding/feed" rel="self"/><language>en</language><lastBuildDate>Wed, 30 May 2018 11:22:55 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/wsclean/wiki/LocalRMSThresholding/feed" rel="self" type="application/rss+xml"/><item><title>LocalRMSThresholding modified by André Offringa</title><link>https://sourceforge.net/p/wsclean/wiki/LocalRMSThresholding/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v8
+++ v9
@@ -6,6 +6,8 @@
  * An pre-made RMS map can be supplied to WSClean.

 The two cases will be described in the sections below.
+
+Note that when using local RMS thresholding, values reported during the minor cycles are no longer absolute fluxes, but have been scaled in some way to account for the local RMS. 

 ### Automatically generated RMS map
 When WSClean is asked to use a local RMS without supplying an RMS image, WSClean will generate an RMS map. This is done every major iteration, before the clean loop is called. A typical run looks like this:
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">André Offringa</dc:creator><pubDate>Wed, 30 May 2018 11:22:55 -0000</pubDate><guid>https://sourceforge.net8640ae305aaec60ede54f1a6fdd81fa040ca075b</guid></item><item><title>LocalRMSThresholding modified by André Offringa</title><link>https://sourceforge.net/p/wsclean/wiki/LocalRMSThresholding/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v7
+++ v8
@@ -11,31 +11,31 @@
 When WSClean is asked to use a local RMS without supplying an RMS image, WSClean will generate an RMS map. This is done every major iteration, before the clean loop is called. A typical run looks like this:

     :::bash
-    wsclean -size 1024 1024 scale 10asec -rms-background \
+    wsclean -size 1024 1024 scale 10asec -local-rms \
       -auto-threshold 3 -mgain 0.8 -niter 1000000 [...] observation.ms

 The local RMS thresholding is typically to be used together with the `-auto-threshold` parameter. While it is possible to combine it with a normal `-threshold` parameter, which will scale the threshold relatively to the minimum in the RMS map, this is not recommended. Local RMS thresholding can also be used together with [automatic masking](Masking) using the `-auto-mask` parameter. A typical run to do this looks like this:

     :::bash
-    wsclean -size 1024 1024 scale 10asec -rms-background \
+    wsclean -size 1024 1024 scale 10asec -local-rms \
       -auto-threshold 0.3 -auto-mask 3 -mgain 0.8 -niter 1000000 \
       -multiscale [...] observation.ms

-Note that the `-rms-background` parameter will be renamed to `-local-rms` in WSClean 2.4.
+Note that the `-local-rms` parameter was called `-rms-background` before [WSClean 2.4](Changelog-2.4).

-The default configuration is to calculate the RMS over a Gaussian kernel with dimensions of 25 times the PSF. This value can be changed with the `-rms-background-window` (`-local-rms-window`) option, for example:
+The default configuration is to calculate the RMS over a Gaussian kernel with dimensions of 25 times the PSF. This value can be changed with the `-local-rms-window` option, for example:

     :::bash
-    wsclean -size 1024 1024 scale 10asec -rms-background -rms-background-window 10 \
+    wsclean -size 1024 1024 scale 10asec -local-rms -local-rms-window 10 \
       -auto-threshold 3 -mgain 0.8 -niter 1000000 [...] observation.ms

-Instead of just using the RMS, it is also possible to use a combination of the local RMS and the negated minimum pixel. The formula used for this is max(window_rms, -1.5/5 x window_min) . This can be selected by adding `-rms-background-method rms-with-min`. We have not seen much difference between using the normal local RMS or this combined quantity.
+Instead of just using the RMS, it is also possible to use a combination of the local RMS and the negated minimum pixel. The formula used for this is max(window_rms, -1.5/5 x window_min) . This can be selected by adding `-local-rms-method rms-with-min`. We have not seen much difference between using the normal local RMS or this combined quantity.

 ### Using a pre-existing RMS map
 A pre-existing RMS map can be supplied with the `-rms-background-image` parameter, like this:

     :::bash
-    wsclean -size 1024 1024 -scale 10asec -rms-background-image rmsmap.fits \
+    wsclean -size 1024 1024 -scale 10asec -local-rms-image rmsmap.fits \
       -auto-threshold 3 -mgain 0.8 -niter 1000000 [...] observation.ms

 The input map (`rmsmap.fits` in this case) will have to have the size of the (trimmed) output image.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">André Offringa</dc:creator><pubDate>Fri, 01 Dec 2017 12:20:48 -0000</pubDate><guid>https://sourceforge.net1902de261d71de61d5608b43d237f1c93f53c6b1</guid></item><item><title>LocalRMSThresholding modified by André Offringa</title><link>https://sourceforge.net/p/wsclean/wiki/LocalRMSThresholding/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v6
+++ v7
@@ -1,4 +1,4 @@
-Since [WSClean 2.3](Changelog-2.3), WSClean supports setting thresholding levels that are relative to the local RMS. This is useful when the RMS varies strongly over the field of view. The most clear use-case for local RMS thresholding is for cleaning images that contain strong calibration artefacts. In this case, strong sources might generate strong artefacts. Those artefacts might be much stronger than faint sources elsewhere in the field of view. To be able to clean those faint sources, but not clean the artefacts, local RMS thresholding is required.
+Since [WSClean 2.3](Changelog-2.3), WSClean supports setting thresholding levels that are relative to the local RMS. This is useful when the RMS varies strongly over the field of view. A typical use-case for local RMS thresholding is for cleaning images that contain strong calibration artefacts. In this case, strong sources might generate strong artefacts. Those artefacts might be much stronger than faint sources elsewhere in the field of view. To be able to clean those faint sources, but not clean the artefacts, local RMS thresholding is required.

 There are two ways of using local RMS thresholding:

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">André Offringa</dc:creator><pubDate>Wed, 09 Aug 2017 11:48:32 -0000</pubDate><guid>https://sourceforge.net10a2e4423dc11b18d482961df6c4cc990d35bf3f</guid></item><item><title>LocalRMSThresholding modified by André Offringa</title><link>https://sourceforge.net/p/wsclean/wiki/LocalRMSThresholding/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v5
+++ v6
@@ -1,4 +1,4 @@
-Since [WSClean 2.3](Changelog-2.3), WSClean supports settings thresholding levels that are relative to the local RMS. This is useful when the RMS varies strongly over the field of view. The most clear use-case for local RMS thresholding is for cleaning images that contain strong calibration artefacts. In this case, strong sources might generate strong artefacts. Those artefacts might be much stronger than faint sources elsewhere in the field of view. To be able to clean those faint sources, but not clean the artefacts, local RMS thresholding is required.
+Since [WSClean 2.3](Changelog-2.3), WSClean supports setting thresholding levels that are relative to the local RMS. This is useful when the RMS varies strongly over the field of view. The most clear use-case for local RMS thresholding is for cleaning images that contain strong calibration artefacts. In this case, strong sources might generate strong artefacts. Those artefacts might be much stronger than faint sources elsewhere in the field of view. To be able to clean those faint sources, but not clean the artefacts, local RMS thresholding is required.

 There are two ways of using local RMS thresholding:

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">André Offringa</dc:creator><pubDate>Wed, 09 Aug 2017 11:48:05 -0000</pubDate><guid>https://sourceforge.net6d52bdc4d2b6e79a2477ea824cbbfbb9fa5a4996</guid></item><item><title>LocalRMSThresholding modified by André Offringa</title><link>https://sourceforge.net/p/wsclean/wiki/LocalRMSThresholding/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -1,4 +1,4 @@
-Since [WSClean 2.3](Changelog-2.3), WSClean supports thresholding relative to the local RMS. This is useful when the RMS varies strongly over the field of view. The most clear use-case for local RMS thresholding is for cleaning images that contain strong calibration artefacts. In this case, strong sources might generate strong artefacts. Those artefacts might be much stronger than faint sources elsewhere in the field of view. To be able to clean those faint sources, but not clean the artefacts, local RMS thresholding is required.
+Since [WSClean 2.3](Changelog-2.3), WSClean supports settings thresholding levels that are relative to the local RMS. This is useful when the RMS varies strongly over the field of view. The most clear use-case for local RMS thresholding is for cleaning images that contain strong calibration artefacts. In this case, strong sources might generate strong artefacts. Those artefacts might be much stronger than faint sources elsewhere in the field of view. To be able to clean those faint sources, but not clean the artefacts, local RMS thresholding is required.

 There are two ways of using local RMS thresholding:

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">André Offringa</dc:creator><pubDate>Wed, 09 Aug 2017 11:47:49 -0000</pubDate><guid>https://sourceforge.net3d30a7b7daca2ac6434f638d01788b68d2ff3d93</guid></item><item><title>LocalRMSThresholding modified by André Offringa</title><link>https://sourceforge.net/p/wsclean/wiki/LocalRMSThresholding/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -35,7 +35,7 @@
 A pre-existing RMS map can be supplied with the `-rms-background-image` parameter, like this:

     :::bash
-    wsclean -size 1024 1024 -scale 10asec -rms-background-image rmsmap.fits 
+    wsclean -size 1024 1024 -scale 10asec -rms-background-image rmsmap.fits \
       -auto-threshold 3 -mgain 0.8 -niter 1000000 [...] observation.ms

 The input map (`rmsmap.fits` in this case) will have to have the size of the (trimmed) output image.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">André Offringa</dc:creator><pubDate>Wed, 01 Mar 2017 14:12:09 -0000</pubDate><guid>https://sourceforge.netadeef2477136ddc09e582cfc5862b613dce73835</guid></item><item><title>LocalRMSThresholding modified by André Offringa</title><link>https://sourceforge.net/p/wsclean/wiki/LocalRMSThresholding/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -11,21 +11,23 @@
 When WSClean is asked to use a local RMS without supplying an RMS image, WSClean will generate an RMS map. This is done every major iteration, before the clean loop is called. A typical run looks like this:

     :::bash
-    wsclean -size 1024 1024 -rms-background -auto-threshold 3 ... observation.ms
+    wsclean -size 1024 1024 scale 10asec -rms-background \
+      -auto-threshold 3 -mgain 0.8 -niter 1000000 [...] observation.ms

-The local RMS thresholding is typically to be used together with the `-auto-threshold` parameter. While it is possible to combine it with a normal `-threshold` parameter, which will scale the threshold relatively to the minimum in the RMS map, this is not recommended. Local RMS thresholding can also be used together with auto-masking, using the `-auto-mask` parameter. A typical run to do this would look like this:
+The local RMS thresholding is typically to be used together with the `-auto-threshold` parameter. While it is possible to combine it with a normal `-threshold` parameter, which will scale the threshold relatively to the minimum in the RMS map, this is not recommended. Local RMS thresholding can also be used together with [automatic masking](Masking) using the `-auto-mask` parameter. A typical run to do this looks like this:

     :::bash
-    wsclean -size 1024 1024 -rms-background -auto-threshold 0.3 -auto-mask 3 \
-      -multiscale ... observation.ms
+    wsclean -size 1024 1024 scale 10asec -rms-background \
+      -auto-threshold 0.3 -auto-mask 3 -mgain 0.8 -niter 1000000 \
+      -multiscale [...] observation.ms

 Note that the `-rms-background` parameter will be renamed to `-local-rms` in WSClean 2.4.

 The default configuration is to calculate the RMS over a Gaussian kernel with dimensions of 25 times the PSF. This value can be changed with the `-rms-background-window` (`-local-rms-window`) option, for example:

     :::bash
-    wsclean -size 1024 1024 -rms-background -rms-background-window 10 -auto-threshold 3 \
-      ... observation.ms
+    wsclean -size 1024 1024 scale 10asec -rms-background -rms-background-window 10 \
+      -auto-threshold 3 -mgain 0.8 -niter 1000000 [...] observation.ms

 Instead of just using the RMS, it is also possible to use a combination of the local RMS and the negated minimum pixel. The formula used for this is max(window_rms, -1.5/5 x window_min) . This can be selected by adding `-rms-background-method rms-with-min`. We have not seen much difference between using the normal local RMS or this combined quantity.

@@ -33,8 +35,8 @@
 A pre-existing RMS map can be supplied with the `-rms-background-image` parameter, like this:

     :::bash
-    wsclean -size 1024 1024 -rms-background-image rmsmap.fits -auto-threshold 3 \
-      ... observation.ms
+    wsclean -size 1024 1024 -scale 10asec -rms-background-image rmsmap.fits 
+      -auto-threshold 3 -mgain 0.8 -niter 1000000 [...] observation.ms

 The input map (`rmsmap.fits` in this case) will have to have the size of the (trimmed) output image.

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">André Offringa</dc:creator><pubDate>Wed, 01 Mar 2017 14:11:52 -0000</pubDate><guid>https://sourceforge.net3020154e54ac0f6c9996d4fae847e84901e2ef32</guid></item><item><title>LocalRMSThresholding modified by André Offringa</title><link>https://sourceforge.net/p/wsclean/wiki/LocalRMSThresholding/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -17,16 +17,25 @@

     :::bash
     wsclean -size 1024 1024 -rms-background -auto-threshold 0.3 -auto-mask 3 \
-    -multiscale ... observation.ms
+      -multiscale ... observation.ms

 Note that the `-rms-background` parameter will be renamed to `-local-rms` in WSClean 2.4.

 The default configuration is to calculate the RMS over a Gaussian kernel with dimensions of 25 times the PSF. This value can be changed with the `-rms-background-window` (`-local-rms-window`) option, for example:

     :::bash
-    wsclean -size 1024 1024 -rms-background -rms-background-window 10 -auto-threshold 3 ... observation.ms
+    wsclean -size 1024 1024 -rms-background -rms-background-window 10 -auto-threshold 3 \
+      ... observation.ms

 Instead of just using the RMS, it is also possible to use a combination of the local RMS and the negated minimum pixel. The formula used for this is max(window_rms, -1.5/5 x window_min) . This can be selected by adding `-rms-background-method rms-with-min`. We have not seen much difference between using the normal local RMS or this combined quantity.

 ### Using a pre-existing RMS map
-A pre-existing RMS map can be supplied with the `-
+A pre-existing RMS map can be supplied with the `-rms-background-image` parameter, like this:
+
+    :::bash
+    wsclean -size 1024 1024 -rms-background-image rmsmap.fits -auto-threshold 3 \
+      ... observation.ms
+      
+The input map (`rmsmap.fits` in this case) will have to have the size of the (trimmed) output image.
+
+A typical use-case for this is to supply an RMS map created by a source detector. Generally, to use this method, it is required to image the field twice. Also, when an automatically-created RMS map is used instead of a fixed pre-made map, WSClean will adapt the RMS map each major iteration, and in most cases the automatic RMS map will therefore be more accurate compared to a partially cleaned RMS map created by (for example) a source detector. The pre-existing RMS map should therefore normally not be the first choice, but there are probably cases where it *is* useful.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">André Offringa</dc:creator><pubDate>Wed, 01 Mar 2017 14:05:39 -0000</pubDate><guid>https://sourceforge.neta9be19306c28a7d3c1a3e29aeec18d34ae20d06e</guid></item><item><title>LocalRMSThresholding modified by André Offringa</title><link>https://sourceforge.net/p/wsclean/wiki/LocalRMSThresholding/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Since &lt;a class="" href="/p/wsclean/wiki/Changelog-2.3/"&gt;WSClean 2.3&lt;/a&gt;, WSClean supports thresholding relative to the local RMS. This is useful when the RMS varies strongly over the field of view. The most clear use-case for local RMS thresholding is for cleaning images that contain strong calibration artefacts. In this case, strong sources might generate strong artefacts. Those artefacts might be much stronger than faint sources elsewhere in the field of view. To be able to clean those faint sources, but not clean the artefacts, local RMS thresholding is required.&lt;/p&gt;
&lt;p&gt;There are two ways of using local RMS thresholding:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;WSClean can automatically generate an RMS map; or&lt;/li&gt;
&lt;li&gt;An pre-made RMS map can be supplied to WSClean.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The two cases will be described in the sections below.&lt;/p&gt;
&lt;h3 id="automatically-generated-rms-map"&gt;Automatically generated RMS map&lt;/h3&gt;
&lt;p&gt;When WSClean is asked to use a local RMS without supplying an RMS image, WSClean will generate an RMS map. This is done every major iteration, before the clean loop is called. A typical run looks like this:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;wsclean -size &lt;span class="m"&gt;1024&lt;/span&gt; &lt;span class="m"&gt;1024&lt;/span&gt; -rms-background -auto-threshold &lt;span class="m"&gt;3&lt;/span&gt; ... observation.ms
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;The local RMS thresholding is typically to be used together with the &lt;code&gt;-auto-threshold&lt;/code&gt; parameter. While it is possible to combine it with a normal &lt;code&gt;-threshold&lt;/code&gt; parameter, which will scale the threshold relatively to the minimum in the RMS map, this is not recommended. Local RMS thresholding can also be used together with auto-masking, using the &lt;code&gt;-auto-mask&lt;/code&gt; parameter. A typical run to do this would look like this:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;wsclean -size &lt;span class="m"&gt;1024&lt;/span&gt; &lt;span class="m"&gt;1024&lt;/span&gt; -rms-background -auto-threshold 0.3 -auto-mask &lt;span class="m"&gt;3&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
-multiscale ... observation.ms
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Note that the &lt;code&gt;-rms-background&lt;/code&gt; parameter will be renamed to &lt;code&gt;-local-rms&lt;/code&gt; in WSClean 2.4.&lt;/p&gt;
&lt;p&gt;The default configuration is to calculate the RMS over a Gaussian kernel with dimensions of 25 times the PSF. This value can be changed with the &lt;code&gt;-rms-background-window&lt;/code&gt; (&lt;code&gt;-local-rms-window&lt;/code&gt;) option, for example:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;wsclean -size &lt;span class="m"&gt;1024&lt;/span&gt; &lt;span class="m"&gt;1024&lt;/span&gt; -rms-background -rms-background-window &lt;span class="m"&gt;10&lt;/span&gt; -auto-threshold &lt;span class="m"&gt;3&lt;/span&gt; ... observation.ms
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Instead of just using the RMS, it is also possible to use a combination of the local RMS and the negated minimum pixel. The formula used for this is max(window_rms, -1.5/5 x window_min) . This can be selected by adding &lt;code&gt;-rms-background-method rms-with-min&lt;/code&gt;. We have not seen much difference between using the normal local RMS or this combined quantity.&lt;/p&gt;
&lt;h3 id="using-a-pre-existing-rms-map"&gt;Using a pre-existing RMS map&lt;/h3&gt;
&lt;p&gt;A pre-existing RMS map can be supplied with the `-&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">André Offringa</dc:creator><pubDate>Wed, 01 Mar 2017 13:58:09 -0000</pubDate><guid>https://sourceforge.netcabd6e0e7cb15835c51f972af7b2ce19a39f398a</guid></item></channel></rss>