Re: idl routines callable from c-programs [message #67887] |
Tue, 08 September 2009 09:11 |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
hjalti@vatnaskil.is wrote:
> Hello, is it possible to make an IDL program that is callable from a C-
> program, and for example performs the following:
> 1. Restores an object containing some data from a save-file
> 2. Reads in some additional data from a ncfd file
> 3. Apply some object methods on the ncdf data
>
> Is it possible to call IDL object methods directly in a C-program?
>
> Regards, Hjalti
Yes, see Callable IDL in the External Development Guide in the online
help. Basically, the idea is that you call an init method to initialize
an IDL session and then pass IDL commands as strings to be executed in
it. There are functions to pass variables between the IDL session and C.
Mike
--
www.michaelgalloy.com
Associate Research Scientist
Tech-X Corporation
|
|
|