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

Home » Public Forums » archive » Re: Passing variables between procedures
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: Passing variables between procedures [message #80796 is a reply to message #80789] Fri, 06 July 2012 21:28 Go to previous messageGo to previous message
Thesource007 is currently offline  Thesource007
Messages: 4
Registered: July 2012
Junior Member
On Friday, July 6, 2012 8:42:48 PM UTC-7, Craig Markwardt wrote:
> On Friday, July 6, 2012 5:43:30 PM UTC-4, Thesource007 wrote:
>> Hi all.
>> This is my problem. I have two IDL procedures
>> hr2altaz, hour, dec, alt, az -- which takes the HA and DEC and
>> converts it to ALT and AZ
>> altaz2hr, hour, dec, alt, az -- which takes ALT and AZ, and converts
>> it to HA and DEC.
>>
>> What I need to do, is to begin with a certain HA and DEC, execute
>> hr2altaz, which will give me the ALT and AZ, and then take those two
>> outputs to execute altaz2hr, which will convert themj back to HA and
>> DEC, and then repeat the process many times (say 100).
>> The purpose being to compare the initial HA, DEC to the final (after
>> 100 reps) HA, DEC.
>> Is there a simple way to do this? Or I just have to use an input file
>> and loops?
>
> Applying the function and its inverse: yes, just use a loop. The overhead of executing a loop 100 times is minimal.
>
> "An input file" : that's up to you. But you can always read your values into an array once at the beginning.
>
> Craig

Ok. But now the question is... how do I "transfer" the output of one procedure to be the input of the other? I dont have a clue of how to do that.
Thank you
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Most Common IDL Programming Errors
Next Topic: Re: Array Concatenation?

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

Current Time: Wed Oct 08 17:57:25 PDT 2025

Total time taken to generate the page: 0.00240 seconds