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

Home » Public Forums » archive » Distance between coordinates
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: Distance between coordinates [message #90944 is a reply to message #90943] Sun, 17 May 2015 20:28 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Saturday, May 16, 2015 at 8:23:49 PM UTC-4, astr...@gmail.com wrote:
> Hello Michael I have a problem in Code regard to gcirc.pro, It gave me incorrect of argument through IDL programme, How can I solve that?

We can't tell you what you are doing wrong if we don't know what you are doing. You need to show us how you are calling gcirc.pro ( not a standard IDL procedure but in the IDL Astronomy library http://idlastro.gsfc.nasa.gov/ftp/pro/astro/gcirc.pro )

But here is how to get the same result as the example in the MAP_2POINTS documentation, the angular distance between Boulder and London.

B = [ -105.19, 40.02] ;Boulder Longitude, latitude in degrees.
L = [ -0.07, 51.30] ;London Longitude, latitude in degrees.

IDL> gcirc,2,b[0],b[1],l[0],l[1],dis

where we set the units (first) parameter to 2 ( RAx and DCx in degrees, DIS in arc seconds)

so the angular distance between Boulder and London in arc seconds and degrees is
IDL> print,dis,dis/3600.
244275.60 67.854333
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to ignore NaNs in the data array with function cgPercentile.pro or Percentile.pro?
Next Topic: Illegal operand error with window,/free

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

Current Time: Wed Oct 08 13:58:36 PDT 2025

Total time taken to generate the page: 0.00378 seconds