Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Azimuth, elevation and slant range of a body

82 views
Skip to first unread message

Allamarein

unread,
Jan 9, 2011, 10:02:21 AM1/9/11
to
I know longitude, latitude and distance from the center of Eath of a
body.
Given the same kind of coordinates for a site on Earth, I would
compute azimuth, elevation and slant range of the body wrt the the
observer.

Anyone know the equations for this transformation?

Androcles

unread,
Jan 9, 2011, 11:25:13 AM1/9/11
to

"Allamarein" <matteo.d...@gmail.com> wrote in message
news:895e1737-a1b3-436a...@g26g2000vbi.googlegroups.com...
Converting to Cartesian coordinates, and defining the equator
as zero angle of latitude, r as the radius, (0,0,0) as earth centre,
+z = r. cos(lat)
so at the north pole, z = r. cos(90 degrees) = r.1 = r as you'd
expect. Obviously you need to be careful with the sign of the
angles, southern latitudes have negative z.

Defining the Greenwich meridian as zero longitude, +x as east,
+y as up from the centre of the Earth, then at the equator,
+x = r. sin(long)
+y = r. cos(long).
Hence at lat = 0, long = 0, x = 0 and y = r.

As you come further north you'll have a smaller radius
for x and y, reducing to zero at the pole, so this new radius is
r.cos(lat).

so (x,y,z) = (r.cos(lat).sin(long), r.cos(lat).cos(long), r.cos(lat))

Not sure what you mean by the observer unless you mean a
second point, in which case its just (x1-x2, y1-y2, z1-z2) and
Euclidean geometry applies.
So now a rotation matrix is called for, as you'll want to define
the x-y plane as the ground plane for elevation and azimuth.
I won't write that out here, text is a poor vehicle. Instead, I'll
point you to
http://www.fastgraph.com/makegames/3drotation/

Androcles

unread,
Jan 9, 2011, 11:42:56 AM1/9/11
to

"Androcles" <Headm...@Hogwarts.physics_2011j> wrote in message
news:LjlWo.1940$NG3....@newsfe22.ams2...

|
| "Allamarein" <matteo.d...@gmail.com> wrote in message
| news:895e1737-a1b3-436a...@g26g2000vbi.googlegroups.com...
||I know longitude, latitude and distance from the center of Eath of a
|| body.
|| Given the same kind of coordinates for a site on Earth, I would
|| compute azimuth, elevation and slant range of the body wrt the the
|| observer.
||
|| Anyone know the equations for this transformation?
||
| Converting to Cartesian coordinates, and defining the equator
| as zero angle of latitude, r as the radius, (0,0,0) as earth centre,
| +z = r. cos(lat)
| so at the north pole, z = r. cos(90 degrees) = r.1 = r as you'd
| expect. Obviously you need to be careful with the sign of the
| angles, southern latitudes have negative z.


Oops!
z = r. SIN(90 degrees) = r.1 = r as you'd expect.
z = 0 at the equator, sin(0) = 0.


|
| Defining the Greenwich meridian as zero longitude, +x as east,
| +y as up from the centre of the Earth, then at the equator,
| +x = r. sin(long)
| +y = r. cos(long).
| Hence at lat = 0, long = 0, x = 0 and y = r.
|
| As you come further north you'll have a smaller radius
| for x and y, reducing to zero at the pole, so this new radius is
| r.cos(lat).
|
| so (x,y,z) = (r.cos(lat).sin(long), r.cos(lat).cos(long), r.cos(lat))
|

Oops again!
so (x,y,z) = (r.cos(lat).sin(long), r.cos(lat).cos(long), r.SIN(lat))

ji...@specsol.spam.sux.com

unread,
Jan 9, 2011, 12:48:20 PM1/9/11
to

Yes, everyone that took high school trig.

--
Jim Pennino

Remove .spam.sux to reply.

CWatters

unread,
Jan 9, 2011, 2:04:34 PM1/9/11
to
Allamarein <matteo.d...@gmail.com> wrote in news:895e1737-a1b3-436a-
bc52-c88...@g26g2000vbi.googlegroups.com:

How accurate does it have to be? eg Can you treat the earth as a sphere?

Try imagining a plane that passes through the center of the earth and both
points. Do a drawing for whats on that plane.

Allamarein

