nvector.tests package

Submodules

nvector.tests.test_frames module

Created on 18. des. 2015

@author: pab

class nvector.tests.test_frames.TestExamples(methodName='runTest')[source][source]

Bases: unittest.case.TestCase

test_Ex10_cross_track_distance()[source][source]
test_Ex1_A_and_B_to_delta_in_frame_N()[source][source]
test_Ex2_B_and_delta_in_frame_B_to_C_in_frame_E()[source][source]
test_Ex3_ECEF_vector_to_geodetic_latitude()[source][source]
test_Ex4_geodetic_latitude_to_ECEF_vector()[source][source]
test_Ex5_great_circle_distance()[source][source]
test_Ex6_interpolated_position()[source][source]
test_Ex7_mean_position()[source][source]
test_Ex8_position_A_and_azimuth_and_distance_to_B()[source][source]
test_Ex9_intersection()[source][source]
test_alternative_great_circle_distance()[source][source]
test_exact_ellipsoidal_distance()[source][source]
test_intersection_of_parallell_paths()[source][source]
class nvector.tests.test_frames.TestFrames(methodName='runTest')[source][source]

Bases: unittest.case.TestCase

test_compare_B_frames()[source][source]
test_compare_E_frames()[source][source]
test_compare_L_frames()[source][source]
test_compare_N_frames()[source][source]

nvector.tests.test_geodesic module

class nvector.tests.test_geodesic.GeodSolveTest(methodName='runTest')[source][source]

Bases: unittest.case.TestCase

test_GeodSolve0()[source][source]
test_GeodSolve1()[source][source]
test_GeodSolve10()[source][source]
test_GeodSolve11()[source][source]
test_GeodSolve12()[source][source]
test_GeodSolve14()[source][source]
test_GeodSolve17()[source][source]
test_GeodSolve2()[source][source]
test_GeodSolve29()[source][source]
test_GeodSolve33()[source][source]
test_GeodSolve4()[source][source]
test_GeodSolve5()[source][source]
test_GeodSolve55()[source][source]
test_GeodSolve6()[source][source]
test_GeodSolve9()[source][source]
class nvector.tests.test_geodesic.GeodesicTest(methodName='runTest')[source][source]

Bases: unittest.case.TestCase

