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

Investigate transpose of auxTel images in WEP

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: ts_aos
    • Labels:

      Description

      Currently all donut stamp images passed to WEP are transposed before the Algorithm is called https://github.com/lsst-ts/ts_wep/blob/42c96f0ee9b2907e17625dee348e735f8b60b4e7/python/lsst/ts/wep/task/CalcZernikesTask.py#L235-L245 

      This is part of the most recent workflow, which includes 

      • donut detection and selection with GenerateDonutDirectDetectTask or GenerateDonutCatalogWcsTask
      • cutting out postage stamp images with CutOutDonutsScienceSensorTask
      • wavefront estimation with calcZernikesTask

      The transpose happens inside calcZernikesTask : 

       

      wfEsti.setImg(fieldXYExtra,DefocalType.Extra,                image=rotate(donutExtra.stamp_im.getImage().getArray(), eulerZExtra).T,                blendOffsets=blendOffsetsExtra.tolist(), )            

      wfEsti.setImg(fieldXYIntra, DefocalType.Intra,                image=rotate(donutIntra.stamp_im.getImage().getArray(), eulerZIntra).T,                blendOffsets=blendOffsetsIntra.tolist(),
      

      We find upon comparison to simulated data with batoid that this transpose for auxTel images is not necessary. Attached image compares the fit to a simulated batoid auxTel image where 300 nm of z8 was injected with phase screen. Both `cwfs` (old wavefront estimation code) and `wep` (current code) retrieve the wavefront correctly when provided with untransposed images. 

        Attachments

          Activity

          Hide
          ksuberlak Krzysztof Suberlak added a comment -

          Notebook comparing the fitting of batoid simulations with WEP as a task, WEP directly interacting with the algorithm, CWFS code : https://github.com/suberlak/AOS/blob/main/AOS_DM-37903_auxTel_batoid_transpose_summary.ipynb Based on  zk5-10 we find that there should be no transpose done to intra/extra focal images in `CalcZernikesTask`, and the results are identical between WEP as a task and WEP run directly. 

          Show
          ksuberlak Krzysztof Suberlak added a comment - Notebook comparing the fitting of batoid simulations with WEP as a task, WEP directly interacting with the algorithm, CWFS code : https://github.com/suberlak/AOS/blob/main/AOS_DM-37903_auxTel_batoid_transpose_summary.ipynb  Based on  zk5-10 we find that there should be no transpose done to intra/extra focal images in `CalcZernikesTask`, and the results are identical between WEP as a task and WEP run directly. 
          Hide
          ksuberlak Krzysztof Suberlak added a comment -

          A result of switching the new config `calcZernikesConfig.transposeImages` from `True` to `False`:

           

           

          Show
          ksuberlak Krzysztof Suberlak added a comment - A result of switching the new config `calcZernikesConfig.transposeImages` from `True` to `False`:    
          Hide
          ksuberlak Krzysztof Suberlak added a comment -

          Merged on github

          Show
          ksuberlak Krzysztof Suberlak added a comment - Merged on github
          Hide
          ttsai Te-Wei Tsai added a comment -

          Reviewed and merged in GitHub.

          Show
          ttsai Te-Wei Tsai added a comment - Reviewed and merged in GitHub.

            People

            Assignee:
            ksuberlak Krzysztof Suberlak
            Reporter:
            ksuberlak Krzysztof Suberlak
            Reviewers:
            Te-Wei Tsai
            Watchers:
            Bryce Kalmbach, Krzysztof Suberlak, Te-Wei Tsai, Tiago Ribeiro
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Jenkins

                No builds found.