turnAngleGc: Calculates turning angles on great circle tracks

Description Usage Arguments Details Value Author(s) Examples

Description

This function returns the turn angels of a great circle track.

Usage

1
2
  ## S4 method for signature '.MoveTrackSingle'
turnAngleGc(x)

Arguments

x

Move object, in long lat projection

Details

On great circle tracks the bearing of arrival on a point is not the same as witch the previous point was left. This function returns the difference between these bearings between -180 and 180. The bearings are calculated using the functions bearing and finalBearing of the geosphere package.

Value

The function returns the turning angles in degrees.

Author(s)

Bart Kranstauber

Examples

1
2

Example output

Loading required package: geosphere
Loading required package: sp
Loading required package: raster
Loading required package: rgdal
rgdal: version: 1.2-10, (SVN revision 673)
 Geospatial Data Abstraction Library extensions to R successfully loaded
 Loaded GDAL runtime: GDAL 1.10.1, released 2013/08/26
 Path to GDAL shared files: /usr/share/gdal/1.10
 Loaded PROJ.4 runtime: Rel. 4.8.0, 6 March 2012, [PJ_VERSION: 480]
 Path to PROJ.4 shared files: (autodetected)
WARNING: no proj_defs.dat in PROJ.4 shared files
 Linking to sp version: 1.2-3 
  [1]   55.9689186 -130.9348850 -159.6998484   24.8448813 -179.1694693
  [6]  108.6599034  166.6312357  -21.7280062   77.7865332  -58.7761457
 [11] -154.4085105  174.2152178  -42.1885072   85.8671274  147.2112617
 [16]   42.8863465  154.4759550 -170.9687164  -69.6594748 -165.6687942
 [21]  104.7342382 -170.0763884 -117.9785756  117.0190008  158.0647737
 [26]  -82.3092836 -175.6557591  -17.0145075 -170.5425193  113.7665036
 [31]  106.5226705  158.3405378  176.1736867  158.8376503  129.5508785
 [36]   91.6924585  108.9309181  156.8375789   91.6284484  119.9629817
 [41]   61.1246071  177.4951301 -159.7510633   63.0789193 -106.7128847
 [46]   81.5597610  164.8871635 -147.1206107  101.0679156  155.0783924
 [51]   95.6323922 -155.8101263   45.1814706  -68.4200002  149.8504377
 [56]   31.0779615    1.7780326  -24.7317682   -0.4743547  -47.1206033
 [61]  177.0506980  161.6061420   45.9613514 -173.1065471    5.2394545
 [66]  -82.9170098   12.4352551   11.8624553  -96.7901271   97.7948736
 [71]    6.3434938  -51.7797436   32.7390790   -2.1605855  -28.5962493
 [76]   17.1480729  -66.2391000   13.2223377 -146.5040985  -34.9471637
 [81]  -89.1568012  175.3635419  -73.2626520  137.5607965 -177.1849234
 [86] -107.1874252  -48.1297667   39.3209615  -93.3935943   -5.1339855
 [91]  -69.3172972    3.3266983  -19.7351142 -171.3049354 -144.6192233
 [96]  104.5094027 -151.0229088 -127.4994049  176.7040058 -179.3618628
[101]  -43.4740395 -129.4377421 -168.4590575   -2.1933356   10.3053269
[106]  -89.1081844  -61.6242578  -11.3183184  167.7442334  110.0509193
[111]    1.5469423 -178.1213356 -177.1562421  157.0780909 -152.8459967
[116]  160.8424690   37.2686702   36.3307132   19.7508764  -14.9237482
[121]   42.2286021  113.6985221  -74.7897795   37.2808596    6.9215679
[126]  -42.4977047   -0.1222327   36.1047609   83.0875074  -58.7135079
[131]   20.4645899  136.8694145    9.8011438 -111.9287257 -175.7435317
[136] -179.8346378  168.2249535    9.6128765  170.1342115  144.7571859
[141]  126.7961286   -9.1703214   28.3403707 -119.2313308  -48.2477215
[146]  131.3456183    7.7354920  -86.3239775   99.2766614  -19.1166504
[151]  -74.7171916   84.0933788   -3.4602603  -11.8141737 -167.7318899
[156]   80.7894370  -18.2475313 -164.0557484 -179.7403255  151.2944487
[161]  157.9106791   60.3420575   40.5100771  124.2058439   25.9278397
[166] -131.5632138   84.6246064   -8.0489761  172.7698142  -47.2769075
[171]  135.3116652   14.8989430 -178.5023618    7.4834284  -11.7480370
[176] -176.1949836  -27.2619268 -139.0733808 -109.9077962  -89.6090768
[181] -157.7087538  169.8055818   98.1233554    3.0371446 -159.1055042
[186]   10.1740534 -177.6243325  151.5533074  143.6326186  140.6310538
[191]   46.1531214  130.4570563  167.1001923  105.4998161  146.1197188
[196]   88.8213810   78.4869173 -163.7565415 -104.9761914 -124.6013822
[201]  -29.0819149 -107.7429988  -54.7542659 -154.8065756  150.5371913
[206]  174.5891704  -78.4339445  -14.8738872   43.0750076  -38.2745039
[211]    3.8171132  162.8430746 -164.2157677 -138.6428137  -50.0818852
[216] -157.3727298 -155.2032142   58.1898087 -145.5801443 -108.7114279
[221]  -75.8624445 -171.1801658  -33.5738826  -64.8257212  169.7307545
[226]   74.3340593   41.1072309 -100.5046575   -3.8480832   92.9000466
[231]   25.9592174   99.2481512 -123.5075648  -34.4250029  -55.2451551
[236]   11.4160956   92.3533882  166.0134821 -142.8773230 -120.1889362
[241]  147.7653472   -2.3039041  122.5208810   20.1786570  -64.7193755
[246]   45.4422666  -21.1029026   11.1352582   89.0765587  -80.9948169
[251]  171.5076560 -177.1722042 -170.7040557  -16.4175059   -3.7248344
[256]  178.6933549   85.4665463   77.1023489  156.9535212  166.5951568
[261]  -79.1898918 -172.3451017  140.0505755  157.3309938 -128.1344511
[266]  163.9012983 -175.5303569  151.6024029  123.3818704   57.3680429
[271] -119.3974409 -168.6265078  159.4827098  167.3662657 -169.2666763
[276] -177.2862909 -116.5621077  -32.9584344 -147.5233612 -148.5956771
[281] -144.8522982  -46.7442188   83.8901065  142.0314592 -107.4553091
[286]  173.1040667  129.3132907 -148.5824506   13.2377386 -167.0132389
[291]  -73.1802849   43.5400014  135.5605338  -33.3934152   51.2875830
[296]  -37.5678028   56.2774562   28.6902867   53.0659133   54.4609140
[301] -152.3424039  -80.8758819   -6.4764346 -178.2604994  177.5712364
[306] -128.1559689  -83.0550028  -16.6513563   93.6915481 -114.4860989
[311]  125.7618423  113.9943558   26.3586353   76.5716861  -33.5747777
[316]   -3.9346873  -58.7502071 -146.0670441   90.1895530  -91.0055751
[321]  161.8371886  -24.4743771  -33.3177085   46.6034351   43.4574829
[326] -123.6938687    2.7500675  123.8179165    5.1194578 -166.7066402
[331] -116.8101890   58.9746540 -121.2609984   30.5366340  -71.6429776
[336]  124.1313150  -91.3826302    1.0720363  -36.7930708  -32.5889078
[341] -151.8067926   53.4980349  -95.5108131  -48.0663493   55.2153651
[346]   39.2201965   45.9375086   46.0724219  175.4242373  172.6473510
[351]  148.3413882  -36.4049290   67.1420040  155.4363712   34.8445366
[356]    3.2246558    1.7688990  -88.2472717   74.4531120  -61.0948240
[361] -149.4247440 -116.1352882  -34.9445321  -98.2896658  -77.9101133
[366]  -94.0923940   46.0056669  -18.9336357   17.4095808  102.0779356
[371]  -12.5528768   79.3046525   -1.7461948   15.1846226   77.0732339
[376] -153.3860271  -10.4314672    8.4277320 -137.4105966 -175.6604453
[381]  -69.1449511   86.6594540 -163.2830629   79.7860052   -3.8205259
[386]  -90.9834614  173.3741787   81.9670794  162.8190313    4.2175405
[391] -163.3115248   35.8947032  -47.6502118   27.4817665   42.1203379
[396]   56.3200770    6.7592998  -23.0973964   22.7464780  -39.3082639
[401]  -41.0109117   90.5521709    0.2721963  -44.4826005   -8.8064665
[406]  -40.9926753   75.6994500   14.9308864   42.1910276 -179.4961669
[411]  -35.6764990  -11.6378572 -134.5200099  -21.8285797   -0.1836180
[416]  129.9602262   17.1476488  -15.8960357   35.6656069  -10.1952735
[421]  -33.6039993   26.4824835   11.7676042  -79.1734552  177.5126855
[426]  151.7874933  160.5735412  159.6512732   77.9761054    1.1730850
[431]   42.3498423    6.6135480    2.6124062  -70.1551664   46.8206038
[436]   47.7385390  -58.8464607  102.0004492  146.2860018   -0.6765350
[441] -120.7670840  157.6072089   64.6865693 -155.1308949   13.2477216
[446]  -10.1198894  -40.6718921  109.9482985  -93.3246009  102.2705067
[451] -102.5631972  159.7221176  -44.0969830  -48.8324672  -51.1366398
[456]   29.7753295 -111.7779903  157.2023234 -110.9278735    6.7116489
[461]  177.0427709 -177.0155098   94.9076317  -46.7812433  127.9381544
[466]  -91.2608757  -49.3089497   -0.4112727  157.8723870  139.6063132
[471]  138.9119243  138.7128875  155.0208786 -137.4894338  -28.0589398
[476]   88.3700094  169.0511462  153.8384811  136.2813409   12.6989459
[481] -114.7854946 -152.8640772  163.9509429   98.7759831   17.6530591
[486]  169.0200902   64.4927224  156.5894397   15.6018928   26.1778933
[491]   15.1439902  125.7344818  -77.7627907   16.7751889   21.2339578
[496]   -5.3032123  -33.5386898   14.6113360   25.3331017   -4.2658875
[501]   17.3730784  -36.5066352  -36.3840915  -24.1475856   13.7418945
[506] -120.7491395  -59.6076508  -47.3762570  178.2974017 -175.4407463
[511]  -74.4000610  168.0238403  125.9297340 -160.6628328   36.6007768
[516]  177.6748396  122.2008287  158.8423857  164.7973342 -173.0405016
[521]  153.7074178  -51.2175385  -77.3061525  -79.5970016  166.4758299
[526] -172.9819798 -112.8363482  125.1128592  160.0590301  159.9573190
[531]  175.5750948   34.3626394 -159.7523324 -170.5435042  135.6771215
[536]  176.2840612  127.6249196 -158.4070399  -10.4722194  115.9211368
[541]  -68.2032157   44.5063076  154.1759724  -28.0581194 -165.4401895
[546]   -3.7799369  -31.2564124 -168.8094594   -6.1916344  -99.9328472
[551] -174.0642420   -2.3501841  -49.1922857 -142.3136850  174.4204665
[556] -151.1107652   34.5101430  163.6962166  -10.8132939  -28.8185486
[561]   -1.6018557   51.0277385   77.2017744 -168.2159540 -173.6400598
[566] -163.7764636  -17.0847220  -18.8364650 -112.7104235  -16.2265329
[571] -126.8944007 -150.8835374   88.7697654  168.5479224  176.7639732
[576] -150.6852713  -29.0498157 -157.9288970  148.0639191  152.3151301
[581]  110.1829881  128.3688562 -146.9696669  129.6249818   68.5360810
[586]  154.3270268   31.0971600  146.6330618   37.0308978   90.9552793
[591]   98.4728803  160.3754731 -142.3728717   29.5785671  -20.7238661
[596]   21.0045564  -84.0469240  -36.9165328  160.0687817   91.0819990
[601]  118.1284614  157.5440239   99.4747835   28.6065500  -24.6391557
[606]   60.6860267 -123.6825619   63.5585913  -22.9538682   28.8502111
[611]  113.0199558  -18.5111095  173.6155101  -24.1054828   55.5783990
[616]  144.7119564  164.6608084  178.8422079  160.8668376   53.7532689
[621]  123.4606836    4.6193651  -66.3579876   52.2316552 -147.9906989
[626]  -67.5822759  156.0070160 -173.5039134   98.1751608  -98.4400221
[631]   49.9787982 -173.3166105  -26.8533694 -155.7685504  -89.4722432
[636] -144.3596988  130.7068062  -31.5751369   96.1238257    8.6548357
[641]  -25.0747772   45.6533223 -122.8267921  171.9997037  -16.8210241
[646]  165.1322799  114.8011951   63.7545547  115.3022349 -159.0070780
[651]  147.6557644   38.7595401 -168.8730983  -95.4786625   37.6145890
[656]  117.9182125  134.7221649    7.7160567   -5.7544600  162.3703816
[661]  -63.8753776 -133.0691237  142.4073591  159.8669940 -171.6805109
[666]  -87.5709033 -165.5099781  171.4014756 -170.0833431  -93.5431257
[671] -165.6708340   81.5447439  126.8274983  137.5112178  -81.6010566
[676] -159.7921853  -27.3014769 -175.2208892    7.7380966  -32.4506723
[681] -106.9488428   33.5397160  -20.6884532  175.3021063   -0.5982716
[686] -126.2798436  163.6434651  -28.1864252  -23.1392680   28.4787791
[691]  -64.5433313 -167.6157341 -167.2796250 -176.3836758   -9.3216269
[696] -177.0653775 -170.0742614 -161.0513241   -4.0181735  174.8256979
[701] -117.3918320   -8.1975702  126.6030350  137.2157872   59.0399158
[706]  132.5997780  -33.1055050  -22.5465140   13.3535870   20.3142959
[711]  -31.8211987   -8.0496490  -58.5011044  -99.1008535   32.3700708
[716]   11.7657779  102.4161132 -122.9489687   11.2162152 -177.1587229
[721]   -0.8531969 -102.2162612  177.5852465 -131.1553888  -53.8447929
[726] -113.1037013    2.5004850  173.3532768  162.1338494   69.7973907
[731]  -63.7281763 -132.9548419   22.3321545  -10.0414652   -0.9518709
[736]  -58.7516070 -133.4846111  170.2082685  163.8262855 -176.7007944
[741]   47.8295752  141.2112878  172.7368111  136.9596804  175.4538468
[746]   65.9648363   71.5253324  -15.9220414   49.8657327   -2.0175844
[751]   43.3293446  142.7313426  144.5642441   57.6657856  -55.0824307
[756]  109.4194071  -15.1503237  -24.4430963   96.1838868    9.9712672
[761] -103.3689854  -27.0283917  179.0354544  176.6206395   64.8555170
[766]  162.1290721  141.2696502 -160.9944914   89.1416770 -176.0386341
[771] -135.6773894   88.0966892   44.6891122  -75.7474515  -31.3528581
[776]   38.0789046   44.7532791  -60.9863039  179.5906462   93.1813958
[781]    1.3899006   22.9801357   45.8072539  173.3188271  140.0033847
[786]    3.5776817 -179.8274848  -32.3791153  156.1240411  -34.1369105
[791]  151.1441763   45.5295815  -75.0963566 -177.0562186   97.4322619
[796] -157.3749632 -117.7097950  174.1210431   99.1843982  146.0511653
[801]  178.4306679  136.2439448 -171.4439762  -10.0839246  162.6503091
[806]   -0.1237842  -98.6406524 -156.6123382 -141.3779035  -51.7736824
[811]  172.0797947 -160.1227510  153.4144898  171.3421070   76.9985157
[816]   16.9638884 -153.8836470   39.5791528  -32.7879275 -164.0101710
[821]  -61.6767446  135.1669957  -88.5229987  -31.8925821 -132.8711787
[826] -149.5364520  154.3288401   20.7116225  112.3285299  119.9889973
[831]  122.5691273  -61.3509482    7.5390824  -32.1082457    6.5463291
[836]  -19.5641105   32.2861282   49.3999707    3.5370330   55.1717461
[841] -149.8428669 -116.0753565 -165.2506560  -64.9814135  -52.4079293
[846]  161.7586666   38.1883308  -53.1991780 -159.7352421   44.2254776
[851]   97.0651707 -173.7078680 -177.7530850  -13.1954699  -10.9735296
[856]    5.5576076   49.1678665  176.6771055  160.3708868   75.8004334
[861]  136.3245608 -102.1462423  166.1554687   47.4539749   23.4169206
[866]  127.1131018  -12.7747704 -150.5799047 -146.2169924  178.9466559
[871] -121.7304750 -118.1811447  -83.4343806   80.7645890   78.1771613
[876]  124.7364264   61.5939792  172.3778974   81.4865017  164.3327595
[881]   92.2559890  166.4826525 -152.5889892  -65.8494283   47.8018022
[886]  170.5159356  179.2927728  121.6036326  116.2707921  -51.4691261
[891] -113.9656271  -96.7648231 -111.8481686 -157.8087881 -151.4039493
[896]  175.5986946 -143.1436685  177.8988952   43.3119684  162.1489230
[901]  110.1729028  153.7095108   93.6854484  153.2043439   59.3047958
[906]  151.8926881  171.9825473   95.3216727  122.7086911   53.0277884
[911]   93.5465424  144.2417433  -46.3948739  -70.8025485 -104.3552305
[916]   79.0686260  160.3808968

move documentation built on Jan. 16, 2017, 2:22 a.m.