<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to BasicCleaning</title><link>https://sourceforge.net/p/wsclean/wiki/BasicCleaning/</link><description>Recent changes to BasicCleaning</description><atom:link href="https://sourceforge.net/p/wsclean/wiki/BasicCleaning/feed" rel="self"/><language>en</language><lastBuildDate>Tue, 27 Feb 2018 16:14:15 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/wsclean/wiki/BasicCleaning/feed" rel="self" type="application/rss+xml"/><item><title>BasicCleaning modified by André Offringa</title><link>https://sourceforge.net/p/wsclean/wiki/BasicCleaning/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v9
+++ v10
@@ -1,5 +1,5 @@
 ### Image dimensions
-To be written.
+The image size is set in pixels with the `-size` parameter, which takes a width and an height. An image is not required to be square shaped. It is however highly recommended to use even numbers for width and height: odd image dimensions can result in cleaning artefacts. The `-size` parameter sets the angular size of the image together with the `-scale` parameter, which takes an angle and sets the angular size of a single pixel. The pixel scale currently has to be square shaped.

 ### Threshold and maximum number of iterations
 The basic required parameters for cleaning are `threshold` and `niter`. Threshold defines where to stop cleaning: WSClean will continue cleaning until the peak residual flux is below the given threshold. It is given in Jy. The `niter` parameter sets the maximum number of minor iterations that are allowed to be used.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">André Offringa</dc:creator><pubDate>Tue, 27 Feb 2018 16:14:15 -0000</pubDate><guid>https://sourceforge.nete854035690f6c2cf0819bf4a92c13c278f3860cb</guid></item><item><title>BasicCleaning modified by André Offringa</title><link>https://sourceforge.net/p/wsclean/wiki/BasicCleaning/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v8
+++ v9
@@ -23,4 +23,6 @@

 When `-mgain` is not given, or when it is set to 1, WSClean will never go back to the visibilities. It will therefore perform a simple image-based Högbom clean. While this is fast, it limits the accuracy of the image and the dynamic range that can be reached. WSClean will also not write to the MODEL column, as would be required for self-calibration (see the [self-calibration manual page](WSCleanAndSelfcal)). To nevertheless use Högbom cleam, while still filling the model column, one can either use an mgain of e.g. 0.9999, or one can [predict the final model](Prediction) in a second WSClean run.

+Note that the `-mgain` parameter is not the same as the `-gain`  parameter. The latter sets the minor loop cleaning gain, and is 0.1 by default.
+
 **Next chapter: [Prediction](Prediction)**
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">André Offringa</dc:creator><pubDate>Fri, 19 May 2017 06:45:32 -0000</pubDate><guid>https://sourceforge.net0f59dcf2f34509f79bd02115bd2fd2f99a35abc9</guid></item><item><title>BasicCleaning modified by André Offringa</title><link>https://sourceforge.net/p/wsclean/wiki/BasicCleaning/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v7
+++ v8
@@ -7,7 +7,7 @@
 It is good practice to make sure cleaning has reached the threshold, and only use niter to make sure wsclean will not run for an excessively long time. One should also not clean deeper than the noise, unless a mask is used. A typical stopping criterium is 3 x stddev, where stddev is the standard deviation of the noise in the image. The easiest way of setting a stopping criterium based on the noise, is by using an automatic threshold. This is discussed next.

 ### Automatic threshold
-To set the deconvolution threshold, one would need to know the level of the noise before running the clean. For automated processing, this is undesirable. Therefore, WSClean can automatically set a threshold based on the residual noise level. The option for this is `-auto-threshold`. With this option, WSClean will calculate the standard deviation of the residual image before the start of every major deconvolution iteration, and clean up to the given factor times the found noise standard deviation. The standard deviation is calculated using the medium absolute deviation, which is a robust estimator that is not very sensitive to source structure still present in the image. An example:
+To set the deconvolution threshold, one would need to know the level of the noise before running the clean. For automated processing, this is undesirable. Therefore, WSClean can automatically set a threshold based on the residual noise level. The option for this is `-auto-threshold`. With this option, WSClean will calculate the standard deviation of the residual image before the start of every major deconvolution iteration, and clean up to the given factor times the found noise standard deviation. The standard deviation is calculated using the medium absolute deviation, which is a robust estimator that is not very sensitive to source structure still present in the image. When performing [wideband](WidebandDeconvolution) and/or [polarized deconvolution](PolarizedCleaning), the RMS is measured from the integrated image. An example:

     :::bash
     # Clean to a 3 sigma noise level
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">André Offringa</dc:creator><pubDate>Mon, 08 May 2017 08:20:35 -0000</pubDate><guid>https://sourceforge.netd72a8d8a755c26a3981a23e299aeecfa7177965d</guid></item><item><title>BasicCleaning modified by André Offringa</title><link>https://sourceforge.net/p/wsclean/wiki/BasicCleaning/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v6
+++ v7
@@ -7,7 +7,7 @@
 It is good practice to make sure cleaning has reached the threshold, and only use niter to make sure wsclean will not run for an excessively long time. One should also not clean deeper than the noise, unless a mask is used. A typical stopping criterium is 3 x stddev, where stddev is the standard deviation of the noise in the image. The easiest way of setting a stopping criterium based on the noise, is by using an automatic threshold. This is discussed next.

 ### Automatic threshold
