📄 daophot.tex
字号:
to help determine whether the supplied parameters are appropiate. Note that the FIND algorithm is not a good one for identifying galaxiesor HII regions, since non-stellar objects are discriminated against in thesearch. FIND requires the user to supply anapproximate FWHM (in pixel units, not necessarily integral) for the image,and an intensity threshold,HMIN, above background. Appendix II of the DAOPHOT manual describeshow to choose the intensity threshold to obtain a desired significancelevel (e.g.\ 3.5 sigma) for the sources detected by FIND.One is required to know the readout noise, RONOIS, and photons peranalog digital unit PHPADU for the CCD (needed for computing Poissonstatistics). For a single (not coadded) image the threshold is determined as follows.\begin{enumerate}\item The random noise per pixel is computed from the sky level (found bySKY) and the readout noise.\begin{center}random noise = {\tt SQRT(PHPADU$\ast$SKYMODE + RONOIS)}\end{center}\item After a FWHM (in pixels) has been supplied, FIND will print a value called the``Relative Error''. This is simply a scaling factor to convert the standarderror of one pixel, to that for detecting a point source. For example,the relative error = 1.06 and 0.79, respectively, for FWHM of 2.0 and 6.0pixels\item The 1 sigma random noise should be multiplied by the ``Relative error''.This value should then be mulitiplied by the desired detection significance(i.e. multiply by 3 for 3-sigma detection significance.) \end{enumerate}The Gaussian convolution in FIND cancels out any large-scale variationsin the sky brightness. However, FIND does not identify any variation in the {\em errors} (or fluctuations) in the sky brightness across an image. In this latter case, the detection significance of a supplied threshold may vary across the image.FIND requires a large amount of virtual memory to perform the convolution.This is because the Gaussian convolution requires REAL*4 data for bothinput and output (even if your image array is INTEGER*2). \subsection{APER}{\tt APER,IMAGE,X,Y,MAG,ERRAP,SKY,SKYERR,[PHPADU,APR,SKYRAD,BADPIX, /FLUX]} \\{\tt T\_APER,IMAGE,FITSFILE,[APR,SKYRAD,BADPIX]} \\APER performs circular aperture photometry, linearly weighting pixelsthat are partially wihin the aperture radius.The user must supply a set of aperture radii, an inner andouter sky radius, and low and high bad pixel values. For each position (X,Y) found by FIND, APER will determine a sky valueand uncertainty, and the sky-corrected magnitude and uncertainty within each aperture. Relative magnitudes are computed from the aperture flux,FLUX in data units \begin{center}{\tt MAG = 25 - 2.5$\ast$ALOG10(FLUX)} \end{center}so that an aperture flux of 1 data unit is assigned a magnitude of 25.If the /FLUX keyword is set, then APER will not convert to magnitudes.APER will not compute a flux if one of the following conditions holds:\begin{itemize}\item The aperture exceeds the edge of the image\item A sky value could not be determined (e.g. if MMM requires too many iterations), or the sky exceeds the gross intensity within the aperture\item At least one pixel within, or partially within, the aperture radius is ``bad''. \end{itemize}If a flux could not be computed, the star is assigned either a fluxof -100. or a magnitude of 99.9.Although APER will output results in either flux units or magnitudes,the subsequent procedures GETPSF and NSTAR will require their input inmagnitudes.\subsection{GETPSF} \begin{tabbing}GETPSF,IMAGE, \= \kill{\tt GETPSF,IMAGE,X,Y,MAG,SKY,} \\\> {\tt [RONOIS,PHPADU,GAUSS,PSF,IDPSF,PSFRAD,FITRAD,PSFNAME]} \\{\tt T\_GETPSF,IMAGE, FITSFILE,[IDPSF,PSFRAD,FITRAD,PSFNAME]} \\\end{tabbing} GETPSF requires the positions (X,Y) found by FIND, and the magnitude,MAG and sky values, SKY, found by APER. The PSF determined by GETPSFis represented by a 5 element vector GAUSS, containing the best-fitbivariate gaussian parameters, and by a lookup array of residuals.The user must supply the index numbers of the stars to be used to createthe PSF. Ideally, the PSF stars should be isolated, free of bad pixels, and free of any saturated pixels.GETPSF will also store the PSF as an STSDAS (modified FITS) disk image.(In order to view the PSF, one must recombine the residuals with the Gaussian;this can be done with the procedure RDPSF.)\subsection{GROUP}{\tt GROUP,XC,YC,RMAX,NGROUP} \\{\tt T\_GROUP, FITSFILE,RMAX} \\ GROUP will assign a group number to each star with position (XC,YC).The user must supply a value of RMAX, the radius at which two starsare considered to be just overlapping. Stetson suggests setting RMAXequal to the radius of the brightest star {\em plus} the fitting radiusto be used in NSTAR. The idea is that the pixels used to fit the PSFto a star will only be contaminated by stars with the same group number.The IDL code for GROUP is extremely elegant (only 7 lines long!) However,it is approximately half as fast as the equivalent FORTRAN.\subsection{NSTAR}\begin{tabbing}NSTAR,IMAGE \= \kill{\tt NSTAR,IMAGE,ID,X,Y,MAG,SKY,GROUP,} \\\> {\tt [PHPADU,RONOIS,PSFNAME,MAGERR,ITER,CHISQ,PEAK, /VARSKY]} \\{\tt T\_NSTAR,IMAGE, FITSFILE,[PSFNAME,GROUPSEL, /VARSKY]} \\\end{tabbing}NSTAR will simultaneously fit the PSF to all stars within a given group.Three parameters are determined for each star - the (X,Y) position, andthe magnitude, MAG. As initial conditions to the least-squares fit, NSTARrequires the (X,Y) positions obtained from FIND, and the magnitudes, MAGobtained from APER. The sky values obtained from APER are taken as fixedparameters. Other required inputs are the GROUP vector created by GROUP,and the name of the PSF file created by GETPSF. The DAOPHOT user's manual describes the moderately sophisticated star-rejectionalgorithm used by NSTAR. Basically, a star is rejected if (1) it mergeswith a brighter star, (2) it is more than 12.5 magnitudes fainter thanthe PSF star, or (3) its brightness is less than the 2-sigma noise level.Upon output, the vector ID will contain the ID numbers of the stars thatwere {\em not} rejected.NSTAR has three output vectors that describe the quality of the fit.CHISQ gives the chi-square of the fit for each star per degree of freedom,and should be close to 1, {\em if proper values of the readout noiseand photon per analog digital unit were supplied}. PEAK (called SHARP by Stetson) determineswhether the star is broader or narrow than the PSF. Isolated stars shouldhave PEAK approximately equal to zero, while extended sources (galaxies,unresolved binaries) will have PEAK greater than zero. Finally, NITERgives the number of iterations required for the fit. If NITER = 50, thenthe least-squares solution did not converge for at least one star in thegroup.NSTAR is the most CPU-intensive step in the DAOPHOT sequence and shouldusually be done in batch. The CPU time required depends exponentially(I would guess) on the size of the group. The T\_NSTAR call allows one to select specificgroups to process through the vector GROUPSEL. \subsection{SUBSTAR}{\tt SUBSTAR,IMAGE,X,Y,MAG,[ID,PSFNAME]} \\{\tt T\_SUBSTAR,IMAGE, FITSFILE,[ID, PSFNAME, /VERBOSE]} \\SUBSTAR will subtract the PSF, scaled to each star's magnitude, MAG, from positions specified by the vectors (X,Y). Note that IMAGEwill be modified to contain the star-subtracted image, so be sure to have a duplicate copy if the original is needed.If desired, then only a subset of stars, specified by the ID vector,will be subtracted. \end{document}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -