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

Add readMatches back to meas_astrom

    Details

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

      Description

      Recent changes to meas_astrom accidentally removed a function readMatches (copied below). Please restore it, preferably in its own module (though if someday we have more small python functions we may want a utils.py module).

      Also please include a unit test.

      def readMatches(butler, dataId, sourcesName='icSrc', matchesName='icMatch', config=MeasAstromConfig(), sourcesFlags=afwTable.SOURCE_IO_NO_FOOTPRINTS):
          """Read matches, sources and catalogue; combine.
          @param butler Data butler
          @param dataId Data identifier for butler
          @param sourcesName Name for sources from butler
          @param matchesName Name for matches from butler
          @param sourcesFlags Flags to pass for source retrieval
          @returns Matches
          """
          sources = butler.get(sourcesName, dataId, flags=sourcesFlags)
          packedMatches = butler.get(matchesName, dataId)
          astrom = Astrometry(config)
          return astrom.joinMatchListWithCatalog(packedMatches, sources)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lauren Lauren MacArthur
                Reporter:
                rowen Russell Owen
                Reviewers:
                Russell Owen
                Watchers:
                John Swinbank, Lauren MacArthur, Paul Price, Russell Owen
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel