Trimble Business Center — Have confidence in your data. Start free trial.

AI Assistant
Determine Azimuth b...
 
Notifications
Clear all

Determine Azimuth between two ECEF Coordinates

56 Posts
17 Users
0 Reactions
5,392 Views
cf-67
(@cf-67)
Posts: 367
Free
Topic starter
Translate ▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

Can you? I know how to determine the chord distance between two ECEF coordinates, but can you determine the direction of the chord - or only by converting to LLH first?

Just curious..


 
Posted : September 26, 2021 1:32 pm
john-nolton
(@john-nolton)
Posts: 563
Free
Translate ▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

"But can you determine the?ÿdirection of the chord"

Please explain what?ÿ you mean by "Direction of the chord"

Do you mean normal section azimuth?

Do you mean geodetic azimuth?

Do you mean ____________?

JOHN NOLTON


 
Posted : September 26, 2021 7:00 pm
mathteacher
(@mathteacher)
Posts: 2262
Member
Translate ▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

This paper by Rod Deakin tells us how. The formula on page 9 will do it, but it requires both cartesian and geographic coordinates.

MERIDIAN DISTANCE (mygeodesy.id.au)

The paper is 59 pages of concise material, Reading it all is not onerous and the example MATLAB programs are instructive even without knowing MATLAB coding. I think that the section on the four major ellipsoidal curves beginning on page 30 is particularly interesting.

?ÿ


 
Posted : September 26, 2021 7:02 pm
cf-67
(@cf-67)
Posts: 367
Free
Topic starter
Translate ▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@john-nolton?ÿ

The direction along the line representing the mark to mark distance between 2 points.


 
Posted : September 26, 2021 7:18 pm
cf-67
(@cf-67)
Posts: 367
Free
Topic starter
Translate ▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@mathteacher?ÿ

Wowsers..thanks.

So you do need lat/lon as well. It's more complicated than I thought. I thought maybe you could get a direction from just the ECEF coordinates.


 
Posted : September 26, 2021 7:20 pm

jitterboogie
(@jitterboogie)
Posts: 4300
Member P&R, Founder
Translate ▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@cf-67?ÿ

Im sure GeoDD Mike can add the world of geodesy/geophysics into the equations too, add gravity, time Domain, expansion and contraction of the blob etc etc etc...

ECEF is the idealized simple model, or so i was learning in GIS land.?ÿ I'm back into surveying. GIS is my data management plan.


 
Posted : September 27, 2021 12:51 am
mathteacher
(@mathteacher)
Posts: 2262
Member
Translate ▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@jitterboogie?ÿ

Not to put too fine a point on it, the ellipsoid is the model and ECEF is a coordinate system that allows calculations on the ellipsoid surface.

If you look at the definitions of the GRS80 and the WGS84 ellipsoids, they're virtually identical. Over the years, though, point (0, 0, 0) in the WGS84 ECEF coordinate system has been moved to more closely correspond to new measurements of the earth's center of gravity. No such adjustment has been made to the GRS80 center. When the two ellipsoids are placed in the same ECEF coordinate system, their centers will not both be (0, 0, 0), and different coordinates will be displayed for the same point on the earth's surface.

It's hard to make this stuff simple.

?ÿ


 
Posted : September 27, 2021 7:51 am
oldpacer
(@oldpacer)
Posts: 655
Free
Translate ▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

A simple inverse between the two coordinates would give you the a chord and a direction dimension. It would not be the distance between the two nor the bearing (either way) between the two. I have never worked with a hybrid plane/spherical system.?ÿ


 
Posted : September 27, 2021 8:49 am
jitterboogie
(@jitterboogie)
Posts: 4300
Member P&R, Founder
Translate ▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@mathteacher?ÿ

Yes, I meant simple like the sun rises in the east, and sets in the west simple. Man, is everybody drinking decaf these days or what??ÿ

😉

?ÿ

?ÿ?ÿ


 
Posted : September 27, 2021 9:00 am
loyal
(@loyal)
Posts: 3735
Free
Translate ▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

