コード例 #1
0
ファイル: catalogio.py プロジェクト: jonathansick/daopilot
 def write_regions(self, outputPath, markersize=10, markercolour='red',
         marker="circle"):
     """Writes a .reg file in the image frame with all sources
     
     .. todo:: Port this to pyregion/astropy package
     """
     pointList = PointList()
     pointList.setFrame('image')
     pointList.setPoints(self.stars['x'], self.stars['y'], shapes=marker,
             colours=markercolour, size=markersize)
     pointList.writeTo(outputPath)
コード例 #2
0
ファイル: catalogio.py プロジェクト: jonathansick/daopilot
 def write_regions(self, outputPath):
     """Creates a DS9-compatible .reg file with the locations of the PSF
     candidates.
     """
     serials = self.stars.keys()
     x = [self.stars[idnum]['x'] for idnum in self.stars.keys()]
     y = [self.stars[idnum]['y'] for idnum in self.stars.keys()]
     
     psfPoints = PointList()
     psfPoints.setFrame('image')
     psfPoints.setPoints(x, y, size=15, shapes="x", labels=serials,
             colours="red")
     psfPoints.writeTo(outputPath)
コード例 #3
0
ファイル: catalogio.py プロジェクト: jonathansick/daopilot
 def write_regions(self,
                   outputPath,
                   markersize=10,
                   markercolour='red',
                   marker="circle"):
     """Writes a .reg file in the image frame with all sources
     
     .. todo:: Port this to pyregion/astropy package
     """
     pointList = PointList()
     pointList.setFrame('image')
     pointList.setPoints(self.stars['x'],
                         self.stars['y'],
                         shapes=marker,
                         colours=markercolour,
                         size=markersize)
     pointList.writeTo(outputPath)
コード例 #4
0
ファイル: catalogio.py プロジェクト: jonathansick/daopilot
    def write_regions(self, outputPath):
        """Creates a DS9-compatible .reg file with the locations of the PSF
        candidates.
        """
        serials = self.stars.keys()
        x = [self.stars[idnum]['x'] for idnum in self.stars.keys()]
        y = [self.stars[idnum]['y'] for idnum in self.stars.keys()]

        psfPoints = PointList()
        psfPoints.setFrame('image')
        psfPoints.setPoints(x,
                            y,
                            size=15,
                            shapes="x",
                            labels=serials,
                            colours="red")
        psfPoints.writeTo(outputPath)