| Version 22 (modified by , 13 years ago) ( diff ) |
|---|
This page discusses stacks with an excess in false detections in LAP.ThreePi.20120706
2013-03-27
2013-03-07
Summary of photometry issues raised by Eddie
Summary of stacking coverage/completeness
2013-03-04
Updated table of values with the weight values/addVariance values:
| Convolved | ||||||||
| Input | (972,3213) | V(972,3213) | W(972,3213) | addVar(972,3213) | (884,3265) | V(884,3265) | W(884,3265) | addVar(884,3265) |
| 5 | 626.727 | 239884.48 | 4.20919e-06 | 1 | ||||
| 6 | 8819.83 | 22743296.0 | 1.05271e-07 | 0 | ||||
| 7 | 1257.02 | 13702581.0 | 1.13473e-07 | 1 | ||||
| 8 | 1752.842 | 3819864.25 | 2.57733e-07 | 1 | ||||
| 9 | 1410.939 | 12239254.00 | 1.6877e-07 | 0 | -43.029 | 11814249.0 | 1.73636e-07 | 0 |
| 10 | -1193.50 | 6676459.00 | 3.14774e-07 | 1 | -4040.1 | 6465182.50 | 3.11899e-07 | 0 |
| 11 | 2261.310 | 3833109.25 | 2.39817e-07 | 0 |
| Unconvolved | ||||||||
| Input | (972,3213) | V(972,3213) | W(972,3213) | addVar(972,3213) | (884,3265) | V(884,3265) | W(884,3265) | addVar(884,3265) |
| 5 | -743.98 | 1119270.62 | 4.20919e-06 | 1 | ||||
| 6 | -1072.73 | 556480.12 | 1.05271e-07 | 0 | ||||
| 7 | -1004.21 | 774176.12 | 1.13473e-07 | 1 | ||||
| 8 | 282.286 | 545124.937 | 2.57733e-07 | 1 | ||||
| 9 | 218.888 | 485149.468 | 1.6877e-07 | 0 | 173.61 | 502260.06 | 1.73636e-07 | 0 |
| 10 | -932.30 | 589893.562 | 3.14774e-07 | 1 | 854.40 | 492724.15 | 3.11899e-07 | 0 |
| 11 | -932.70 | 427439.906 | 2.39817e-07 | 0 |
2013-03-01
Manually running this example stack has clarified what the issue with the variance is. Bill was correct, it is a result of the matching chi2 and the additional variance term. Here are the fwhm, chi2, additional variance values for each unrejected input, along with the input pixel values of both the warp and variance for two positions: (972,3213) is in the "good region," where the measured stack image variance matches the value in the variance image; (884, 3265) is in the "bad region," where the observed variance is large.
| Input | FWHM | chi2 | Additional variance | (972,3213) | V(972,3213) | (884,3265) | V(884,3265) | directMedian(V) | weight | covarFactor | quotedMedian | renorm | ||
| 0 | 5.332783 | 5395.50 | 4787.18 | 177.457 | 3.54363e-05 | 1 | 28139 | 1.090067 | 51.831306 | 56.499603 | ||||
| 2 | 5.689657 | 5374.62 | 4282.85 | 187.196 | 3.43272e-05 | 1 | 29215.4 | 1.081804 | 52.073738 | 56.333595 | ||||
| 5 | 5.963408 | 907.50 | 850.50 | -13.086 | 346.278 | 354.721 | 4.02272e-06 | 1 | 225657 | 60.426430 | 0.940867 | 56.853260 | ||
| 6 | 3.478929 | 51509.4 | 54182.36 | -17.9202 | 155.293 | 189.998 | 1.15211e-07 | 1 | 9.73308e+06 | 60.152260 | 0.995168 | 59.861622 | ||
| 7 | 3.615155 | 33226.6 | 33780.03 | 9.52773 | 12495.2 | -16.7375 | 215.064 | 224.625 | 1.19095e-07 | 1 | 8.60292e+06 | 60.639549 | 0.989420 | 59.997963 |
| 8 | 4.698586 | 20865.3 | 21285.99 | 4.9748 | 186.379 | 15.2201 | 197.564 | 175.954 | 2.59256e-07 | 1 | 3.82346e+06 | 59.121712 | 0.959769 | 56.743206 |
| 9 | 5.650547 | 17460.7 | 20780.80 | 3.722 | 169.304 | 2.9522 | 145.223 | 141.512 | 1.68029e-07 | 1 | 5.59088e+06 | 57.258114 | 1.027094 | 58.809479 |
| 10 | 4.001874 | 17468.4 | 20932.79 | -15.2837 | 158.531 | 14.0066 | 132.417 | 143.609 | 3.18491e-07 | 1 | 3.2781e+06 | 59.835278 | 1.019466 | 61.000050 |
| 11 | 5.165414 | 18516.5 | 18769.16 | -16.5952 | 135.316 | -16.5952 | 200.629 | 181.723 | 2.46035e-07 | 1 | 4.35814e+06 | 61.347172 | 0.916153 | 56.203423 |
The internal values for these pixels from during the rejection phase:
| Input | (972,3213) | V(972,3213) | (884,3265) | V(884,3265) |
| 5 | 676.53 | 258444.42 | ||
| 6 | 8735.83 | 22301894.00 | ||
| 7 | 1249.08 | 13243309.00 | ||
| 8 | 1752.03 | 3668812.75 | ||
| 9 | 1338.07 | 11448818.00 | -47.18 | 10986685.00 |
| 10 | -1217.08 | 7237640.00 | -4041.17 | 6502667.00 |
| 11 | 2353.00 | 4089177.00 |
From this data, it's clear that the additional variance terms being applied to all inputs other than 5 have the effect of down-weighting those inputs. The size of this difference in variance (up to 2 orders of magnitude) means that for the regions where input 5 has data, all other inputs are effectively rejected, resulting in a scaling of only input 5. Where input 5 has no data, all inputs have approximately the same variance, and so the rejection functions normally and the result has an enhanced s/n compared to a single input.
The PSF matching can be definitively blamed for this effect by constructing the stack using "-Db CONVOLVE F", which disables the PSF matching. In this case, no additional variance is added to any input, and the output looks like what we would expect. The image below shows this, with the unconvolved stack from a standard ppStack run on the left, and the output with convolution completely removed on the right. The scales and colorbars are identical for both frames.
2013-02-27
This plot shows the measured image standard deviation (red) and the measured average variance image value (green) for each row in a 300-pixel wide vertical stripe on the stack image used as an example below. The following image shows the location of the stripe on the data and variance images. From this plot, we can see that the reason that there are so many excess detections across large regions of this image is that the variance contained in the variance image is a significant underestimate of the true image variance. Only in the areas where the image variance dips down to the excess detections drop as expected.
The reason for the discrepancy between the image and variance is not currently known.
2013-02-04
Bill Sweeney
psphotStack has found a large number of false detections in some of the stacks. This issue was discussed in December in the context of y band and changes were made to detect cases where the number of detected sources in y band was much higher than r, i, and z and turn off the feature where all forced photometry is performed in all bands for sources only detected in y.
Now that we have completed stack photometry for the most of the sky we can see how widespread the problem is.
The following plot shows the number of detections per skycell as a function of RA and DEC in g and in y band. The region near the galactic plane is clearly visible as is M31. Note the various regions where the detection count is much higher than the surrounding regions. These are the skycells under discussion in this wiki page
Example y band stack 1715750 skycell.1927.074 23.1369h, 27.004d
Stack_id 1715750 is an example that shows this problem. 55284 sources were detected in y band while < 6400 were detected in the stacks for the other 4 filters.
The following image shows the stack with the individual detections displayed as yellow or green circles. Note that there are areas which fall in chip and cell gaps from one or more of the inputs do not show the enhanced detections. This indicates that the phenomena is likely due to a subset of the input warps
This image shows the 12 input warp images. Input 0 is on the upper left, the top row continues with inputs 1 - 3 and so on. Here we can see that the area with lower detection count matches the outline of the masked area in the fourth and fifth images. Since the fourth image was rejected it looks like the excess detections come from areas where the fifth image contributes. This is warp_id 612302. Examining the image we find obviously unusual.
Here is a copy of the log file for the stack. Input 5 has a much lower "matching chisq" and "additional variance" than the other inputs stk_1715750.log
Attachments (14)
- g_detect.jpg (59.4 KB ) - added by 13 years ago.
- y_detect.jpg (63.4 KB ) - added by 13 years ago.
- stk.1714750.jpg (383.0 KB ) - added by 13 years ago.
- input_warps.jpg (306.2 KB ) - added by 13 years ago.
- variance_plot.png (12.2 KB ) - added by 13 years ago.
- example_stack_images.jpg (543.4 KB ) - added by 13 years ago.
- excess_detection_testA.jpg (209.9 KB ) - added by 13 years ago.
- conv_im.jpg (472.8 KB ) - added by 13 years ago.
- conv_var.jpg (326.4 KB ) - added by 13 years ago.
- diff_frame.jpg (243.9 KB ) - added by 13 years ago.
- normalization.jpg (633.4 KB ) - added by 13 years ago.
- normalization2.jpg (470.9 KB ) - added by 13 years ago.
- stacks_noMagCorr.jpg (563.5 KB ) - added by 13 years ago.
- new_variances.png (19.9 KB ) - added by 13 years ago.







