示例#1
0
    def overlaps(self):
        """Returns the list of fields which overlap.

        Returns
        -------
        fields : array
            List of field identifiers which are within `constants.FIELD_MAXDIST`
        """
        dist = util.sphere_dist(self.ra, self.dec, IPHASQC['ra'], IPHASQC['dec'])
        idx = (constants.IPHASQC_COND_RELEASE
               & (dist < constants.FIELD_MAXDIST)
               & (self.fieldid != IPHASQC['id']))
        return IPHASQC['id'][idx]
示例#2
0
    def overlap_runs(self):
        """Returns the list of overlapping exposures in the same band.

        Returns
        -------
        runs : list
            List of overlapping exposure identifiers.
        """
        cond_run = (IPHASQC['run_'+str(self.band)] == self.run)
        idx = np.argwhere(cond_run)[0]
        myra = IPHASQC['ra'][idx]
        mydec = IPHASQC['dec'][idx]

        dist = util.sphere_dist(myra, mydec, IPHASQC['ra'], IPHASQC['dec'])
        idx2 = ( constants.IPHASQC_COND_RELEASE
                    & (dist < constants.FIELD_MAXDIST)
                    & (IPHASQC['run_'+str(self.band)] != self.run)
                )

        return IPHASQC['run_'+str(self.band)][idx2]