<casaxml xsi:schemaLocation="http://casa.nrao.edu/schema/casa.xsd file:///opt/casa/code/xmlcasa/xml/casa.xsd" xmlns="http://casa.nrao.edu/schema/psetTypes.html" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<task type="function" name="simanalyze" category="simulation">
<shortdescription>image and analyze measurement sets created with simobserve</shortdescription>
This task is for imaging and analyzing MeasurementSets simulated with simobserve or simalma.
It consists of two main steps, controlled by the image and analyze parameters.
-------------------------------
Output produced: (not all will always exist, depending on input parameters)
To support different runs with different arrays, the names have the
configuration name from antennalist appended.
-------------------------------
[project].[cfg].image = synthesized image
[project].[cfg].residual = residual image after cleaning
[project].[cfg].pb = primary beam
[project].[cfg].image.pbcor = synthesized image corrected for primary beam attenuation
[project].[cfg].psf = synthesized (dirty) beam calculated from weighted uv distribution
[project].[cfg].mask = clean mask
[project].[cfg].model = sky brightness model
[project].[cfg].sumwt = single pixel image containing sum-of-weights
[project].[cfg].weight = Fourier transform of gridder weights, or un-normalized sum of PB-square (for all pointings)
[project].[cfg].tclean.last = parameter file of what parameters were used in the tclean task; also generated by simutil even when dryrun=True
[project].[cfg].skymodel.flat.regrid.conv = input sky regridded to match the output image, and convolved with the output clean beam
[project].[cfg].fidelity = fidelity image
[project].[cfg].image.png = diagnostic figure of clean image and residual
[project].[cfg].analysis.png = diagnostic figure of difference and fidelity
[project].[cfg].diff = difference image between flattened convolved model and flattened output
[project].[cfg].image.flat = 2D integrated intensity image, not corrected for primary beam; see simutil.modifymodel
[project].[cfg].simanalyze.last = saved input parameters for simanalyze task, available in CASAshell
-------------------------------
"project" needs to be the directory of results generated by running
simobserve or simalma. In particular $project/$project.skymodel
will be required in order to compare output and input images.
NOTE: simanalyze was designed to be used after one or more runs of
simobserve, and as such it assumes it will be able to find a
sky model image called $project/$project.skymodel, .newmodel, or
.compskymodel in the $project/ subdirectory. If the simulated
MS has been created by means other than simply calling simobserve,
the user may have to copy their sky model image into the $project
subdirectory and call it "$project.skymodel".
interactive clean or use of more parameters than the subset
visible here are available by simply running the tclean task directly,
then using simanalyze in the mode image=False (see below).
Sometimes it is preferable to grid the single dish MS using the
sdimaging task for more control. In that case one can input
the resulting single dish imaging under "featherimage", only
put interferometric MSs in "vis", and simanalyze will clean the
interferometric and feather with your "featherimage".
uses Cotton-Schwab clean for single fields and Mosaic gridding
for multiple fields (with Clark PSF calculation in minor cycles).