def test_004_basic_offset_with_GX(self): """ Simple using GX fixed station plus bearing, distance, zenith distance """ net = Network.Network() st1 = Station.Station("ST1", llh=(171.0, -45.0, 10.0)) st2 = Station.Station("ST2", llh=(171.35, -44.82, 20.0)) obs = [] obs.append(GX(st1)) obs.append(AZ(st1, st2)) obs.append(SD(st1, st2)) obs.append(ZD(st1, st2)) self.checkLocator(net, obs, [st1, st2])
def test_000_basic_offset(self): """ Simple offset bearing, distance, zenith distance """ net = Network.Network() st1 = Station.Station("ST1", llh=(171.0, -45.0, 10.0)) st2 = Station.Station("ST2", llh=(171.35, -44.82, 20.0)) net.addStation(st1) obs = [] obs.append(AZ(st1, st2)) obs.append(SD(st1, st2)) obs.append(ZD(st1, st2)) self.checkLocator(net, obs, [st2])
def test_003_basic_offset_ha(self): """ Simple offset angle, distance, zenith distance """ net = Network.Network() st1 = Station.Station("ST1", llh=(171.0, -45.0, 10.0)) st3 = Station.Station("ST3", llh=(171.02, -45.01, 10.0)) st2 = Station.Station("ST2", llh=(171.35, -44.82, 20.0)) net.addStation(st1) net.addStation(st3) obs = [] obs.append(HA(st1, [st3, st2])) obs.append(SD(st1, st2)) obs.append(ZD(st1, st2)) self.checkLocator(net, obs, [st2])
def test_001_basic_offset(self): """ Simple offset bearing, distance, zenith distance """ st1 = Station.Station("ST1", llh=(171.0, -45.0, 10.0)) st2 = Station.Station("ST2", llh=(171.35, -44.82, 20.0)) obs = [] obs.append(AZ(st1, st2)) obs.append(SD(st1, st2)) obs.append(ZD(st1, st2)) obs.append(LV(st1, st2)) self.offsetStation(st2, [0.5, 1.0, -0.3]) net = Network.Network() net.addStation(st1) net.addStation(st2) adj = Adjustment.Adjustment(stations=net, observations=obs, verbose=True) adj.setConfig("fix", "ST1") adj.setConfig("refraction_coefficient", "0.0") self.runAdjustment("Test 1", adj)
def test_005_basic_offset(self): """ With station heights """ st1 = Station.Station("ST1", llh=(171.0, -45.0, 10.0)) st2 = Station.Station("ST2", llh=(171.35, -44.82, 20.0)) obs = [] obs.append(AZ(st1, st2, insthgt=2.5, trgthgt=4.1)) obs.append(SD(st1, st2, insthgt=2.5, trgthgt=-4.1)) obs.append(ZD(st1, st2, insthgt=-2.5, trgthgt=4.1)) obs.append(LV(st1, st2, insthgt=-2.5, trgthgt=-4.1)) self.offsetStation(st2, [0.5, 1.0, -0.3]) net = Network.Network() net.addStation(st1) net.addStation(st2) adj = Adjustment.Adjustment(stations=net, observations=obs, verbose=True) adj.setConfig("fix", "ST1") adj.setConfig("refraction_coefficient", "0.0") self.runAdjustment("Test 5", adj)
def test_101_locator_plugin_config_load(self): """ Station locator plugin via configuration """ from Geodetic.StationLocatorPlugin import StationLocatorPlugin st1 = Station.Station("ST1", llh=(171.0, -45.0, 10.0)) st2 = Station.Station("ST2", llh=(171.35, -44.82, 20.0)) obs = [] obs.append(AZ(st1, st2)) obs.append(SD(st1, st2)) obs.append(ZD(st1, st2)) self.offsetStation(st2, [0.5, 1.0, -0.3]) net = Network.Network() net.addStation(st1) adj = Adjustment.Adjustment(stations=net, observations=obs, verbose=True) adj.setConfig("use_plugin", "station_locator_plugin") adj.setConfig("fix", "ST1") adj.setConfig("calculate_missing_stations", "yes") adj.setConfig("debug_calculate_missing_stations", "yes") adj.setConfig("refraction_coefficient", "0.0") self.runAdjustment("Test 101", adj)