Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-8565

Measure HSC wavefront from individual out-of-focus exposures

    XMLWordPrintable

Details

    • Story
    • Status: Done
    • Resolution: Done
    • None
    • None
    • None

    Description

      Measure the wavefront of individual exposures of HSC data from out-of-focus images. This will involve either solving the transport-of-intensity equation for pairs of intrafocus and extrafocus images using something like CWFS, or forward modeling the wavefronts of either intra or extra focal images using something like donutlib, or possibly Piff/GalSim.

      The big picture will be to incorporate this as a new Task, though that's outside the immediate scope of this ticket.

      Attachments

        1. donut_0.png
          donut_0.png
          49 kB
        2. donut_1.png
          donut_1.png
          42 kB
        3. FP_r0.png
          FP_r0.png
          289 kB
        4. FP_z04.png
          FP_z04.png
          293 kB
        5. FP_z05.png
          FP_z05.png
          292 kB
        6. FP_z06.png
          FP_z06.png
          294 kB
        7. FP_z07.png
          FP_z07.png
          299 kB
        8. FP_z08.png
          FP_z08.png
          288 kB
        9. FP_z09.png
          FP_z09.png
          299 kB
        10. FP_z10.png
          FP_z10.png
          297 kB
        11. FP_z11.png
          FP_z11.png
          275 kB
        12. FP_z12.png
          FP_z12.png
          288 kB
        13. FP_z13.png
          FP_z13.png
          299 kB
        14. FP_z14.png
          FP_z14.png
          282 kB
        15. FP_z15.png
          FP_z15.png
          285 kB
        16. FP_z16.png
          FP_z16.png
          282 kB
        17. FP_z17.png
          FP_z17.png
          296 kB
        18. FP_z18.png
          FP_z18.png
          300 kB
        19. FP_z19.png
          FP_z19.png
          295 kB
        20. FP_z20.png
          FP_z20.png
          298 kB
        21. FP_z21.png
          FP_z21.png
          301 kB
        22. z4.png
          z4.png
          22 kB
        23. z5_51412.png
          z5_51412.png
          287 kB
        24. z5_51416.png
          z5_51416.png
          267 kB
        25. z5_69016.png
          z5_69016.png
          572 kB
        26. z5.png
          z5.png
          21 kB
        27. z6.png
          z6.png
          21 kB
        28. z7.png
          z7.png
          20 kB
        29. z8.png
          z8.png
          21 kB

        Issue Links

          Activity

            Hmmm.... I feel like my previous comment got lost somewhere.... I'll try to recreate:

            I've managed to fit a full focal plane worth of donuts. (See attached scatter plots of fit coefficients). Looks mostly like what I would have expected. E.g., the Z4-Z10 coefficients make Z4-Z10-ish looking polynomials over the field. There are some interesting trends in the higher order coefficients too.

            The Z4 coefficients don't match the surface height metrology very well.

            The r0 coefficient, which is to model the extra bluriness due to the atmosphere, is flat over most of the focal plane, but has a steep deviation towards the edge of the focal plane in quadrants I, II, and IV. I believe r0 should be flat over the full focal plane. I'll look at the individual donut fits to see if anything looks weird there. This same region of the focal plane shows deviations in many other coefficients too.

            Another aspect that I'm not sure I understand is whether or not distortion affects either the donut images or the pinhole images used to model the pupil function. It may be worth trying to model this out.

            roodman, if you're watching, I'm particularly interested in your thoughts.

            Finally, before marking this ticket as done, in addition to the above, I'd like to be able to fit a focal plane with an arbitrary rotator angle, instead of only a focal plane with a convenient rotator angle, as has been done so far.

            jmeyers314 Joshua Meyers added a comment - Hmmm.... I feel like my previous comment got lost somewhere.... I'll try to recreate: I've managed to fit a full focal plane worth of donuts. (See attached scatter plots of fit coefficients). Looks mostly like what I would have expected. E.g., the Z4-Z10 coefficients make Z4-Z10-ish looking polynomials over the field. There are some interesting trends in the higher order coefficients too. The Z4 coefficients don't match the surface height metrology very well. The r0 coefficient, which is to model the extra bluriness due to the atmosphere, is flat over most of the focal plane, but has a steep deviation towards the edge of the focal plane in quadrants I, II, and IV. I believe r0 should be flat over the full focal plane. I'll look at the individual donut fits to see if anything looks weird there. This same region of the focal plane shows deviations in many other coefficients too. Another aspect that I'm not sure I understand is whether or not distortion affects either the donut images or the pinhole images used to model the pupil function. It may be worth trying to model this out. roodman , if you're watching, I'm particularly interested in your thoughts. Finally, before marking this ticket as done, in addition to the above, I'd like to be able to fit a focal plane with an arbitrary rotator angle, instead of only a focal plane with a convenient rotator angle, as has been done so far.

            Do you have a feeling from how the surface and Z4 can fail to match, except "the surface is wrong"?

            rhl Robert Lupton added a comment - Do you have a feeling from how the surface and Z4 can fail to match, except "the surface is wrong"?

            Distortion possibly? I'd be interested if DECam has done this comparison already.

            jmeyers314 Joshua Meyers added a comment - Distortion possibly? I'd be interested if DECam has done this comparison already.

            Z4 is mostly a measure of the size of the donut, so if the pixel size is varying radially, I think this might look like the Z4 variation.

            jmeyers314 Joshua Meyers added a comment - Z4 is mostly a measure of the size of the donut, so if the pixel size is varying radially, I think this might look like the Z4 variation.

            I think I'm ready to declare this one finished. Two updates since last post: I can now process donuts taken at any rotator angle. I can process both intra-focal and extra-focal donuts. I'm attaching a few figures showing the Z5 field-of-view dependence for exposures with different rotator angles (51412 has rotator ~ 45 degrees, 69016 has rotator ~ -90 degrees) and different focus values (51412 has FOC-VAL = 4.68, 51416 has FOC-VAL = 2.88, i.e., 1800 microns different, meaning both images are ~900 microns out-of-focus in different directions).

            The rotator differences between the two images at the same FOC-VAL but different rotator angle are pretty small. The intra-vs-extra differences at the same rotation are a bit more dramatic (even after accounting for the sign flip). Will need to look at more of these to decide if that's meaningful or not.

            reference image

            intra <-> extra focal, same rotator position

            change rotator, same focus position

            jmeyers314 Joshua Meyers added a comment - I think I'm ready to declare this one finished. Two updates since last post: I can now process donuts taken at any rotator angle. I can process both intra-focal and extra-focal donuts. I'm attaching a few figures showing the Z5 field-of-view dependence for exposures with different rotator angles (51412 has rotator ~ 45 degrees, 69016 has rotator ~ -90 degrees) and different focus values (51412 has FOC-VAL = 4.68, 51416 has FOC-VAL = 2.88, i.e., 1800 microns different, meaning both images are ~900 microns out-of-focus in different directions). The rotator differences between the two images at the same FOC-VAL but different rotator angle are pretty small. The intra-vs-extra differences at the same rotation are a bit more dramatic (even after accounting for the sign flip). Will need to look at more of these to decide if that's meaningful or not. reference image intra <-> extra focal, same rotator position change rotator, same focus position

            People

              jmeyers314 Joshua Meyers
              jmeyers314 Joshua Meyers
              Joshua Meyers, Robert Lupton
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Jenkins

                  No builds found.