Return to Post-BCD pages
 
Manual Contents
 
Getting Started
 
Input Files
 
Background Matching (overlap.pl)
 
Mosaicking (mosaic.pl)
 
Point Source Extraction (apex*.pl)
 
PRF Estimate (prf_estimate.pl)
 
Basic Concepts
 
Appendix 1: Full List of MOPEX Scripts
 
Appendix 2: Fatal Bit Patterns
 
Appendix 3: Full List of MOPEX Modules

APEX Modules: Point Source Probability

Namelist Trigger: run_pointsourceprob
Output Directory Keyword: OUTPUT_DIR (apex_lframe.pl); COADD_DIR (apex.pl)
Default Output Directory:<output_dir> (apex_1frame.pl); <output_dir>/Coadd (apex.pl)
Depends on: Mosaic Coadd or the output from mosaic.pl

Important notes: The user has a choice of two possible input uncertainty images for this module - the std image or the unc image. The choices of input are not set from within this module, but are specified in the Global Parameters section of the namelist with the keywords use_std_to_detect and use_unc_to_detect. See the Discussion below for more information on input image choices.

There is also a choice of several possible data input images into this module, but the difference only becomes significant in a later module, Detect. The reason we mention it here is that this module will carry out the processing on the image specified for input into Detect, and the name of the output file wil reflect this (see Discussion below). The choice is specified in the Global Parameters section of the namelist, using the keyword use_psp_to_detect.


PURPOSE

    This module filters the input co-added image to estimate the probability at each pixel of having a point source above the noise.

PARAMETER BLOCK

    &POINTSOURCEPROB
     PRF_ResampleX_Factor = 4,
     PRF_ResampleY_Factor = 4,
     PRF_Xsize = 3,
     PRF_Ysize = 3,
     Noise_Type = 'external_noise',
     Apriori_Probability = 0.1,
    &END

INPUTS

    PRF_Resample_X(Y)_Factor: (int) the ratio of the PRF pixel size to the PRF sampling interval in the x- and y-direction.

    PRF_X(Y)size: (int) the size of the portion of the PRF image, in input pixels, used to convolve with the input image

    Noise_Type: (char) options are 'external_noise' and 'internal_noise'. The first option requires an uncertainty image. For the second option the noise is estimated from the input image.

    Apriori_Probability: (float) the lowest probability of a source. It is recommended that it be left to its default of 0.1.


OUTPUTS

    Generated FITS (*_PSP.fits or *_Filtered.fits): The output is the PSP image(s), which shows the point source probability at each pixel.

DISCUSSION

This step is performed to improve detectability of the point sources. The filtering is conceptually similar to a convolution of the input image by the PSF which is commonly done during source extraction. It can be shown that by using the ideas of maximizing SNR in the image, a filter can be derived to estimate the probability at each pixel of having a point source above the noise (see the document Bayesian Estimation of Point Source Probability (pdf)).

Here s is the input background subtracted image, σ is the input uncertainty image, which may either the unc or std image. Note that the choice of input uncertainty image is not set from within this module, but from the Global Parameters section of the namelist, using the keywords use_std_to_detect and use_unc_to_detect.

The output of this filter P(j) at pixel j can be interpreted as a probablility of having a point source above the noise at this pixel. The summation is for all pixels i within the area defined by the PRF_X,Y_SIZE parameters. The values of the probability should use the full dynamic range from Apriori_Probability to 1. If the uncertainty is not well estimated it may lead to the output of the filter either not using the whole range or having too many pixels saturated very close to 1. To prevent this from happening, the argument of the exp function is rescaled to utilize the full dynamic range.

There are several possible data input images to this module, but the difference only becomes significant in the later module Detect. The choice of input is specified in the Global Parameters keyword use_psp_to_detect where a value of 1 uses the output of this module to carry out source detection and a value of 2 uses the original background-subtracted image to carry out source detection (in both cases the output from this module is identical, and as described above). Optionally, a third choice is available, by setting use_psp_to_detect = 0. In this case, a "Filtered" image is used, defined as the product of the PSF image times the background subtracted image: F=P*s. If the Filtered image is used, the name of the output file from this module will be *_Filtered.fits instead of *_PSP.fits.





SPITZER HOME || SPITZER SCIENCE || INSTRUMENTS || SCIENCE USER SUPPORT || SEARCH

help@spitzer.caltech.edu

This file was last modified on Thu Aug 21 10:06:47 PDT 2008.

California Institute of Technology Jet Propulsion Laboratory NASA