| Ch.1 | ![]() |
| Ch.2 | ![]() |
| Ch.3 | ![]() |
| Ch.4 | ![]() |
TinyTIM and Code V produce substantially the same result. As seen in the above figure, the low-level structure of the PSF is qualitatively nearly identical. In some cases it appears that the speckles in the Code V model are sharper and less symmetric (see Channel 2). As a quantitative check, I looked at the peak flux, and the integrated flux in an aperture that enclosed the central core and one that enclosed the first airy ring, all normalized by the total flux. In all cases all of the apertures were fixed to be identical between the two modeled frames. Note that the encircled energy numbers are not rigorously defined, they are intended to show relative differences. In general, TinyTIM predicts more power in these structures by around 5%, and the difference is usually all in the % of total flux in the central peak. Similarly, the height of the central peak is typically slightly higher by a few percent in the TinyTIM model vs the Code V model. FWHM was the same to within my ability to fit a simple gaussian model. Perhaps Code V includes a more rigorous scattering model than TinyTIM? My attempts at differencing the images and looking at their ratios in image space demonstrated that I'll have to spend more time getting the exact sub-pixel centroiding right. The above was quicker.
I also note that it is possible that a small amount of this might be due
to where exactly the two programs put the PSF peak relative to the pixel
center. I believe TinyTIM always puts it exactly at the center of the
center pixel. I don't know what Code V assumes. This should have been
minimized by the 5x oversampling, though.
| TinyTIM | Code V | |
| Ch.1 Peak | 0.043 | 0.041 |
| Core | 0.52 | 0.50 |
| 1st ring | 0.80 | 0.80 |
| Ch.2 Peak | 0.030 | 0.028 |
| Core | 0.57 | 0.54 |
| 1st ring | 0.88 | 0.85 |
| Ch.3 Peak | 0.020 | 0.018 |
| Core | 0.60 | 0.56 |
| 1st ring | 0.90 | 0.88 |
| Ch.4 Peak | 0.011 | 0.010 |
| Core | 0.62 | 0.60 |
| 1st ring | 0.93 | 0.91 |
Note from John Krist:
Thanks for the comparison. I'm glad things agree pretty well. Code V does not do any scattering calculations, beyond adding in the maps of the polishing errors, which Tiny Tim does as well. Code V does NOT model obscurations as well as Tiny Tim. As I recall, the central obscuration and secondary truss supports are approximated by a bunch of rectangles in the Code V prescription, while Tiny Tim uses antialiased circles and polygons. That might explain some of the differences.