| | 1 | == Stackphot Initial Release == |
| | 2 | |
| | 3 | I have finished up some major work on the IPP stack extended source |
| | 4 | photometry analysis, and I am placing a small example on an rsync |
| | 5 | server for people to investigate. |
| | 6 | |
| | 7 | The data can be found at: rsync://pikake.ifa.hawaii.edu/md04.stackphot/ |
| | 8 | |
| | 9 | Download it with a command like: rsync -auv |
| | 10 | rsync://pikake.ifa.hawaii.edu/md04.stackphot/ md04.stackphot/ |
| | 11 | |
| | 12 | There are two sets of files in this directory: |
| | 13 | * MD04.skycell.079.stk.* : these are the inputs to the stackphot analysis |
| | 14 | * MD04.skycell.079.stkphot.* : these are the outputs from the |
| | 15 | stackphot analysis. |
| | 16 | |
| | 17 | The analysis was performed using the griz images from the current |
| | 18 | 'refstack' for MD04. Those stacks do not include some of the recent |
| | 19 | fixes related to the covariance matrix calculation. That point may |
| | 20 | affect the depth to which psphot did the analysis. |
| | 21 | |
| | 22 | There are 4 sets of output files, one for each of the input filter |
| | 23 | images (0 = i, 1 = g, 2 = r, 3 = z). The *.im.fits is the psf-matched |
| | 24 | image, *.wt.fits is the equivalent variance, *.mk.fits is the |
| | 25 | equivalent mask, *.cmf is the set of FITS tables with detection |
| | 26 | information. In the cmf files, there are 4 data units. The primary |
| | 27 | data unit is the header with metadata about the input image (not very |
| | 28 | complete or accurate I'm afraid -- we are fixing this up). The next |
| | 29 | (EXTNAME = SkyChip.psf) is the PSF table. This uses a new format |
| | 30 | 'PS1_SV1' which includes fields for the radial profile information |
| | 31 | (see below), along with the cmf fields familiar from the PS1_V2 |
| | 32 | version. (Note that we will continue to use PS1_V2 for all photometry |
| | 33 | analysis except stackphot and diff -- for diff we will be using the |
| | 34 | PS1_DV1 format which I've mentioned before). The next data unit |
| | 35 | (EXTNAME = SkyChip.xsrc) is the extended source table, with the |
| | 36 | elliptical profile data and the petrosians -- note that these are only |
| | 37 | provided for 'extended' sources. The final data unit (EXTNAME = |
| | 38 | SkyChip.deteff) is the detection efficiency table. |
| | 39 | |
| | 40 | Note that we are intending to change the EXTNAMEs to all upper case |
| | 41 | (perhaps before next week). |
| | 42 | |
| | 43 | Over the next few days, I'll be running more of these MD04 skycells. |
| | 44 | We also will create a new set of stacks using all of the images to |
| | 45 | date (or a 'best seeing' subset). |
| | 46 | |
| | 47 | ----- |
| | 48 | |
| | 49 | Here is a summary of the stackphot analysis: |
| | 50 | |
| | 51 | In the stack photometry analysis, we start with a set of skycell |
| | 52 | images (normally stacks, but they could be warps as well). In the |
| | 53 | case of stacks, the input stack data has both convolved (PSF-matched) |
| | 54 | and unconvolved images. For the stackphot analysis, like in the stack |
| | 55 | analysis, we define a target PSF and smooth the input images to |
| | 56 | generate a set of PSF-matched images that have the desired target PSF. |
| | 57 | We can optionally use the convolved stacks or the unconvolved stacks |
| | 58 | as the input to this PSF-matching step. |
| | 59 | |
| | 60 | We then use the unconvolved images for the detection process. We |
| | 61 | perform the detection process on the individual images. We also |
| | 62 | generate a chi square image from all inputs and run the detection |
| | 63 | analysis on that image as well. |
| | 64 | |
| | 65 | The detected sources in each of the input images are merged together |
| | 66 | into a set of common objects. For images where a source is not |
| | 67 | detected, we generate one from the common object at the location -- in |
| | 68 | the end all positions for which a source is detected on any image is |
| | 69 | then treated as a source. For all sources, we force a common position |
| | 70 | (average of the actual detections). |
| | 71 | |
| | 72 | We then use the convolved images (PSF-matched to the target PSF) to |
| | 73 | perform the analysis. In addition to the standard psf photometry, we |
| | 74 | now generate additional measurements: for all sources, we measure |
| | 75 | aperture fluxes for a series of radial apertures, along with the |
| | 76 | errors and the 'fill factor' (the number of pixels used for a given |
| | 77 | radius divided by the area at that radius in pixels -- this is useful |
| | 78 | to judge the amount of masking and quality of the aperture). |
| | 79 | |
| | 80 | For extended sources, we also measure the elliptical contour at the |
| | 81 | 0.25 Peak flux level. We use this contour to generate a re-normalized |
| | 82 | radial profile, following the elliptical contour. In order to |
| | 83 | generate a clean radial profile, we measure the profile separately for |
| | 84 | each of 30 angular bins and compare 180-degree opposite bins -- the |
| | 85 | shallower of the opposite profiles wins out. This enforces 180 degree |
| | 86 | rotational symmetry and approximates the SDSS deblender. Also note |
| | 87 | that the analysis of a single source is performed with the other |
| | 88 | sources subtracted (using the best fit psf or simple galaxy model), so |
| | 89 | the resulting analysis is essentially isolated to a single source. |
| | 90 | |
| | 91 | We then use the radial profiles to measure Petrosian quantities |
| | 92 | (Petrosian radius, magnitude, R50, R90 values as defined by SDSS). We |
| | 93 | also report the surface brightness and enclosed flux at specific major |
| | 94 | axis radii for the elliptical contours. (Again -- these are only |
| | 95 | reported for the extended sources). |
| | 96 | |
| | 97 | I have made comparisons to the SDSS analysis using SDSS images and |
| | 98 | find that the results agree well (I'll put together a report over the |
| | 99 | next few days). |
| | 100 | |
| | 101 | For both the circular and elliptical apertures, we are currently using |
| | 102 | the radii defined by SDSS. The inner and outer radii in pixels are |
| | 103 | listed below: |
| | 104 | |
| | 105 | @RADIAL.ANNULAR.BINS.LOWER F32 0.00 0.56 1.69 2.59 4.41 |
| | 106 | 7.51 11.58 18.58 28.55 45.50 70.51 110.53 172.49 269.52 420.51 |
| | 107 | @RADIAL.ANNULAR.BINS.UPPER F32 0.56 1.69 2.59 4.41 7.51 |
| | 108 | 11.58 18.58 28.55 45.50 70.51 110.53 172.49 269.52 420.51 652.50 |
| | 109 | |
| | 110 | Some points and caveats: |
| | 111 | |
| | 112 | * unlike SDSS, we are currently using the Petrosian flux measured on a |
| | 113 | given image to determine R50 and R90 for that image (SDSS uses the |
| | 114 | r-band) |
| | 115 | * the average object positions are used to measure the radial, not |
| | 116 | r-band specifically like SDSS |
| | 117 | * we do not currently resample and recenter the source pixels to place |
| | 118 | the center at a pixel center (as photo does). this should only be an |
| | 119 | important effect in the inner ~2 pixels if the image is nearly |
| | 120 | undersampled (which we clearly are not). |
| | 121 | * the zero points are not being carried into the stack correctly, so |
| | 122 | the photometry is NOT currently calibrated. The data in the sample is |
| | 123 | from MD04, which overlaps SDSS, so it should be easy to calibrate from |
| | 124 | SDSS. |
| | 125 | * the astrometric calibration is being applied to the output 'cmf' |
| | 126 | tables, but the WCS seems to be broken in the header |
| | 127 | * there is a bit of work still needed to integrate the analysis into |
| | 128 | the IPP automatically. |
| | 129 | * non-linear model fits are still not being included in the analysis |