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

Reading fringe exposure can modify a WCS in another exposure

    Details

    • Type: Story
    • Status: Reviewed
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Templates:
    • Team:
      External

      Description

      Minimal test case from Sogo Mineo:

      import lsst.afw.image as afwImage
      import lsst.afw.geom as afwGeom
       
      exposure = afwImage.ExposureF(1, 1)
      wcs = afwGeom.makeSkyWcs(
          crpix = afwGeom.Point2D(0.0, 0.0),
          crval = afwGeom.SpherePoint(180.0, 0.0, afwGeom.degrees),
          cdMatrix = [[1.0, 0.0], [0.0, 1.0]],
          projection = 'TAN',
      )
      exposure.setWcs(wcs)
      print(exposure.getWcs().getCdMatrix()) # [A]
      afwImage.ExposureF('FRINGE-2015-07-23-HSC-Y-006.fits')
      print(exposure.getWcs().getCdMatrix()) # [B]
      # [A] succeeds but [B] fails. 
      

      The referenced file can be downloaded here.

      While it's highly likely there's something wrong with the offending fringe frame, this kind of behavior implies either bad global variables or bad memory access, in either our code or AST.

       

        Attachments

          Container Issues

            Activity

              People

              • Assignee:
                price Paul Price
                Reporter:
                jbosch Jim Bosch
                Reviewers:
                Jim Bosch
                Watchers:
                Jim Bosch, Paul Price, Russell Owen, Sogo Mineo, Tim Jenness
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Summary Panel