MIRIAD 's CLEAN task -- surprisingly called clean -- implements the Högbom, Clark and SDI algorithms. Given an input dirty image and beam, it produces an output CLEAN component image which has flux density units of Jy/pixel. This CLEAN component image is CLEAN's best guess at what the source really looks like. Invariably its extrapolation at high spatial frequencies is very poor (and probably a reason why AIPS does not make it easy to view it). To reduce the undesirable effects of this extrapolation, and to add in any emission remaining in the residuals, you will need to use the task restor . This gives you what is normally thought of as the `CLEAN' or restored image.
The various input parameters to clean are:
mode
parameter can be set to indicate the particular
algorithm to use. Possible values are `hogbom', `clark', `steer' or
`any' (the default). With `any', clean
determines what it believes is
the best algorithm for your particular image. In this case, clean
can
switch between different algorithms, as the nature of the residuals change.
This is particularly useful when CLEANing a large image which contains some
strong point sources and much lower brightness extended emission. In this case,
clean
may well switch from a Clark or Högbom algorithm to the SDI
algorithm when it finds that the residuals are becoming very smooth.
Generally you can allow clean to choose the algorithm. Task clean
will override your choice if you attempt to use the Högbom algorithm on an image that is too big.
to limit the CLEAN region to an area one quarter that of the beam, and
to make it fit snugly around the real emission. The
region
parameter can be used to describe quite complex CLEANing
regions. See Section 6.3 on how to specify this common
parameter. Alternatively, you can use task cgcurs
to describe
the region interactively from a display of an image on a PGPLOT device.
Task cgcurs
(see Chapter 16.2) produces a text file,
cgcurs.region
, describing the region selected, which you can then
input to clean
(see Section 2.5). For example:
region=@cgcurs.regionThe default CLEAN region is the inner quarter of the image.
For very dirty dirty images, you might initially have only a very poor knowledge of where your emission is. In this case, CLEAN can be somewhat iterative. On your first CLEAN, you make an initial estimate of the region containing emission. Having produced a restored image, you then use this to get a better estimate of the region containing emission. You CLEAN again, and so on.
cutoff
. Alternatively, you
can tell clean
to stop when it encounters the first
negative component, by using the options=negstop switch. Otherwise,
CLEANing will proceed until niters CLEAN iterations have been
performed. When CLEANing a cube, niters
is the number of
iterations per plane. For small and simple sources, a few hundred
iterations are usually sufficient. For complicated and large sources,
you can CLEAN forever.
You can set all three of cutoff, options=negstop and niters. Task clean will stop when any one of these stopping criteria are satisfied.
model
parameter to the name of the old output CLEAN component
image, and setting the out
parameter to a new name. Actually the
model
image need not have been produced by clean
-- it can be
any image with units of Jy/pixel. Of course, it should be a representation of
your source. The model
image, however, must align exactly with the
region being CLEANed ( i.e. same pixel increments, and same size as the
bounding box of the selected region).
speed
to some small negative number -- typically -1 is good.
The default is 0.
minpatch
is the
minimum full width ( not half-width, as it is in AIPS
) of the beam patch
used in the minor cycle. The default is 51. However, for ATCA work, where
the beam can often have large distant sidelobes, and so this value may be too
small.
Setting minpatch
to larger values will slow the
algorithm, but may avoid CLEAN striping problems. The maximum value that
clean
will accept is 257 -- larger values will be trimmed back to
257.
clip
times the
peak flux density are considered to represent true structure, and so are taken
as components for that iteration. Typically the clip level is 0.9. The
default that clean
computes is image dependent, and will be a
function of how many pixels there are across the beam. The default
value is usually adequate.
Typical inputs are given below:
The total CLEANed flux density ( i.e. the cumulative sum of the CLEAN components) should eventually settle down to a roughly constant number. This indicates that you are just picking up noise, and that there are no sidelobes left to remove. If the total CLEANed flux density starts to decrease again, this usually indicates that you have been a bit heavy handed, and CLEANed too much. You might also look at the result and see if you can see any sidelobes left over.
Having completed clean , you will almost certainly want to ``restore'' your image -- see Section 13.4.