|
Cookbook:
|
|||||||||||||||
|
Welcome to the MIPS 70 Scan Map Data Reduction Recipe. The information included here is intended to help you reduce MIPS 70 micron scan maps with uniform background and point sources. The discussion is aimed at providing some guidelines on how to extract photometry of unsaturated point sources from the filtered and mosaiced MIPS 70um images. The photometry is measured using the APEX software provided by the Spitzer Science Center. APEX can be used in either a GUI version or in a command line version. The guidelines presented here can be applied to both versions of APEX. We STRONGLY recommend that users always check the intermediate outputs, either images or tables, from APEX to make sure that their input parameters to APEX are appropriate for their specific dataset. Requirements:Outline:
I. PSF versus Aperture PhotometryAPEX can provide PSF-fitted photometry as well as aperture photometry (circular apertures). For MIPS 70 micron scan map data, we use APEX in a single frame mode, which measures photometry from a single, mosaiced image. We start with a mosaiced image, mosaic.fits, which has a corresponding coverage map called mosaic_cov.fits and an uncertainty image called mosaic_unc.fits. Because MIPS 70 micron data has a PSF of roughly 16 arcsec (FWHM), PRF fitting does a better job in separating blended sources, and also deals better with noise than aperture photometry when sources are faint. For these reasons, we recommend obtaining PRF fitted photometry if your targeted science data are point sources with moderate to low signal-to-noise.II. Determine BackgroundIn order to run APEX for PRF fitting of point sources, it is important to use a PRF that is self-consistent with the data on which source extraction will be carried out. In addition to matching pixel scales, the background in the PRF image must match that in the mosaic image. The delivered 70 micron PRF image included in the APEX package was made to be large enough to go to zero (past the first Airy ring) and the background level of the PRF image was tuned to the zero level. Users who wish to use the PRF included in the APEX package must run APEX on a background-subtracted image. There are two ways to make background subtracted images from which PRF fitting photometry can be measured:
III. Determine NoiseThe mosaic_unc.fits noise is based on SSC pipeline error propagation using bunc.fits images from the BCD products. The pipeline uncertainties were tuned to be slightly lower than the real noise in low backgrounds for the filtered products. This was done to be used as a lower limit on the noise for outlier rejection. If the input pipeline fbcd/bcd uncertainties are too large then outlier rejection will not be done properly. The pipeline uncertainties may be vastly different from the real noise for bright regions.The mosaic_std.fits is made when the BCD images are mosaiced together using MOPEX, and is based on the empirical noise in the stacked signals in each sky pixel. APEX can also estimate noise image from the mosaiced data itself. This is done by using the module called GAUSSNOISE. The noise is estimated from a pixel distribution measured from a sliding box with a user-defined number of pixels rejected as outliers. This noise image represents spatial pixel-to-pixel noise. For shallow data without any bright sources, these noise estimates should be roughly similar. For the COSMOS MIPS 70 micron data, we found that the noise map estimated from GAUSSNOISE slightly over estimates the noise. APEX needs noise images for determining the detection threshhold, as well as for computing the signal-to-noise ratio for the PRF-fitted photometry. By default, APEX uses the noise estimated from the GAUSSNOISE module to determine sources above the specified detection threshold as well as for computing the SNR of the resulting photometry. The latest version of APEX also offers another option which allows users to choose a different noise image for SNR computation. This parameter is in the APEX single frame setting --- a switch allows one to use SIGMA_FILE (i.e. mosaic_std.fits) to estimate the SNR for the output APEX tables. For the COSMOS data, we found some small differences between the noise image made by GAUSSNOISE and mosaic_std.fits. We found that mosaic_std.fits gives better estimates of SNR values. In the end, we used the noise image made by GAUSSNOISE for detection, and mosiac_std.fits for extraction. IV. Running APEXAfter sorting out background and noise issues, the next step is to determine the rest of the parameters needed for running APEX in single frame mode. First of all, one needs to choose how to do source detection. In the APEX single frame setting, APEX offers four options for source detection:
For the shallow xFLS data, the filtered image gives good results in detection, particularly for not producing false detections near bright sources. The PSP image smooths data too much. For the COSMOS data where source blending is an issue, we use the input image without background subtraction since the filtered image can smooth out faint sources near a bright source. The down-side of this choice is that some false detections near most bright sources can not be avoided. These false detections can be cleaned up manually. DETECT Detection_Max_Area=25 (~number of pixels within the FWHM of the beam, here we assume that the pixel size is 4 arcsec); make small to avoid breaking up individual sources.POINTSOURCEPROB PRF_Xsize, PRF_Ysize=11 (~2*FWHM in pixels of the beam); make large enough to yield smooth filter image from central peak inside the first airy ring. If this parameter is too small then sources may have flat-top probability distributions and no peaks may be found and/or the solutions may jump around within the source cores, i.e., need a fairly broad filtering kernel to produce a smooth PSP image.SOURCEESTIMATE Fitting_area_x/y~FWHM (5) This is set to perform the fiting over a significant fraction of the area around the peak. If this parameter is set too low, there will not be enough pixels and APEX may derive a position off the real peak.APEX returns source fluxes in micro-Jy. The conversion between PRF point source flux in micro-Jy (PS[uJy]) and the input surface brightness value in MJy/sr SB[MJy/sr] is PS[uJy] = "Conversion Factor" * "NoisePixels" * SB[MJy/sr], where the conversion factor and noise pixels are given in the APEX table headers. The conversion factor is simply the unit conversion factor from MJy/sr to uJy/pixel. The NoisePixels [NP] is from the normalization of the PRF; the central peak pixel contains 1/NP fraction of the total point-source flux (so fitted peak pixel value * NP number of pixels gives total point-source flux). If your PRF is not made well, your NP value can be in error which can yield bad PRF results. V. APEX parameters for COSMOS DataHere we provide the exact parameters that were used for the COSMOS MIPS 70um mosaiced image. This set of parameters has produced a reasonable photometry catalog.compute_uncertainties_internally = 0 have_uncertainties = 1 run_detect_medfilter = 1 run_gaussnoise = 1 run_pointsourceprob = 0 run_bright_detect = 0 run_detect = 1 run_select_detect = 0 run_extract_medfilter = 0 run_fit_radius = 0 run_sourcestimate = 1 run_aperture = 1 run_select = 1 OUTPUT_DIR = outputdir INPUT_FILE_NAME = mosaic.fits SIGMA_FILE_NAME = mosaic_std.fits COVERAGE_MAP = mosaic_cov.fits PRF_file_name = mips70_prf_mosaic_4.0_4x.fits use_refined_pointing = 0 use_data_unc_for_fitted_SNR = 1 use_background_subtracted_image_for_fitting = 0 PMask_Fatal_BitPattern = 0 use_background_subtracted_image_for_aperture = 0 use_psp_to_detect = -1 use_extract_table_for_aperture = 1 RMask_Fatal_BitPattern = 0 DCE_Status_Mask_Fatal_BitPattern = 0 select_conditions = "SNR > 4.0 and deblend ! NO and deblend ! PO and deblend ! AO and deblend ! PAO" select_columns = "srcid,detid,RA,delta_RA,Dec,delta_Dec,delta_RAD,x,delta_x,y,delta_y,delta_xy,fl ux,delta_flux,chi2/dof,ps_chi2/dof,status,SNR,deblend,aperture1,aperture2,apertu re3,bad_pix1,bad_pix2,bad_pix3,ap_unc1,ap_unc2,ap_unc3" use_bright_object_mask = 0 PROBABILITY_THRESHOLD = 0.0 &SNESTIMATORIN (THIS MODULE IS TURNED OFF) &END &DETECT_MEDFILTER Window_Y = 100, N_Outliers_Per_Window = 500, Window_X = 100, Max_Bad_Pixels_OutputImage = 1.0, Min_GoodNeighbors_Number = 4, Min_Good_Pixels_In_Window = 9, &END &GAUSSNOISE Window_Y = 61, Max_BadPixels_OutputImage = 1.0, N_Outliers_Per_Window = 300, Window_X = 61, Min_GoodNeighbors_Number = 4, Min_Good_Pixels_In_Window = 9, &END &POINTSOURCEPROB PRF_ResampleY_Factor = 4, Apriori_Probability = 0.1, PRF_Xsize = 11, PRF_Ysize = 11, PRF_ResampleX_Factor = 4, &END &BRIGHT_DETECT (THIS MODULE IS TURNED OFF) &END &DETECT Detection_Threshold = 2.5, Input_Type = 'image_input', Detection_Max_Area = 25, Min_Coverage = 4.0, Detection_Min_Area = 6, Threshold_Type = 'peak', Extended_Object_Area = 10000, &END &EXTRACT_MEDFILTER (THIS MODULE IS TURNED OFF) &END &FIT_RADIUS &END &SOURCESTIMATE MinimizeFtolSuccess = 1.0E-4, PRF_ResampleX_Factor = 4, Max_Number_PS = 1, Chi_Threshold = 3.0, Background_Fit = 0, Max_N_Iteration = 50000, Fitting_Area_Y = 5, InputType = 'image_list', PRF_ResampleY_Factor = 4, DitherPixelFraction = 0.1, Max_N_Success_Iteration = 1000, Chi2_Improvement = 1.0, DitherFluxFraction = 0.8, MinimizeFtol = 1.0E-4, Fitting_Area_X = 5, DeblendDitherPixelFraction = 1.0, N_Edge = 4, Random_Fit = 0, &END &APERTURE Annulus_Compute_Type = 'median', N_Apertures = 3, Use_Annulus = 1, Aperture_Radius_1 = 8.0, Aperture_Radius_2 = 10.0, Aperture_Radius_3 = 12.0, Min_Number_Pixels = 10, Inner_Radius = 15.0, Outer_Radius = 30.0, &END &SELECT &END #END Return to the Data Analysis Cookbooks Page |
help@spitzer.caltech.edu