Exemplo n.º 1
0
    def __init__(self, result):
        """Set exposure information based on a query result from a db connection
        """
        self._ind = -1

        dataId = dict(
            run=result[self._nextInd],
            rerun=result[self._nextInd],
            camcol=result[self._nextInd],
            field=result[self._nextInd],
            filter=result[self._nextInd],
        )
        coordList = []
        for i in range(4):
            coordList.append(
                IcrsCoord(
                    afwGeom.Angle(result[self._nextInd], afwGeom.degrees),
                    afwGeom.Angle(result[self._nextInd], afwGeom.degrees),
                ))
        BaseExposureInfo.__init__(self, dataId, coordList)

        self.strip = result[self._nextInd]
        self.fwhm = result[self._nextInd]
        self.sky = result[self._nextInd]
        self.airmass = result[self._nextInd]
        self.quality = result[self._nextInd]
        self.isBlacklisted = result[self._nextInd]

        # compute RHL quality factors
        self.q = self.sky * (self.fwhm**2)
        self.qscore = None  # not known yet
    def __init__(self, result):
        """Set exposure information based on a query result from a db connection
        """
        self._ind = -1

        dataId = dict(
           run = result[self._nextInd],
           rerun = result[self._nextInd],
           camcol = result[self._nextInd],
           field = result[self._nextInd],
           filter = result[self._nextInd],
        )
        coordList = []
        for i in range(4):
            coordList.append(
                IcrsCoord(
                    afwGeom.Angle(result[self._nextInd], afwGeom.degrees),
                    afwGeom.Angle(result[self._nextInd], afwGeom.degrees),
                )
            )
        BaseExposureInfo.__init__(self, dataId, coordList)

        self.strip = result[self._nextInd]
        self.fwhm = result[self._nextInd]
        self.sky = result[self._nextInd]
        self.airmass = result[self._nextInd]
        self.quality = result[self._nextInd]
        self.isBlacklisted = result[self._nextInd]
        
        # compute RHL quality factors
        self.q = self.sky * (self.fwhm**2)
        self.qscore = None # not known yet
    def __init__(self, result):
        """Set exposure information based on a query result from a db connection
        """
        result = list(result)
        dataId = dict(
           run = result.pop(0),
           camcol = result.pop(0),
           field = result.pop(0),
           filter = result.pop(0),
        )
        coordList = [IcrsCoord(afwGeom.Angle(result.pop(0), afwGeom.degrees),
                                    afwGeom.Angle(result.pop(0), afwGeom.degrees)) for i in range(4)]

        BaseExposureInfo.__init__(self, dataId=dataId, coordList=coordList)
        self.fluxMag0 = result.pop(0)
        self.fluxMag0Sigma = result.pop(0)
Exemplo n.º 4
0
    def __init__(self, result):
        """Set exposure information based on a query result from a db connection
        """
        result = list(result)
        dataId = dict(
            run=result.pop(0),
            camcol=result.pop(0),
            field=result.pop(0),
            filter=result.pop(0),
        )
        coordList = [IcrsCoord(afwGeom.Angle(result.pop(0), afwGeom.degrees),
                               afwGeom.Angle(result.pop(0), afwGeom.degrees)) for i in range(4)]

        BaseExposureInfo.__init__(self, dataId=dataId, coordList=coordList)
        self.fluxMag0 = result.pop(0)
        self.fluxMag0Sigma = result.pop(0)
Exemplo n.º 5
0
 def __init__(self, result):
     """Set exposure information based on a query result from a db connection
     """
     self._ind = -1
     dataId = dict(raft=result[self._nextInd],
                   visit=result[self._nextInd],
                   sensor=result[self._nextInd],
                   filter=result[self._nextInd])
     coordList = []
     for i in range(4):
         coordList.append(
             IcrsCoord(
                 afwGeom.Angle(result[self._nextInd], afwGeom.degrees),
                 afwGeom.Angle(result[self._nextInd], afwGeom.degrees),
             ))
     self.fwhm = result[self._nextInd]
     BaseExposureInfo.__init__(self, dataId, coordList)
    def __init__(self, result):
        """Set exposure information based on a query result from a db connection
        """
        self._ind = -1

        dataId = dict(visit=result[self._nextInd], ccdnum=result[self._nextInd], filter=result[self._nextInd])
        coordList = []
        for i in range(4):
            coordList.append(
                IcrsCoord(
                    afwGeom.Angle(result[self._nextInd], afwGeom.degrees),
                    afwGeom.Angle(result[self._nextInd], afwGeom.degrees),
                )
            )
        BaseExposureInfo.__init__(self, dataId, coordList)

        self.fwhm = result[self._nextInd]
        self.airmass = result[self._nextInd]
        self.filename = result[self._nextInd]
    def __init__(self, result):
        """Set exposure information based on a query result from a db connection
        """
        self._ind = -1

        dataId = dict(
            visit=result[self._nextInd],
            ccdnum=result[self._nextInd],
            filter=result[self._nextInd],
        )
        coordList = []
        for i in range(4):
            coordList.append(
                afwGeom.SpherePoint(result[self._nextInd],
                                    result[self._nextInd], afwGeom.degrees))
        BaseExposureInfo.__init__(self, dataId, coordList)

        self.fwhm = result[self._nextInd]
        self.airmass = result[self._nextInd]
        self.filename = result[self._nextInd]
Exemplo n.º 8
0
 def runDataRef(self,
                patchRef,
                coordList,
                makeDataRefList=True,
                selectDataList=[]):
     return Struct(
         dataRefList=[s.dataRef for s in selectDataList],
         exposureInfoList=[
             BaseExposureInfo(s.dataRef.dataId, None)
             for s in selectDataList
         ],
     )