test_direct()[source][source]
test_inverse()[source][source]
testcases = [[35.60777, -139.44815, 111.09874842956033, -11.17491, -69.95921, 129.28927088970877, 8935244.56048183, 80.50729714281974, 6273170.205530384, 0.16606318447386068, 0.16479116945612937, 12841384694976.432], [55.52454, 106.05087, 22.0200598809828, 77.03196, 197.18234, 109.11204111067151, 4105086.171392441, 36.89274069044589, 3828869.3344387608, 0.8007634960809261, 0.8010100698420101, 61674961290615.62], [-21.97856, 142.59065, -32.44456876433189, 41.84138, 98.56635, -41.84359951440466, 8394328.894657671, 75.62930491011522, 6161154.577311061, 0.2481633923395038, 0.24930251203627893, -6637997720646.717], [-66.99028, 112.2363, 173.73491240878403, -12.70631, 285.90344, 2.512956620913668, 11150344.231208025, 100.27863418115575, 6289939.567044669, -0.17199490274700385, -0.17722569526345708, -121287239862139.75], [-17.42761, 173.34268, -159.03355766119293, -15.84784, 5.93557, -20.78748465153699, 16076603.163118068, 144.64010881028625, 3732902.1583877187, -0.8127363870007047, -0.8129980051915447, 97825992354058.7], [32.84994, 48.28919, 150.492927788122, -56.28556, 202.29132, 48.11344939981676, 16727068.943816446, 150.5657999854666, 3147838.191018094, -0.8733491808692313, -0.8650503676711063, -72445258525585.02], [6.96833, 52.74123, 92.58158538631771, -7.39675, 206.17291, 90.72169216592391, 17102477.249695837, 154.14736623911355, 2772035.616991758, -0.8999128252030245, -0.8998689217711074, -1311796973197.995], [-50.56724, -16.30485, -105.43967990759016, -33.56571, -94.97412, -47.34854783565033, 6455670.511866869, 58.083719495371255, 5409150.7979815835, 0.5305350803599727, 0.529887226444366, 41071447902810.05], [-58.93002, -8.90775, 140.96539790250068, -8.91104, 133.13503, 19.255429433416598, 11756066.021986462, 105.75569124140688, 6151101.227070854, -0.26548622269867184, -0.2706848387451074, -86143460552774.73], [-68.82867, -74.28391, 93.77434776311487, -50.63005, -8.36685, 34.65564085411343, 3956936.926063544, 35.572254987389286, 3708890.9544062656, 0.8144396373638351, 0.8142085981535834, -41845309450093.79], [-10.62672, -32.0898, -86.42671328674776, 5.883, -134.31681, -80.47378097103487, 11470869.386456301, 103.38739563450406, 6184411.662265971, -0.23138683500430238, -0.2315509762228679, 4198803992123.548], [-21.76221, 166.90563, 29.31942120693643, 48.72884, 213.97627, 43.50867194641017, 9098627.398655491, 81.96347671612196, 6299240.916699228, 0.13965943368590333, 0.14152969707656796, 10024709850277.477], [-19.79938, -174.47484, 71.16727578017154, -11.99349, -154.35109, 65.58909977519923, 2319004.860116939, 20.896611684802387, 2267960.8703918327, 0.9342700186712585, 0.9342488713503279, -3935477535005.785], [-11.95887, -116.94513, 92.71261983045255, 4.57352, 7.16501, 78.64960934409585, 13834722.580140138, 124.68868416108977, 5228093.177931598, -0.5687935675566647, -0.5691873195239722, -9919582785894.854], [-87.85331, 85.66836, -65.12031304024275, 66.48646, 16.09921, -4.888658719272296, 17286615.314714465, 155.58592449699137, 2635887.472911018, -0.9069797577139858, -0.9109560888304277, 42667211366919.53], [1.74708, 128.32011, -101.58484363117385, -11.16617, 11.87109, -86.32579329643748, 12942901.124134742, 116.65051248430186, 5682744.841327057, -0.44857868222697644, -0.4482449034000773, 10763055294345.652], [-25.72959, -144.90758, -153.6474686931172, -57.70581, -269.17879, -48.34398315887649, 9413446.745245311, 84.6645338384043, 6356176.689888128, 0.09492245755254702, 0.09737058264766572, 74515122850712.44], [-41.22777, 122.32875, 14.285113402275739, -7.57291, 130.37946, 10.805303085187369, 3812686.035106021, 34.34330804743883, 3588703.8812128855, 0.8260522259321789, 0.825721582009202, -2456961531057.857], [11.01307, 138.25278, 79.43682622782374, 6.62726, 247.05981, 103.70809021552266, 11911190.819018409, 107.34166995411458, 6070904.722786735, -0.297676089236574, -0.2978514339025232, 17121631423099.695], [-29.47124, 95.14681, -163.77913044168838, -27.46601, -69.15955, -15.90933594555497, 13487015.838114548, 121.29402671574228, 5481428.994573639, -0.5152722554537326, -0.5155658796472179, 104679964020340.31]]

nvector.tests.test_nvector module

This file contains solutions to the examples given at www.navlab.net/nvector

The content of this file is based on the following publication:

Gade, K. (2010). A Nonsingular Horizontal Position Representation, The Journal of Navigation, Volume 63, Issue 03, pp 395-417, July 2010. (www.navlab.net/Publications/A_Nonsingular_Horizontal_Position_Representation.pdf)

Copyright (c) 2015, Norwegian Defence Research Establishment (FFI) All rights reserved.

Originated: 2015.03.26 Kenneth Gade, FFI

NOTES: - All angles are by default assumed to be in radians, if an angle is in degrees, the variable name has the following ending: _deg

  • The dot product (inner product) of vectors x and y is written dot(x,y)

here to make the code more readable for those unfamiliar with Matlab. In Matlab one would normally write x’*y (i.e. x transposed times y)

class nvector.tests.test_nvector.TestNvector(methodName='runTest')[source][source]

Bases: unittest.case.TestCase

test_Ex10_cross_track_distance()[source][source]
test_Ex1_A_and_B_to_delta_in_frame_N()[source][source]
test_Ex2_B_and_delta_in_frame_B_to_C_in_frame_E()[source][source]
test_Ex3_ECEF_vector_to_geodetic_latitude()[source][source]
test_Ex4_geodetic_latitude_to_ECEF_vector()[source][source]
test_Ex5_great_circle_distance()[source][source]
test_Ex6_interpolated_position()[source][source]
test_Ex7_mean_position()[source][source]
test_Ex8_position_A_and_azimuth_and_distance_to_B()[source][source]
test_Ex9_intersection()[source][source]
test_R2xyz()[source][source]
test_R2zxy()[source][source]
test_n_E_and_wa2R_EL()[source][source]

Module contents