pyGrav_main.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:pyGrav 作者: basileh 项目源码 文件源码
def automaticSurveySelection(self):
        """
        Option for automatic selection of surveys among the raw data set.

        Algo:
        A time threshold is asked to the user, and used as a criteria to 
        separate different survey. Time intervals between measurement dates for
        which station number changes are compared to the threshold. 
        If it is higher, a new survey is considered.

        The base station is asked to the user

        Remarks:
        Only works when the base station (asked to the user) is allways the 
        same. Whether the base station number is the same as the cycling
        station number is asked to the user.
        when complicated loop geometries are used, or for specific survey 
        designs, this option is likely to fail.
        """
        #set the survey selection option required by the survey populating 
        #function:
        self.survey_selection_option=1
        text, ok = QtGui.QInputDialog.getText(self, 'Input parameters', 
            'time threshold (hr)')        
        if ok:
            self.t_threshold=int(text)
            text, ok2 = QtGui.QInputDialog.getText(self, 'Input parameters', 
            'base station=cycling station? (1=y/0=n)')        
            if ok2:
                self.base_cycling_station=int(text)
                #call the next generic step of the survey selection process
                self.baseStationSelection()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号