next up previous
Next: Example Up: XIMGFIT v0.999 Manual Previous: Automation

Removing Sources

The rmsrc command performs the function of removing a source from the original input image. While other programs also do this, the advantage here is that the remaining model components are used to replace the pixels rather than a simple interpolation. The value of the ``residual'' model is used as a Poissonian mean to generate a new pixel value that accordingly includes counting statistics. This results in fairly realistic looking images, but also facilitates a Monte Carlo approach towards determining the statistical significance of a feature such as diffuse emission underlying several point sources. This command operates on the full input image, not just the subimage specified in the data command, however only pixels in the subimage region are affected. In this way, point sources in a large image can be fitted using only a small subimage and then removed. Along these lines, an input image can be specified since when removing several sources, the result of the last source removal should be used for input image for the removal of the next source. An optional minimum counts parameter determines where the source removal takes place. The difference between the old and new model images is summed and the remove operation is completed only if diffcnts $>$ mincnts. Either way an image is outputed to make life easier for scripts do batch-processing removal of a large number of sources. The script remove_src.sh is a sh script to run ximgfit, subtract a source from a fits image, and save the result in a new image. This script can then be run repeatedly to remove a set of sources stored in several ximgfit save files.

Subsections
next up previous
Next: Example Up: XIMGFIT v0.999 Manual Previous: Automation
Andrew Ptak 2001-10-11