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

Home » Public Forums » archive » Re: how to calculate distance from pairs of latitude/longitude measurements?
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: how to calculate distance from pairs of latitude/longitude measurements? [message #65609 is a reply to message #65608] Wed, 11 March 2009 13:07 Go to previous messageGo to previous message
Bruce Bowler is currently offline  Bruce Bowler
Messages: 128
Registered: September 1998
Senior Member
On Wed, 11 Mar 2009 12:49:41 -0700, llo wrote:

> I found MAP_PROJ_FORDWARD function to convert lat/lon to cartesian
> coordinates. So, calculate the distance between 2 cartesian points it's
> eaasy.
>
> The problem is when I use this function. The following problem ocurs:
>
> alb_cart=MAP_PROJ_FORWARD(-73.83,42.70) % MAP_PROJ_FORWARD: Value of
> Projection index is out of allowed range. % Execution halted at: $MAIN$
>
> (-73.83,42.70) are a valid lat/lon coordinates of station situated in
> Albany, USA.
> MAP_STRUCTURE is required to use this function (MAP_PROJ_FORWARD) but I
> don't know which mapping projection use.
>
> Any suggestions !?

Eqn's for doing anything you want with lats and longs can be found here...

http://williams.best.vwh.net/avform.htm

Converting them to IDL is left as an exercise for the reader (warning -
be careful with your signs if you use his formulae, the fly-boys appear
to be out of step with the rest of the world :-)

Bruce
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: OpenADDE and IDL
Next Topic: Need Help Resolving ENDIF Errors

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

Current Time: Mon Dec 01 23:44:21 PST 2025

Total time taken to generate the page: 1.60923 seconds