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

A NaN value in a PropertySet can cause an abort when reading WCS

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: afw
    • Labels:
      None
    • Templates:
    • Story Points:
      1
    • Team:
      Architecture

      Description

      When reading a WCS with readFitsWcs in afw, then a SIGABRT is thrown if the associated PropertyList has a value for a NaN because astshim complains that fits header cards cannot contain NaN (even though I believe this is just a convenience and no fits headers are persisted in this way).

      The fix according to Tim Jenness is to check for a NaN on line 351 of frameSetUtils.cc: https://github.com/lsst/afw/blob/7c0af834f66868c8a223af827bd0fe110619bc2e/src/geom/detail/frameSetUtils.cc#L351 and replace it with a legal sentinel value.

        Attachments

          Activity

            People

            • Assignee:
              tjenness Tim Jenness
              Reporter:
              erykoff Eli Rykoff
              Reviewers:
              Eli Rykoff
              Watchers:
              Eli Rykoff, Jim Bosch, Tim Jenness
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel