Presentation is loading. Please wait.

Presentation is loading. Please wait.

2002 January 28 AURA Software Workshop 2002 1 The MATPHOT Algorithm for Digital Point Spread Function CCD Stellar Photometry Kenneth J. Mighell National.

Similar presentations


Presentation on theme: "2002 January 28 AURA Software Workshop 2002 1 The MATPHOT Algorithm for Digital Point Spread Function CCD Stellar Photometry Kenneth J. Mighell National."— Presentation transcript:

1 2002 January 28 AURA Software Workshop 2002 1 The MATPHOT Algorithm for Digital Point Spread Function CCD Stellar Photometry Kenneth J. Mighell National Optical Astronomy Observatory

2 2002 January 28 AURA Software Workshop 2002 2 This work is supported by a grant from the National Aeronautics and Space Administration (NASA), Order No. S-67046-F, which was awarded by the Long-Term Space Astrophysics (LTSA) program of NASA’s Office of Space Science.

3 2002 January 28AURA Software Workshop 20023 Analytical Point Spread Functions A simple model of a CCD observation of a single star on a non-flat background may be created with a tilted plane and some analytical function representing the sampled PSF (  ), where the sampled (pixelized ) PSF is defined as which is the volume integral over the i th pixel of the unsampled PSF (  ).

4 2002 January 28AURA Software Workshop 20024 Analytical Gaussian PSFs A Gaussian distribution is a good model for the PSF of a ground-based CCD observation since the central core of a ground-based stellar profile is approximately Gaussian (King 1971). The following is thus a good model of the unsampled PSF of a ground-based CCD observation of a single isolated star on a non-flat background:

5 2002 January 28AURA Software Workshop 20025 Levenberg-Marquardt Method Let us assume that we have a calibrated charge- coupled device (CCD) observation with N pixels and that z i is the intensity in electrons of the i th pixel at the location of (x i,y i ) with an error of  i. Let m(x,y;p 1,…,p M ) be a model of the intensity values that has two coordinates (x,y) and and M parameters. The measure of the goodness of fit between the data and the model, called chi-square, is defined as

6 2002 January 28AURA Software Workshop 20026 where  is a variable damping factor which is used to modify the principle diagonal of the Hessian matrix, The key idea of the Levenberg-Marquardt method of non- linear least-squares estimation consists of minimizing   (p) by (repeatedly) solving (and minimizing) the following equation for  the correction vector  and  ij is the Kronecker delta function (Levenberg 1944, practical algorithm for  Marquardt 1963).

7 2002 January 28AURA Software Workshop 20027 By defining  as a new matrix of order M x M,

8 2002 January 28AURA Software Workshop 20028 and  as a new vector of order M, one then has the computationally useful form of a set of M equations with M unknowns: The Levenberg-Marquardt method of non-linear least squares minimization performs an optimum interpolation between the Taylor series method and the gradient method (Marquardt 1963).

9 2002 January 28AURA Software Workshop 20029 The Levenberg-Marquardt method requires the computation of the partial derivatives of the observational model with respect to all free parameters. The partial derivatives of the simple Gaussian model are as follows:

10 2002 January 28AURA Software Workshop 200210

11 2002 January 28AURA Software Workshop 200211

12 2002 January 28AURA Software Workshop 200212 and finally,

13 2002 January 28AURA Software Workshop 200213 After the optimal parameter vector ( p 0 ) has been determined (with set to zero), the covariance matrix, may then be calculated. If the off-diagonal elements of the covariance matrix are negligibly small, then the standard (rms) errors can be estimated to be where  j is the standard error associated with the j th parameter.

14 2002 January 28AURA Software Workshop 200214 matphot1  =21.38

15 2002 January 28AURA Software Workshop 200215 matphot1  =21.38

16 2002 January 28AURA Software Workshop 200216 PSF-Fitting Performance Model where is “effective background area” defined as the reciprocal of the volume integral of the square of the PSF. By definition, the effective background area for a critically- sampled Gaussian PSF is  = 4  (1) 2 (  12.57) px 2. The WFPC2 sharpness parameter is the reciprocal of . Photometry: ^ important yet frequently ignored!

17 2002 January 28AURA Software Workshop 200217 King (1983) identifies  as the “equivalent-noise area” and notes that the numerical integration of a realistic ground- based stellar profile gives an equivalent area that is 2.45 times greater than that of a Gaussian stellar profile. Position Errors (Relative Astrometry): This astrometric performance model is more general than Irwin’s (1985) astrometric analysis of Gaussian PSFs.

18 2002 January 28AURA Software Workshop 200218 matphot1  =21.38

19 2002 January 28AURA Software Workshop 200219 matphot1  =21.38

20 2002 January 28AURA Software Workshop 200220 What do the partial derivatives look like? A constant of one … A tilted plane in x … A tilted plane in y … … the sampled PSF … difference of 2 Gaussians in x … difference of 2 Gaussians in y

