示例#1
0
    def __init__(self, fromid, toid, val, dist=None, stdev=None, textTable=None):
        """height difference:
            fromid    id of stand point
            toid    id of target
            val    measured value in meters
            stdev    standard deviation in milimeters
            dist    distance of leveling section in kilometers
        """
        if dist == None and stdev == None:
                raise ObsHeightDiffError, "no stdev and no dist set"
        if dist != None and stdev != None:
                raise ObsHeightDiffError, "both stdev and dist set"
        
        if textTable == None:
            textTable = obs_height_diff_table()

        super(ObsHeightDiff, self).__init__(tag="dh", fromid=fromid, toid=toid,
                                            val=val, stdev=stdev,
                                            textTable=textTable,
                                            stdevscale=1e3)
    
        self.dist = dist
        self._dim = 1
示例#2
0
    def __init__(self, textTable=None):

        if textTable == None:
            textTable = obs_height_diff_table()

        super(ObsClusterHeightDiff, self).__init__(textTable=textTable)