-To set the deconvolution threshold, one would need to know the level of the noise before running the clean. For automated processing, this is undesirable. Therefore, WSClean can automatically set a threshold based on the residual noise level. The option for this is `-auto-threshold`. With this option, WSClean will calculate the standard deviation of the residual image before the start of every major deconvolution iteration, and clean up to the given factor times the found noise standard deviation. The standard deviation is calculated using the medium absolute deviation, which is a robust estimator that is not very sensitive to source structure still present in the image. For example:
+To set the deconvolution threshold, one would need to know the level of the noise before running the clean. For automated processing, this is undesirable. Therefore, WSClean can automatically set a threshold based on the residual noise level. The option for this is `-auto-threshold`. With this option, WSClean will calculate the standard deviation of the residual image before the start of every major deconvolution iteration, and clean up to the given factor times the found noise standard deviation. The standard deviation is calculated using the medium absolute deviation, which is a robust estimator that is not very sensitive to source structure still present in the image. An example:

     :::bash
     # Clean to a 3 sigma noise level
&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:28:55 -0000</pubDate><guid>https://sourceforge.net0706932664ed2c1ac39f6366584a2f2d69480fa1</guid></item><item><title>BasicCleaning modified by André Offringa</title><link>https://sourceforge.net/p/wsclean/wiki/BasicCleaning/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v5
+++ v6
@@ -4,7 +4,7 @@
 ### Threshold and maximum number of iterations
 The basic required parameters for cleaning are `threshold` and `niter`. Threshold defines where to stop cleaning: WSClean will continue cleaning until the peak residual flux is below the given threshold. It is given in Jy. The `niter` parameter sets the maximum number of minor iterations that are allowed to be used.

-It is good practice to make sure clean is finished up to the threshold, and only use niter to make sure wsclean will not run for an excessively long time. One should also not clean deeper than the noise, unless a mask is used. A typical stopping criterium is 3 x stddev, where stddev is the standard deviation of the noise in the image. The easiest way of setting a stopping criterium based on the noise, is by using an automatic threshold. This is discussed next.
+It is good practice to make sure cleaning has reached the threshold, and only use niter to make sure wsclean will not run for an excessively long time. One should also not clean deeper than the noise, unless a mask is used. A typical stopping criterium is 3 x stddev, where stddev is the standard deviation of the noise in the image. The easiest way of setting a stopping criterium based on the noise, is by using an automatic threshold. This is discussed next.

 ### Automatic threshold
 To set the deconvolution threshold, one would need to know the level of the noise before running the clean. For automated processing, this is undesirable. Therefore, WSClean can automatically set a threshold based on the residual noise level. The option for this is `-auto-threshold`. With this option, WSClean will calculate the standard deviation of the residual image before the start of every major deconvolution iteration, and clean up to the given factor times the found noise standard deviation. The standard deviation is calculated using the medium absolute deviation, which is a robust estimator that is not very sensitive to source structure still present in the image. 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, 01 Mar 2017 14:26:21 -0000</pubDate><guid>https://sourceforge.net0b5d9fa20e729a1350149303ed3523d97b330276</guid></item><item><title>BasicCleaning modified by André Offringa</title><link>https://sourceforge.net/p/wsclean/wiki/BasicCleaning/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -22,3 +22,5 @@
 The `-mgain` parameter sets the major iteration gain: during every major iteration, the peak is reduces by the given factor. With an `mgain` of 0.8, the peak is reduced by 80%. This is quite a common and save option for cleaning. With a reasonable good PSF, using 0.9 is possible without lose of accuracy, and a bit faster. With a very bad PSF, it might be necessary to lower the `mgain` parameter.

 When `-mgain` is not given, or when it is set to 1, WSClean will never go back to the visibilities. It will therefore perform a simple image-based Högbom clean. While this is fast, it limits the accuracy of the image and the dynamic range that can be reached. WSClean will also not write to the MODEL column, as would be required for self-calibration (see the [self-calibration manual page](WSCleanAndSelfcal)). To nevertheless use Högbom cleam, while still filling the model column, one can either use an mgain of e.g. 0.9999, or one can [predict the final model](Prediction) in a second WSClean run.
