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

Home » Public Forums » archive » calling a function in herself
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: calling a function [message #32901 is a reply to message #20893] Fri, 15 November 2002 08:54 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Steve (Steve.Morris@libero.it) writes:

> I have a program (main.pro) written in IDL. Then, inside the main.pro
> I want to use a function that I found on Goddard library.
> The function is named glactc.pro, and the calling sequence is the
> following:
> GLACTC, ra, dec, year, gl, gb, j
> How can I call glactc.pro inside main.pro?

Just exactly as you did right there. That's it! :-)

> After that, when I compile the program, do I have to link
> glactc.pro?If yes, how can I do that?

You don't have to compile it. IDL will find it and compile
it when it needs it. That is, when it gets to the statement
above in your code. Just put it in a file named glactc.pro
and make sure the procedure GLACTC is the *last* program
module in the file. (This will be true for most of the routines
you get from established libraries, but may not be true for most
of the routines you get from your buddies.)

> Is it possible to write "makefile" (like C programming) into IDL?

Forget makefiles. Forget compiling. You are working with IDL now! :-)

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Structure Pass By Reference?
Next Topic: Problems getting CURVEFIT to work

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

Current Time: Wed Oct 15 09:46:55 PDT 2025

Total time taken to generate the page: 0.47967 seconds