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

Home » Public Forums » archive » Re: Calculating area of latitude-longitude quadrangle?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Calculating area of latitude-longitude quadrangle? [message #77311] Wed, 24 August 2011 00:54
Maxwell Peck is currently offline  Maxwell Peck
Messages: 61
Registered: February 2010
Member
On Aug 24, 4:52 am, Ashley Berg <ashley.b...@gmail.com> wrote:
> Is there any way to calculate the area of a latitude-longitude
> quadrangle in IDL, or some formula I could use?
> MATLAB can (using areaquad from the Mapping Toolbox, which can return
> surface area in km^2 of a lat/lon box covering a part of Earth) but I
> do not have access to MATLAB.

When I had to do something similar in Excel (don't ask!) I broke it up
into two triangles, found the internal angles (google Aviation
Formulas) and used Girard's theorem to find the area of each triangle
and added them together.

Max
Re: Calculating area of latitude-longitude quadrangle? [message #77322 is a reply to message #77311] Tue, 23 August 2011 13:37 Go to previous message
R.G.Stockwell is currently offline  R.G.Stockwell
Messages: 163
Registered: October 2004
Senior Member
>
>
> "Ashley Berg" wrote in message
> news:7e751dd7-f940-4246-bb73-a68fad00140d@bl1g2000vbb.google groups.com...
>
> Is there any way to calculate the area of a latitude-longitude
> quadrangle in IDL, or some formula I could use?
> MATLAB can (using areaquad from the Mapping Toolbox, which can return
> surface area in km^2 of a lat/lon box covering a part of Earth) but I
> do not have access to MATLAB.

actual surface area would be impossible, but just integrate the surface of a
sphere and that could get you close enough.

cheers,
bob
Re: Calculating area of latitude-longitude quadrangle? [message #77323 is a reply to message #77322] Tue, 23 August 2011 13:06 Go to previous message
Ashley Berg is currently offline  Ashley Berg
Messages: 14
Registered: February 2011
Junior Member
Yes, I'm not sure exactly how MATLAB does it! But for my purposes I
only need a rough estimate.
Re: Calculating area of latitude-longitude quadrangle? [message #77325 is a reply to message #77323] Tue, 23 August 2011 12:13 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ashley Berg writes:

> Is there any way to calculate the area of a latitude-longitude
> quadrangle in IDL, or some formula I could use?
> MATLAB can (using areaquad from the Mapping Toolbox, which can return
> surface area in km^2 of a lat/lon box covering a part of Earth) but I
> do not have access to MATLAB.

Wow! Really!?

I'm not sure I'd put a whole lot of trust in a
number like that! :-)

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: idl plot window disappearances
Next Topic: Re: idl plot window disappearances

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

Current Time: Wed Oct 08 11:36:54 PDT 2025

Total time taken to generate the page: 0.00524 seconds