The "EASY" way is to use use the NGS Tool Kit Progran inverse3d

https://geodesy.noaa.gov/cgi-bin/Inv_Fwd/invers3d.prl

I don't know the "NOT-SO EASY" method, but I'll bet that John Nolton does.


 
Posted : September 27, 2021 9:12 am

mathteacher
(@mathteacher)
Posts: 2262
Member
Translate ▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@jitterboogie?ÿ

I get it, but even sunrise isn't that simple. For about half the year, it's North of East and for the other half, it's South of East.

Working on my third cup of fully-caffeinated now.

Carry on!


 
Posted : September 27, 2021 9:25 am
jitterboogie
(@jitterboogie)
Posts: 4300
Member P&R, Founder
Translate ▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@mathteacher

i have one cup.

one big ass 32 oz cup of extra dark roast with turbinado. BOOM!


 
Posted : September 27, 2021 9:39 am
cf-67
(@cf-67)
Posts: 367
Free
Topic starter
Translate ▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

I guess that as the distance can be calculated by expanding Pythagoras into 3D (Sqrt(X^2+Y^2+Z^2), I hoped maybe the azimuth could be similarly divined by some simple expansion of Atan(deltaX/deltaY)

But I am a tea drinker and clearly not thinking straight. ?????ÿ


 
Posted : September 27, 2021 9:58 am
paul-in-pa
(@paul-in-pa)
Posts: 6034
Free
Translate ▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

Be aware the azimuth from A to B is not the same (nor the reciprocal) as the azimuth from B to A.

Paul in PA


 
Posted : September 27, 2021 12:05 pm
mkennedy
(@mkennedy)
Posts: 684
Member Founder, Sustainer
Translate ▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@mathteacher I feel this is not quite right. NAD83 which uses GRS80 for its ellipsoid is offset from the 'true' center of mass, but other datums/geodetic coordinate reference systems that use GRS80 have not done that. ITRF realizations use GRS80--they're not offset. Also, it's not when two ellipsoids are in ECEF are they offset, it's when a datum, even though it is possibly using the same ellipsoid, does not coincide before converted to another datum.


 
Posted : September 27, 2021 12:55 pm

cf-67
(@cf-67)
Posts: 367
Free
Topic starter
Translate ▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@paul-in-pa?ÿ

You don't seem to have been around for a while - was starting to miss you ?????ÿ


 
Posted : September 27, 2021 1:22 pm
mathteacher
(@mathteacher)
Posts: 2262
Member
Translate ▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@mkennedy?ÿ

Look at Slide 13 here:

Slide 1 (noaa.gov)

Also, note here HTDP computations (noaa.gov)?ÿ that converting to WGS84 in HTDP is actually converting to a version of ITRF prior to G1762. Below is the conversion of GRS80 2011 (0,0,0) to WGS84 (G1674), as of today, 9/21/2021. Now, the conversion is actually to ITRF 2008. Note the sizeable offset in the WGS84 coordinates.?ÿ

HTDP Output

 ****************************************
 HTDP OUTPUT, VERSION 3.3.0   

 TRANSFORMING POSITIONS FROM NAD_83(2011/CORS96/2007) (EPOCH = 09-27-2021 (2021.7370))
                          TO WGS_84(G1674)            (EPOCH = 09-27-2021 (2021.7370))

 Center                  
  LATITUDE    *** **      NaN N      0 00  2.70394 S        0.00 mm/yr  north
  LONGITUDE     0 00  0.00000 W    242 09 41.60949 W        0.00 mm/yr  east
  ELLIP. HT.                 NaN        -6378134.831 m      0.00 mm/yr  up
  X                        0.000              -1.013 m      0.00 mm/yr
  Y                        0.000               1.918 m      0.00 mm/yr
  Z                        0.000               0.560 m      0.00 mm/yr

No, the only change in the various realizations of WGS84 have been moving the center. If GRS80 and WGS84 are displayed on the same ECEF coordinate system, their centers will not both be at (9,0,0).


 
Posted : September 27, 2021 2:57 pm
FrozenNorth
(@frozennorth)
Posts: 711
Free
Translate ▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@mathteacher

Melita is right.

A couple things I'm seeing here (as I understand it):

  • GRS80 is an ellipsoid shape, not a datum (a datum being an ellipsoid shape positioned in space).?ÿ The conversion you show above is a conversion between the NAD83 and WGS84 datums.?ÿ NAD83 uses the GRS80 ellipsoid shape and so do the ITRF realizations.?ÿ (WGS84 was sometimes used to describe "both an ellipsoid and a datum," but this kind of fell by the wayside.)
  • You said "ECEF is a coordinate system that allows calculations on the ellipsoid surface."?ÿ?ÿNot really.?ÿ The beauty of using ECEF cartesian coordinates is that you can make computations?ÿwithout using the ellipsoid surface.?ÿ

?ÿ

?ÿ


 
Posted : September 27, 2021 3:14 pm
mathteacher
(@mathteacher)
Posts: 2262
Member
Translate ▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@frozennorth?ÿ

Respectfully disagree. Note that HTDP shows that (0,0,0) on NAD83(2011) is not (0,0,0) on WGS84 G1674. Different realizations of WGS84 use different centers.?ÿ

Now look at this output from HTDP that converts original WGS84 to NAD(2011). The centers of both are at (0, 0, 0). The original WGS84 was virtually identical to GRS80, NAD83 did not change the GRS80 center, so newer realizations of NAD still fit the original WGS84 ellipsoid.

HTDP Output

 ****************************************
 HTDP OUTPUT, VERSION 3.3.0   

 TRANSFORMING POSITIONS FROM WGS_84(original)         (EPOCH = 09-27-2021 (2021.7370))
                          TO NAD_83(2011/CORS96/2007) (EPOCH = 09-27-2021 (2021.7370))

 Center                  
  LATITUDE    *** **      NaN N      0 00  0.00000 N        0.00 mm/yr  north
  LONGITUDE     0 00  0.00000 W    315 36 46.44855 W        0.00 mm/yr  east
  ELLIP. HT.                 NaN        -6378137.000 m      0.00 mm/yr  up
  X                        0.000               0.000 m      0.00 mm/yr
  Y                        0.000               0.000 m      0.00 mm/yr
  Z                        0.000              -0.000 m      0.00 mm/yr

?ÿNGS HOME PAGE

Every point on an ellipsoid has both an ECEF coordinate and an ENU coordinate, and calculations can be done in both systems, but a chord distance is not the same length as a curved geodetic distance. The difference is negligible for short distances, but significant at, say, 100km. Consider this output from INVERS3d which computes distances between two PACS, one in Wilmington, NC and the other in Raleigh, NC. Note the difference in the ellipsoidal distance and the mark-to-mark distance:

Output from INVERS3D

?ÿ?ÿ

?ÿ?ÿ

?ÿ?ÿFirst?ÿ Station : AA3914?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ

?ÿ?ÿ----------------?ÿ

?ÿ?ÿX =?ÿ ?ÿ 1106185.5997 m?ÿ LAT =?ÿ 34 15 58.68336 North?ÿ

?ÿ?ÿY = ?ÿ -5159407.7744 m?ÿ LON =?ÿ 77 53 56.00918 West?ÿ?ÿ

?ÿ?ÿZ =?ÿ ?ÿ 3570881.1239 m?ÿ EHT = ?ÿ ?ÿ ?ÿ -28.8030?ÿ Meters

?ÿ?ÿ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, 2021 3:57 pm
mkennedy
(@mkennedy)
Posts: 684
Member Founder, Sustainer
Translate ▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@mathteacher Okay, I understand what you're getting at, but I still think that a more correct statement is that the original WGS84 (datum) is still relatively close to the current NAD83 realization, NAD83 (2011). It's confusing to me that you use GRS80 instead, but there are tons of geodetic CRS/datums that use GRS80 including ITRF just like slide 13 says. Maybe say GRS80 derived (or calculated) from NAD83 (2011)?


 
Posted : September 28, 2021 9:57 am

Page 1 / 3