+
+**Next chapter: [Prediction](Prediction)**
&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:01:42 -0000</pubDate><guid>https://sourceforge.net5e433c7f957bde08db507e889f51b56d459b2058</guid></item><item><title>BasicCleaning modified by André Offringa</title><link>https://sourceforge.net/p/wsclean/wiki/BasicCleaning/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -21,4 +21,4 @@
 ### Using Cotton-Schwab: the `-mgain` parameter
 The `-mgain` parameter sets the major iteration gain: during every major iteration, the peak is reduces by the given factor. With an `mgain` of 0.8, the peak is reduced by 80%. This is quite a common and save option for cleaning. With a reasonable good PSF, using 0.9 is possible without lose of accuracy, and a bit faster. With a very bad PSF, it might be necessary to lower the `mgain` parameter.

-When `-mgain` is not given, or when it is set to 1, WSClean will never go back to the visibilities. It will therefore perform a simple image-based Högbom clean. While this is fast, it limits the accuracy of the image and the dynamic range that can be reached. WSClean will also not write to the MODEL column, as would be required for self-calibration (see the [self-calibration manual page](WSCleanAndSelfcal)). To use Högbom cleam but nevertheless, while still filling the model column, one can either use an mgain of e.g. 0.9999, or one can [predict the final model](Prediction) in a second WSClean run.
+When `-mgain` is not given, or when it is set to 1, WSClean will never go back to the visibilities. It will therefore perform a simple image-based Högbom clean. While this is fast, it limits the accuracy of the image and the dynamic range that can be reached. WSClean will also not write to the MODEL column, as would be required for self-calibration (see the [self-calibration manual page](WSCleanAndSelfcal)). To nevertheless use Högbom cleam, while still filling the model column, one can either use an mgain of e.g. 0.9999, or one can [predict the final model](Prediction) in a second WSClean run.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">André Offringa</dc:creator><pubDate>Tue, 15 Nov 2016 08:53:46 -0000</pubDate><guid>https://sourceforge.neta3ff37bbeb58ff0c977ebcab0d21048a6cdd1e68</guid></item><item><title>BasicCleaning modified by André Offringa</title><link>https://sourceforge.net/p/wsclean/wiki/BasicCleaning/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -16,6 +16,8 @@

 Note that the `-mgain` parameter is used, in order to enable the Cotton-Schwab style major iterations. While this is not necessary for the automatic threshold to work, if the image has a very high dynamic range, the initially computed standard deviation might not be a good estimate. By using Cotton-Schwab, the standard deviation is recalculated at the beginning of every major iteration, and this will be more accurate. The `-mgain` parameter is discussed in more detail in the next section.

+One can also specify both an automatic threshold and a manual threshold. In this case, whenever one of the thresholds is reached, the cleaning stops.
+
 ### Using Cotton-Schwab: the `-mgain` parameter
 The `-mgain` parameter sets the major iteration gain: during every major iteration, the peak is reduces by the given factor. With an `mgain` of 0.8, the peak is reduced by 80%. This is quite a common and save option for cleaning. With a reasonable good PSF, using 0.9 is possible without lose of accuracy, and a bit faster. With a very bad PSF, it might be necessary to lower the `mgain` parameter.

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">André Offringa</dc:creator><pubDate>Fri, 04 Nov 2016 08:33:40 -0000</pubDate><guid>https://sourceforge.net4b74ee14e9c50e2d06640d3797e478436945b520</guid></item><item><title>BasicCleaning modified by André Offringa</title><link>https://sourceforge.net/p/wsclean/wiki/BasicCleaning/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,3 +1,6 @@
+### Image dimensions
+To be written.
+
 ### Threshold and maximum number of iterations
 The basic required parameters for cleaning are `threshold` and `niter`. Threshold defines where to stop cleaning: WSClean will continue cleaning until the peak residual flux is below the given threshold. It is given in Jy. The `niter` parameter sets the maximum number of minor iterations that are allowed to be used.

@@ -14,3 +17,6 @@
 Note that the `-mgain` parameter is used, in order to enable the Cotton-Schwab style major iterations. While this is not necessary for the automatic threshold to work, if the image has a very high dynamic range, the initially computed standard deviation might not be a good estimate. By using Cotton-Schwab, the standard deviation is recalculated at the beginning of every major iteration, and this will be more accurate. The `-mgain` parameter is discussed in more detail in the next section.

 ### Using Cotton-Schwab: the `-mgain` parameter
