Re: Map_set - reg [message #79360 is a reply to message #79280] |
Fri, 24 February 2012 05:18   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
shambhu writes:
> Hi, am facing some error "% Attempt to call undefined procedure/
> function: 'CGSNAPSHOT'" and trying to solve this...
> Mean time i wan to call compiled files in a main file. Whenever i
> start my IDL machine and if i run my program, without compiling
> circle, the code percent25=circle(0,0,.25*dmax) shows error "% Attempt
> to call undefined procedure/function: 'circle'". So i called that in
> my main file using ".compile circleidle" and it works. But i feel its
> not the proper way to use. Is there any other way to do this...?
The first problem with cgSnapshot is because you either
haven't installed the complete Coyote Library, or you
haven't put the Library on your IDL path correctly. Here
is an article that describes how to do so:
http://www.idlcoyote.com/code_tips/installcoyote.php
The second problem is due to the fact that you named the
file incorrectly, so it can't be found automatically when
it is needed. You can correct that problem by reading this
article:
http://www.idlcoyote.com/tips/namefiles.html
You may be interested in reading about the 10 most common
IDL programming errors, too:
http://www.idlcoyote.com/code_tips/mostcommon.html
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.")
|
|
|