unread,
Jan 9, 2011, 2:23:00 PM1/9/11
to
X,Y, Z are easy to find.
I think you did not understand the problem.
Let's try an example, as it was a homework.
I know longitude, latitude and altitude of an airplane (let's say lat
= 40°30' N lon = 74° W and altitude 10000 m)
I ma at the control tower of JFK airport. My coordinates are lat =
40°38′23″N lon = 73°46′44″W and altitude 4m.
Can you find the azimuth, the elevation and the slant range that I can
record from the control tower?
Overall can you indicate the procedure to compute them?

ji...@specsol.spam.sux.com

unread,
Jan 9, 2011, 2:54:03 PM1/9/11
to
Allamarein <matteo.d...@gmail.com> wrote:
> X,Y, Z are easy to find.
> I think you did not understand the problem.

Actually it is you that does not understand the problem.

If you want an exact answer, you have to take into account the actual
shape of the Earth.

If you want an almost exact answer, you have to take into account the fact
that lat/long are referenced to a reference ellipsoid that approxiates the
shape of the Earth.

If you want a slightly less accurate answer, you approximate the shape of
the Earth as a sphere.

If you want an even less accurate answer, you assume the Earth is flat.

The less the distance between the two points, the more accurate the
approximated solutions become.

So, what is it you want?

Sam Wormley

unread,
Jan 9, 2011, 3:01:10 PM1/9/11
to

See: Aviation Formulary V1.45
http://williams.best.vwh.net/avform.html


Allamarein

unread,
Jan 9, 2011, 3:10:34 PM1/9/11
to

Could you provide the exact link please?

Allamarein

unread,
Jan 9, 2011, 4:10:25 PM1/9/11
to

>If you want a slightly less accurate answer, you approximate the shape of
>the Earth as a sphere.

Ok. Let's assume a spherical Earth.
Are you able now to answer my question?

Sam Wormley

unread,
Jan 9, 2011, 4:41:53 PM1/9/11
to
On 1/9/11 9:02 AM, Allamarein wrote:

Why don't you convert both points to xyz coordinates and
do vector addition? The learning is in the figuring it out!

Allamarein

unread,
Jan 9, 2011, 5:02:19 PM1/9/11
to

>
>    Why don't you convert both points to xyz coordinates and
>    do vector addition? The learning is in the figuring it out!

May you provide an example?

Sam Wormley

unread,
Jan 9, 2011, 5:07:10 PM1/9/11
to

I may not provide an example. What are you working on?

Allamarein

unread,
Jan 9, 2011, 5:25:07 PM1/9/11
to
>
>    I may not provide an example. What are you working on?

I have thetrajectory of an airplane and, given some places, I would
understand if the airplane is above the horizon (i.e. elevation) and
where I should turn away to watch it(i.e. azimuth).
That's all.

ji...@specsol.spam.sux.com

unread,
Jan 9, 2011, 5:49:26 PM1/9/11
to
Allamarein <matteo.d...@gmail.com> wrote:
>>
>>    I may not provide an example. What are you working on?
>
> I have thetrajectory of an airplane and, given some places, I would
> understand if the airplane is above the horizon (i.e. elevation) and

Which horizon, the geometric horizon, the visual horizon, or the radio
horizon?

Allamarein

unread,
Jan 9, 2011, 6:24:48 PM1/9/11
to

> Which horizon, the geometric horizon, the visual horizon, or the radio
> horizon?
>
> --
> Jim Pennino


Here you can find the definition of the Az-El ref. system
http://searchcio-midmarket.techtarget.com/sDefinition/0,,sid183_gci838808,00.html

ji...@specsol.spam.sux.com

unread,
Jan 9, 2011, 6:35:02 PM1/9/11
to


I am well aware of what azimuth/elevation mean.

You said you wanted to know if something was above the horizon and I asked
which horizon.

Allamarein

unread,
Jan 9, 2011, 7:38:46 PM1/9/11
to
Ok. Let's forget the matter about the horizon.
I would find Az and El with spherical Earth.
If other approxximations were required, you could introduce these.


ji...@specsol.spam.sux.com

unread,
Jan 9, 2011, 7:57:54 PM1/9/11
to
What is "required" depends on what it is you really want.

Sam Wormley

unread,
Jan 9, 2011, 8:33:36 PM1/9/11
to
On 1/9/11 9:02 AM, Allamarein wrote:

Is your native language Italian?

ji...@specsol.spam.sux.com

unread,
Jan 9, 2011, 9:32:51 PM1/9/11
to

I think he is fishing for someone to do his homework and doesn't have
a firm grasp on what the problem is, as in what sort of approximations
are allowed.

CWatters

unread,
Jan 10, 2011, 3:01:31 PM1/10/11
to
Allamarein <matteo.d...@gmail.com> wrote in
news:1a750acb-54f2-4332...@k13g2000vbq.googlegroups.com:

> X,Y, Z are easy to find.
> I think you did not understand the problem.
> Let's try an example, as it was a homework.
> I know longitude, latitude and altitude of an airplane (let's say lat
> = 40°30' N lon = 74° W and altitude 10000 m)
> I ma at the control tower of JFK airport. My coordinates are lat

> 40°38′23″N lon = 73°46′44″W and altitude 4m. Can you find
> the azimuth, the elevation and the slant range that I can record from
> the control tower? Overall can you indicate the procedure to compute
> them?
>

Nobody is going to do the whole problem for you but perhaps take a look
here..

http://www.movable-type.co.uk/scripts/latlong.html

"This page presents a variety of calculations for latitude/longitude
points, with the formul� and code fragments for implementing them."

It provides equations for working out the initial bearing between two
points which is part way to the azimuth. Then if you make some assumptions
and do the drawing I suggested it shouldn't be too hard to find the
elevation above/below the horizon/tangent and the slant range.


0 new messages