+The `-mgain` parameter sets the major iteration gain: during every major iteration, the peak is reduces by the given factor. With an `mgain` of 0.8, the peak is reduced by 80%. This is quite a common and save option for cleaning. With a reasonable good PSF, using 0.9 is possible without lose of accuracy, and a bit faster. With a very bad PSF, it might be necessary to lower the `mgain` parameter.
+
+When `-mgain` is not given, or when it is set to 1, WSClean will never go back to the visibilities. It will therefore perform a simple image-based Högbom clean. While this is fast, it limits the accuracy of the image and the dynamic range that can be reached. WSClean will also not write to the MODEL column, as would be required for self-calibration (see the [self-calibration manual page](WSCleanAndSelfcal)). To use Högbom cleam but nevertheless, while still filling the model column, one can either use an mgain of e.g. 0.9999, or one can [predict the final model](Prediction) in a second WSClean run.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">André Offringa</dc:creator><pubDate>Fri, 04 Nov 2016 08:32:08 -0000</pubDate><guid>https://sourceforge.net26169fe961d6752370683dd34a96d35c94bc688f</guid></item><item><title>BasicCleaning modified by André Offringa</title><link>https://sourceforge.net/p/wsclean/wiki/BasicCleaning/</link><description>&lt;div class="markdown_content"&gt;&lt;h3 id="threshold-and-maximum-number-of-iterations"&gt;Threshold and maximum number of iterations&lt;/h3&gt;
&lt;p&gt;The basic required parameters for cleaning are &lt;code&gt;threshold&lt;/code&gt; and &lt;code&gt;niter&lt;/code&gt;. Threshold defines where to stop cleaning: WSClean will continue cleaning until the peak residual flux is below the given threshold. It is given in Jy. The &lt;code&gt;niter&lt;/code&gt; parameter sets the maximum number of minor iterations that are allowed to be used.&lt;/p&gt;
&lt;p&gt;It is good practice to make sure clean is finished up to the threshold, and only use niter to make sure wsclean will not run for an excessively long time. One should also not clean deeper than the noise, unless a mask is used. A typical stopping criterium is 3 x stddev, where stddev is the standard deviation of the noise in the image. The easiest way of setting a stopping criterium based on the noise, is by using an automatic threshold. This is discussed next.&lt;/p&gt;
&lt;h3 id="automatic-threshold"&gt;Automatic threshold&lt;/h3&gt;
&lt;p&gt;To set the deconvolution threshold, one would need to know the level of the noise before running the clean. For automated processing, this is undesirable. Therefore, WSClean can automatically set a threshold based on the residual noise level. The option for this is &lt;code&gt;-auto-threshold&lt;/code&gt;. With this option, WSClean will calculate the standard deviation of the residual image before the start of every major deconvolution iteration, and clean up to the given factor times the found noise standard deviation. The standard deviation is calculated using the medium absolute deviation, which is a robust estimator that is not very sensitive to source structure still present in the image. For example:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="c"&gt;# Clean to a 3 sigma noise level&lt;/span&gt;
wsclean -auto-threshold &lt;span class="m"&gt;3&lt;/span&gt; -size &lt;span class="m"&gt;2048&lt;/span&gt; &lt;span class="m"&gt;2048&lt;/span&gt; -scale 1amin &lt;span class="se"&gt;\&lt;/span&gt;
  -mgain 0.8 -niter &lt;span class="m"&gt;50000&lt;/span&gt; observation.ms
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Note that the &lt;code&gt;-mgain&lt;/code&gt; parameter is used, in order to enable the Cotton-Schwab style major iterations. While this is not necessary for the automatic threshold to work, if the image has a very high dynamic range, the initially computed standard deviation might not be a good estimate. By using Cotton-Schwab, the standard deviation is recalculated at the beginning of every major iteration, and this will be more accurate. The &lt;code&gt;-mgain&lt;/code&gt; parameter is discussed in more detail in the next section.&lt;/p&gt;
&lt;h3 id="using-cotton-schwab-the-mgain-parameter"&gt;Using Cotton-Schwab: the &lt;code&gt;-mgain&lt;/code&gt; parameter&lt;/h3&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">André Offringa</dc:creator><pubDate>Fri, 04 Nov 2016 08:10:32 -0000</pubDate><guid>https://sourceforge.net11e0f5a821ec830a379b1049e01f78a400aa0dc2</guid></item></channel></rss>