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

            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.