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

Add convenience method to Exposure to give the convex polygon associated with the bbox

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: afw
    • Labels:
      None

      Description

      Many times it has come up that users/developers want to find out which ra/dec points overlap a given exposure. Unfortunately, converting the ra/dec to x/y often fails due to extrapolation issues. The other way works, but there are a few lines to convert a bbox to a sphgeom convex polygon (given a wcs) that aren't obvious. This will add a convenience method to the exposure class in python to return this convex polygon (though necessarily approximate because of projections). This will allow poly.contains() and other manipulations of the sphgeom polygon.

        Attachments

          Activity

          Show
          erykoff Eli Rykoff added a comment - PR is here: https://github.com/lsst/afw/pull/629 Jenkins: https://ci.lsst.codes/blue/organizations/jenkins/stack-os-matrix/detail/stack-os-matrix/35852/pipeline
          Show
          erykoff Eli Rykoff added a comment - Final jenkins: https://ci.lsst.codes/blue/organizations/jenkins/stack-os-matrix/detail/stack-os-matrix/35956/pipeline

            People

            Assignee:
            erykoff Eli Rykoff
            Reporter:
            erykoff Eli Rykoff
            Reviewers:
            Nate Lust
            Watchers:
            Eli Rykoff, John Parejko, Nate Lust, Nima Sedaghat
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Jenkins

                No builds found.