コード例 #1
0
ファイル: classes.py プロジェクト: bee-path/science
 def rgyr(self,add=True):
     """ Computes CM and rgyr of the flight (just for checking
     If add=True, then adds also to flight attributes
     """
     a=st.gyrad(self.UTM)[-1]
     b=st.gyrad(self.UTM)[0]
     b=tuple(st.gyrad(self.UTM)[0])
     if add:
         self.add_atts('r_gyr',a)
         self.add_atts('CM',b)
     return a,b
コード例 #2
0
ファイル: classes.py プロジェクト: bee-path/science
 def rgyr(self,add=True,stops=True):
     """ Computes CM and rgyr of the Trace using all points in UTM
     If add: True, adds also as flight att
     if stops: True counts as well stopped points
     """
     a=st.gyrad(self.allpoints(stops=stops))[-1]
     b=tuple(st.gyrad(self.allpoints(stops=stops))[0])
     if add:
         self.add_atts('r_gyr',a)
         self.add_atts('CM',b)
     return a,b