Exemplo n.º 1
0
    def compute_transit(self, pv, _i=None, _a=None, _k=None):
        _i = _i or uf.i_from_bitpew(pv[4], pv[3], pv[1], pv[7], pv[8])
        _a = _a or uf.a_from_bitpew(pv[4], pv[3], pv[1], pv[7], pv[8])
        _k = _k or m.sqrt(pv[2])

        cns =  self.contamination_from_ratios(pv[5], self.filter_centers[0], self.filter_centers[1:], pv[6])

        zs = [orbits.z_eccentric(time, pv[0], pv[1], _a, _i, pv[7], pv[8], nthreads=self.nthreads) for time in self.time]
        f  = [self.tmodel(z, _k, pv[self.ld_sl[ic]], cns[ic]) for z,ic in zip(zs, self.cid)]

        return f
Exemplo n.º 2
0
    def compute_transit(self, pv, _i=None, _a=None, _k=None):
        _i = _i or uf.i_from_bitpew(pv[4], pv[3], pv[1], pv[6], pv[7])
        _a = _a or uf.a_from_bitpew(pv[4], pv[3], pv[1], pv[6], pv[7])
        _k = _k or m.sqrt(pv[2])

        #zs = [orbits.z_eccentric_ip(time, pv[0], pv[1], _a, _i, pv[6], pv[7], nthreads=self.nthreads, update=upd) for time,upd in zip(self.time, self.upd)]

        zs = [orbits.z_eccentric(time, pv[0], pv[1], _a, _i, pv[6], pv[7], nthreads=self.nthreads) for time in self.time]
        f  = [self.tmodel(z, _k, pv[self.ld_sl[ic]], pv[5]) for z,ic in zip(zs, self.cid)]

        return f
Exemplo n.º 3
0
    def compute_transit(self, pv, _i=None, _a=None, _k=None):
        _i = _i or uf.i_from_bitpew(pv[4], pv[3], pv[1], pv[6], pv[7])
        _a = _a or uf.a_from_bitpew(pv[4], pv[3], pv[1], pv[6], pv[7])
        _k = _k or m.sqrt(pv[2])

        #zs = [orbits.z_eccentric_ip(time, pv[0], pv[1], _a, _i, pv[6], pv[7], nthreads=self.nthreads, update=upd) for time,upd in zip(self.time, self.upd)]

        zs = [
            orbits.z_eccentric(time,
                               pv[0],
                               pv[1],
                               _a,
                               _i,
                               pv[6],
                               pv[7],
                               nthreads=self.nthreads) for time in self.time
        ]
        f = [
            self.tmodel(z, _k, pv[self.ld_sl[ic]], pv[5])
            for z, ic in zip(zs, self.cid)
        ]

        return f
Exemplo n.º 4
0
    def compute_transit(self, pv, _i=None, _a=None, _k=None):
        _i = _i or uf.i_from_bitpew(pv[4], pv[3], pv[1], pv[7], pv[8])
        _a = _a or uf.a_from_bitpew(pv[4], pv[3], pv[1], pv[7], pv[8])
        _k = _k or m.sqrt(pv[2])

        cns = self.contamination_from_ratios(pv[5], self.filter_centers[0],
                                             self.filter_centers[1:], pv[6])

        zs = [
            orbits.z_eccentric(time,
                               pv[0],
                               pv[1],
                               _a,
                               _i,
                               pv[7],
                               pv[8],
                               nthreads=self.nthreads) for time in self.time
        ]
        f = [
            self.tmodel(z, _k, pv[self.ld_sl[ic]], cns[ic])
            for z, ic in zip(zs, self.cid)
        ]

        return f