Beispiel #1
0
 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)
Beispiel #2
0
 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)
Beispiel #3
0
 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)
Beispiel #4
0
    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)