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

Correct rotation angle to match WCS in phosim_utils

    XMLWordPrintable

    Details

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

      Description

      Update in `phosim_repackager.py` the repackaged FITS header `ROTANG`  , so that the correct WCS is achieved. Currently, one needs to feed `90+/-ROTANG` to `lsst.obs.base.createInitialSkyWcsFromBoresight` to achieve the match. An illustration (attached) shows a simulated `lsstCam` defocal image, with red circles corresponding to locations of stars inferred from the input catalog assuming `90+ROTANG`

       

      minimal code used to make the image is attached-  wcs_code.py

      Crucial part is

      new_wcs = createInitialSkyWcsFromBoresight(pointing_loc, 
       (postIsr_md['ROTANG']+90)*lsst.geom.degrees,
       exposure.getDetector(),
       flipX=False,)

       

      since we desire to be able to use just   {{postIsr_md['ROTANG'] }}, without adding 90 degrees to make the input catalog match the WCS information. 

       

        Attachments

          Activity

          Show
          ksuberlak Krzysztof Suberlak added a comment - Opened PR https://github.com/lsst-dm/phosim_utils/pull/16  
          Hide
          ttsai Te-Wei Tsai added a comment -

          This PR looks good to me. Please discuss with Bryce for the possible break in ts_wep for the assumption of 90 degree. Thanks!

          Show
          ttsai Te-Wei Tsai added a comment - This PR looks good to me. Please discuss with Bryce for the possible break in ts_wep for the assumption of 90 degree. Thanks!
          Hide
          ksuberlak Krzysztof Suberlak added a comment -

          Merged and released as v0.2.4, discussed with Bryce the changes (he suggested them originally) 

          Show
          ksuberlak Krzysztof Suberlak added a comment - Merged and released as v0.2.4, discussed with Bryce the changes (he suggested them originally) 

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Jenkins

                No builds found.