Changeset 30138
- Timestamp:
- Dec 21, 2010, 2:53:52 PM (15 years ago)
- Location:
- branches/eam_branches/ipp-20101205
- Files:
-
- 2 edited
-
doc/psphot/psphot.tex (modified) (11 diffs)
-
psphot/doc/stack.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20101205/doc/psphot/psphot.tex
r21455 r30138 159 159 Python). 160 160 161 \note{discuss the psphot program varients} 162 161 163 \section{PSPhot Design Goals} 162 164 … … 276 278 \end{itemize} 277 279 278 Note that a given run of PSPhot \note{should} allow the user to279 perform any of these stages as an option. For example, the PSF model 280 may already be available from external information, in which case the 281 PSF modeling stage can be skipped. Or, when used as a library 282 function, the image may have already been loaded and the mask and 283 weight images constructed. In some implementations, it may be284 possible to skip the initial object detection stage because only 285 supplied sources are measured. These are only some of the possible286 configurations. The use of these different configurations depends on 287 the source of the image, the desired detail and speed of the 288 processing, and the levelof accuracy desired from the analysis.280 Note that a given run of PSPhot allows the user to perform many of 281 these stages only if needed. For example, the PSF model may already be 282 available from external information, in which case the PSF modeling 283 stage can be skipped. Or, when used as a library function, the image 284 may have already been loaded and the mask and weight images 285 constructed. In some implementations, it may be possible to skip the 286 initial object detection stage because only supplied sources are 287 measured. These are only some of the possible configurations. The 288 use of these different configurations depends on the source of the 289 image, the desired detail and speed of the processing, and the level 290 of accuracy desired from the analysis. 289 291 290 292 \subsection{Image Preparation} … … 292 294 The first step is to prepare the image for detection of the 293 295 astronomical objects. We need three separate images: the measured 294 flux, the corresponding noise level, and a mask defining which pixels295 are valid and which should be ignored. For the stand-alone program, 296 the input flux image is a required program argument. When it is 297 loaded, it is converted by default to 32-bit floating point296 flux, the corresponding variance image, and a mask defining which 297 pixels are valid and which should be ignored. For the stand-alone 298 program, the input flux image is a required program argument. When it 299 is loaded, it is converted by default to 32-bit floating point 298 300 representation. In the function-call form of PSPhot, the image must 299 301 be supplied by the user in 32-bit floating point format. The noise … … 307 309 automatically by PSPhot. 308 310 309 For the mask, we use an 8-bit image in which a value of 0 represents a 310 valid pixel. We use each of the 8 bits to define different reasons a 311 pixel should be ignored. This allows use to optionally respect or 311 \note{describe the use of the covariance image} 312 \note{describe the difference between 'bad' and 'suspect' pixels} 313 314 For the mask, we use a 16-bit image in which a value of 0 represents a 315 valid pixel. We use each of the 16 bits to define different reasons a 316 pixel should be ignored. This allows us to optionally respect or 312 317 ignore the mask depending on the circumstance. For example, in some 313 318 cases, we ignore saturated pixels completely while in other … … 325 330 \code{XMIN}, \code{XMAX}, \code{YMIN}, \code{YMAX}. 326 331 327 \note{Mask values are currently hard-wired numbers. We need a method 328 for user-defined mask values to be supplied. PSLib needs to have a 329 mask registration system.} 332 \note{discuss the mask.config file, in which the mask meanings are assigned to bit values} 330 333 331 334 The noise image, if not supplied is constructed by default from the … … 337 340 valid. For example, if the input flux image is the result of an image 338 341 stack with significantly variable number of input measurements per 339 pixel, it will necessary to supply a noise image which accurately342 pixel, it will be necessary to supply a noise image which accurately 340 343 represents the noise as a function of position in the image. 341 344 … … 343 346 344 347 The objects are initially detected by finding the location of local 345 peaks in the image. The flux image is smoothed with a very small 346 circularly symmetric kernel using a two-pass 1D Gaussian. At this 348 peaks in the image. The flux and variance images are smoothed with a 349 small circularly symmetric kernel using a two-pass 1D Gaussian 350 (\note{KEYWORD?}). The smoothed flux and variance images are combined 351 to generate a significance image in signal-to-noise units 352 \note{including correction for the covariance, if known}. At this 347 353 stage, the goal is only to detect the brighter sources, above a user 348 354 defined S/N limit (configuration keyword: \code{PEAK_NSIGMA}). The 349 355 detection efficiency for the brighter sources is not strongly 350 356 dependent on the form of this smoothing function. 351 352 \note{Is this smoothing needed? we could save time here by skipping353 it.}354 357 355 358 The local peaks in the smoothed image are found by first detecting … … 364 367 the maximum $X$ and $Y$ corners of the region. 365 368 366 \note{The current implementation ignores the S/N map in making the 367 peak detection. This code must be modified (a la Kaiser) to be used 368 for a peak-detection pass in a difference image or to re-find peaks in 369 the image after the modeled objects have been subtracted}. 369 \subsection{Footprints} 370 371 \note{need to describe the process of generating the source footprints 372 and then culling the insignificant peaks} 373 374 \subsubsection{Moments and related} 375 376 \note{disucss the Kron mags} 377 378 \note{this section is wrong: we no longer use S/N clipping, but a 379 Gaussian window function, chosed based on the measured moment} 370 380 371 381 Once a collection of peaks have been identified, basic properties of … … 391 401 392 402 \subsubsection{Determination of the Peak Coordinates and Errors} 403 404 \note{this section is wrong: it is a poor estimator of the source 405 position errors. we gave up a reverted to using the FWHM / (S/N)} 393 406 394 407 We use the 9 pixels which include the source peak to fit for the … … 605 618 the minimization values. PSPhot uses the first and second moments to 606 619 make a good guess for the centroid and shape parameters for the PSF 607 models. In order to minimize the impact of close neighbors, the noise 608 values used in the fit are enhanced by a fraction of the deviation of 609 the particular pixel value from the model guess. Any objects which 610 fail to converge in the fit are flagged as invalid. 620 models. \note{still true? In order to minimize the impact of close 621 neighbors, the noise values used in the fit are enhanced by a 622 fraction of the deviation of the particular pixel value from the 623 model guess.} Any objects which fail to converge in the fit are 624 flagged as invalid. 611 625 612 626 \note{does the noise enhancement introduce too much bias?} … … 1044 1058 1045 1059 \subsection{Difference Images} 1046 1047 \note{much of this discussion is theoretical: PSPhot can incorporate1048 these modifications, but it currently does not.}1049 1060 1050 1061 The noise map for a difference image must be generated from the two -
branches/eam_branches/ipp-20101205/psphot/doc/stack.txt
r30023 r30138 1 2 20101221 3 4 psphotStackReadout is now correctly subtracting the PSF models from 5 the images as it measures the radial aperture fluxes. 6 7 Some issues: 8 9 * the source properties get buggered up by the radial aperture flux 10 analysis (we need to re-determine the psf, re-create the source 11 pixels, and re-fit the models (linearly) to subtract them 12 correctly). 13 14 * the standard analysis sequence is not doing a second pass 15 16 * the choice of the best model is ambiguous 17 18 * the radial aperture (and source addition / subtraction) is only 19 using the PSF model 20 21 * make sure psphotEfficiency actually subtracts the inserted fake 22 sources 1 23 2 24 20101207
Note:
See TracChangeset
for help on using the changeset viewer.
