startracker.py
def print_match(self, body_correction=None, angrate_string=""):
        """Print stellar match for debug."""
        if body_correction is None:
            body_correction = np.eye(3)
        if self.match is not None:
            self.match.winner.print_ori()
        db = self.db_stars
        im = self.img_stars
        if db is None:
            if self.db_stars_from_lm is None:
                # neither relative nor absolute matching could be used
                print("")
                return
            else:
                db = self.db_stars_from_lm
        assert(db.size() == im.size())
        star_out = []
        for i in range(db.size()):
            s_im = im.get_star(i)
            s_db = db.get_star(i)
            if (s_db.id >= 0):
                weight = 1.0 / (s_db.sigma_sq + s_im.sigma_sq)
                temp = np.dot(bodyCorrection,
                              np.array([[s_im.x], [s_im.y], [s_im.z]]))
                star_out.append(str(temp[0, 0]) + ',' +
                                str(temp[1, 0]) + ',' +
                                str(temp[2, 0]) + ',' +
                                str(s_db.x) + ',' +
                                str(s_db.y) + ',' +
                                str(s_db.z) + ',' +
                                str(weight))
        print("stars", len(star_out), file=sys.stderr)
        print("ang_rate: " + angrate_string, file=sys.stderr)
        print(" ".join(star_out) + " " + angrate_string)
Print stellar match for debug.
Print stellar match for debug.
Print stellar match for debug .
def print_match(self, body_correction=None, angrate_string=""):
        if body_correction is None:
            body_correction = np.eye(3)
        if self.match is not None:
            self.match.winner.print_ori()
        db = self.db_stars
        im = self.img_stars
        if db is None:
            if self.db_stars_from_lm is None:
                print("")
                return
            else:
                db = self.db_stars_from_lm
        assert(db.size() == im.size())
        star_out = []
        for i in range(db.size()):
            s_im = im.get_star(i)
            s_db = db.get_star(i)
            if (s_db.id >= 0):
                weight = 1.0 / (s_db.sigma_sq + s_im.sigma_sq)
                temp = np.dot(bodyCorrection,
                              np.array([[s_im.x], [s_im.y], [s_im.z]]))
                star_out.append(str(temp[0, 0]) + ',' +
                                str(temp[1, 0]) + ',' +
                                str(temp[2, 0]) + ',' +
                                str(s_db.x) + ',' +
                                str(s_db.y) + ',' +
                                str(s_db.z) + ',' +
                                str(weight))
        print("stars", len(star_out), file=sys.stderr)
        print("ang_rate: " + angrate_string, file=sys.stderr)
        print(" ".join(star_out) + " " + angrate_string)
def print_match ( self , body_correction = None , angrate_string = "" ) : if body_correction is None : body_correction = np . eye ( 3 ) if self . match is not None : self . match . winner . print_ori ( ) db = self . db_stars im = self . img_stars if db is None : if self . db_stars_from_lm is None : print ( "" ) return else : db = self . db_stars_from_lm assert ( db . size ( ) == im . size ( ) ) star_out = [ ] for i in range ( db . size ( ) ) : s_im = im . get_star ( i ) s_db = db . get_star ( i ) if ( s_db . id >= 0 ) : weight = 1.0 / ( s_db . sigma_sq + s_im . sigma_sq ) temp = np . dot ( bodyCorrection , np . array ( [ [ s_im . x ] , [ s_im . y ] , [ s_im . z ] ] ) ) star_out . append ( str ( temp [ 0 , 0 ] ) + ',' + str ( temp [ 1 , 0 ] ) + ',' + str ( temp [ 2 , 0 ] ) + ',' + str ( s_db . x ) + ',' + str ( s_db . y ) + ',' + str ( s_db . z ) + ',' + str ( weight ) ) print ( "stars" , len ( star_out ) , file = sys . stderr ) print ( "ang_rate: " + angrate_string , file = sys . stderr ) print ( " " . join ( star_out ) + " " + angrate_string )
Print stellar match for debug.
Print stellar match for debug .
"""Print stellar match for debug.""" # neither relative nor absolute matching could be used
self
body_correction
angrate_string