Example #1
0
    def __init__(self, toid, val, fromid=None, fromdh=None, todh=None,
                 stdev=None, textTable=None):
        """slope distance:
            toid    id of target
            val    measured value in meters
            stdev    standard deviation in milimeters
            todh    heidht of target in meters
        """
        
        if textTable == None:
            textTable = obs_cluster_table()

        super(ObsSDistance, self).__init__(tag="s-distance", toid=toid, todh=todh, 
                                           val=val, fromid=fromid, fromdh=fromdh,
                                           stdev=stdev, textTable=textTable,
                                           stdevscale=1e3)
        self._dim = 1
Example #2
0
    def __init__(self, toid, val, fromdh=None, todh=None, stdev=None,
                textTable=None):
        """horizontal direction:
            to    id of target
            val    measured value in gons
            stdev    standard deviation in 10*miligons
            todh    heidht of target in meters
        """

        if textTable == None:
            textTable = obs_cluster_table()

        from math import pi

        super(ObsDirection, self).__init__(tag="direction", toid=toid, todh=todh, val=val,
                fromdh=fromdh, stdev=stdev, textTable=textTable,
                                           valscale=200.0/pi, stdevscale=1e4)
        self._dim = 1