WSClean is a command line program. The "wsclean
" executable accepts many parameters. The "wsclean
" program can be run without parameters to get a list of allowed parameters together with a short description. The general syntax of wsclean is as follows:
wsclean [-options] <obs1.ms> [<obs2.ms> ..]
Here's an example of a typical MWA run:
# Make a Stokes I image of size 3072x3072 with 0.7' pixels, do 10000 iterations, # use CS cleaning and stop when the peak flux has reached 3σ level. wsclean -size 3072 3072 -scale 0.7amin -niter 10000 \ -mgain 0.8 -auto-threshold 3 obs.ms
This performs a Cotton-Schwab clean. The Cotton-Schwab algorithm is enabled with the "-mgain 0.8
" parameter, which means that the peak flux is reduced by 80% until a new major iteration is started. Multiple measurement sets can be specified on the command line to image the integration of those observations.
For fast imaging with somewhat less accuracy, you can perform a Högbom clean and disable padding:
# Similar to above statement, but now only Högbom cleaning and no padding wsclean -size 3072 3072 -scale 0.7amin -niter 10000 \ -auto-threshold 3 -padding 1 obs.ms
Because the 'mgain
' parameter was left out, WSClean will not iteratively go back to the visibilities. This also implies that the MODEL_DATA column will not be filled (see self-calibration with WSClean for more info).
A description of the basic cleaning parameters is given on the manual page for basic cleaning.
As a more enhanced example, Natasha Hurley-Walker has been imaging GLEAM data with the following command:
wsclean -name ${obsname} -size 4000 4000 -niter 40000 -threshold 0.3 -pol xx,yy \ -weight briggs -1.0 -scale 0.0125 -absmem 128 -join-polarizations \ -j 12 -mgain 0.95 1068210256.ms
A little explanation of this command:
mgain
value is used because the MWA synthesized beam is well behaved.chgcentre
command prior to imaging, as described on the W-snapshot page.Next chapter: basic cleaning
Wiki & Manual: BasicCleaning
Wiki & Manual: ImageWeighting
Wiki & Manual: Introduction
Wiki & Manual: PolarizedCleaning
Wiki & Manual: WSCleanAndSelfcal
Wiki & Manual: WSnapshotAlgorithm