21 2002 January 28AURA Software Workshop 200221 Position Partial Derivatives The mathematics of determining the position partial derivatives of the observational model with respect to the x and y direction vectors is exactly the same with analytical or digital PSFs. The implementation methodology, however, is significantly different. The position partial derivatives of digital PSFs can be determined using numerical differentiation techniques on the digital PSF. Numerical experiments have shown that the following five- point differentiation formula works well with digital PSFs: MATPHOT currently uses the above formula to compute position partial derivatives.

22 2002 January 28AURA Software Workshop 200222 matphot1  =21.38

23 2002 January 28AURA Software Workshop 200223 matphot1  =21.38

24 2002 January 28AURA Software Workshop 200224 matphot1  =21.38 The differentiation method error is < 1/16 th that due to photon noise!

25 2002 January 28AURA Software Workshop 200225 A Critique of Traditional PSF-Fitting… Most CCD stellar photometric reduction packages use analytical functions to represent the stellar PSF. These PSF-fitting programs generally compute all the major partial derivatives of the observational model by differentiating the volume integral of the analytical function representing the unsampled PSF over a CCD pixel. Deviations of the real-world PSF from the analytical PSF are typically stored in a residual matrix.

26 2002 January 28AURA Software Workshop 200226 Diffraction rings and spikes can provide a lot of valuable information about the position of a star, yet data about such common observational effects generally resides only in the residual matrix. The information in the residual matrix is typically ignored during in the PSF-fitting process except at the final step involving the determination of the chi-square goodness-of-fit between the data (the CCD observation) and the observational model (when the intensity–scaled residual matrix is added to the analytical PSF just before the goodness-of-fit is computed). What if we throw out the analytical PSF and only use the residual matrix to describe the Point Spread Function?

27 2002 January 28AURA Software Workshop 200227 Digital Point Spread Functions A digital Point Spread Function is a digital representation of the sampled PSF consisting of a numerical table (e.g., a matrix or a FITS image) instead of an analytical function. The MATPHOT algorithm for digital PSF-fitting CCD stellar photometry uses digital PSFs instead of analytical PSFs.

28 2002 January 28AURA Software Workshop 200228 How does one move a PSF? Analytical PSFs: Just compute the PSF at the desired location in the observational model. Digital PSFs: Take the reference digital PSF and shift it to the desired location using a perfect 2-d interpolation function. OK… but how is that done in practice? MATPHOT currently uses the following 21-pixel-wide damped sinc function to interpolate sampled PSFs: Note: The 2-d sinc function is separable in x and y.

29 2002 January 28AURA Software Workshop 200229 matphot2  =21.38

30 2002 January 28AURA Software Workshop 200230 Critically-sampled PSFs?

31 2002 January 28AURA Software Workshop 200231 matphot2  =13.58

32 2002 January 28AURA Software Workshop 200232 matphot2  =13.58 Yikes!

33 2002 January 28AURA Software Workshop 200233 TANSTAFL * * There Ain’t No Such Thing As (a) Free Lunch

34 2002 January 28AURA Software Workshop 200234 Over-sampled PSFs Accurate CCD stellar photometry may be obtained with under-sampled or critically-sampled data if over- sampled PSFs are used. For example, a 2x2 over-sampled PSF uses 4 subpixels to describe every true pixel of the CCD observation. Every subpixel of a 2x2 over-sampled PSF has twice the spatial resolution of the true pixels. MATPHOT uses over-sampled PSFs to do accurate CCD stellar photometry with under-sampled observations.

35 2002 January 28AURA Software Workshop 200235 matphot2  =13.58

36 2002 January 28AURA Software Workshop 200236 matphot2  =13.58 OK!

37 2002 January 28AURA Software Workshop 200237 Under-sampled PSFs?

38 2002 January 28AURA Software Workshop 200238 matphot2  =6.23 Yuk!

39 2002 January 28AURA Software Workshop 200239 matphot2  =6.23 OK!

40 2002 January 28AURA Software Workshop 200240

41 2002 January 28AURA Software Workshop 200241 Ugly (real-world) PSFs?

42 2002 January 28AURA Software Workshop 200242 Next Generation Space Telescope 8-m TRW-concept 0.0128 arcsec/pixel  =31.05 PSF by John Krist

43 2002 January 28AURA Software Workshop 200243 matphot2  =31.05

44 2002 January 28AURA Software Workshop 200244 matphot2  =31.05

45 2002 January 28AURA Software Workshop 200245 How can I get MATPHOT? Get the 2001DEC27 release of my MXTOOLS package for IRAF at http://www.noao.edu/staff/mighell/mxtools


Download ppt "2002 January 28 AURA Software Workshop 2002 1 The MATPHOT Algorithm for Digital Point Spread Function CCD Stellar Photometry Kenneth J. Mighell National."

Similar presentations


Ads by Google