comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: area enclosed by a poylgon on a sphere
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: area enclosed by a poylgon on a sphere [message #16542 is a reply to message #16531] Tue, 03 August 1999 00:00 Go to previous messageGo to previous message
Struan Gray is currently offline  Struan Gray
Messages: 178
Registered: December 1995
Senior Member
Ronn Kling, ronn@rlkling.com writes:

> I need to be able to find the area enclosed by an
> arbitrarily shaped series of lat/lon points on the surface
> of the Earth. I have been told that I can solve this using
> Green's Theorem, but before I gut through the math I was
> hoping that someone would have solved this and be willing to
> share the code. If it is already in IDL that would be
> great, but any language will do.

No code, but an idea which essentially uses Green's Theorem.

1) convert lat/lon to cartesian coords
2) use them to make an IDLgrPolygon object
3) use the IDLgrTessellator object to turn that
into a set of triangles
4) for each triangle work out the solid angle it
subtends from the centre of the earth
5) add up the solid angles and convert to an
area.

Working out the solid angle subtended by an arbitrary
triangle of points on the surface of a sphere is left as an
exercise for the reader (watch out for triplets of points on
the same great circle :-).


Struan
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Meteorology
Next Topic: Signal processing in IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 21:53:39 PDT 2025

Total time taken to generate the page: 0.05914 seconds