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

Home » Public Forums » archive » Re: how can i call a compiled fortran code from IDL?
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: how can i call a compiled fortran code from IDL? [message #33957 is a reply to message #33956] Thu, 06 February 2003 06:33 Go to previous messageGo to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
thompson@orpheus.nascom.nasa.gov (William Thompson) writes:

> "mads" <madhu@erc.msstate.edu> writes:

>> Hi,
>> I have a compiled FORTRAN code and I need to call it from a procedure in
>> IDL. The FORTRAN code does not require any i/p. It reads everything from a
>> data file and creates a data file as o/p.
>> Madhu

> It's been a long, long time since I last did this, ...

(rest deleted)

I haven't had my coffee yet, and I only just now realized that you state that
everything is read from a data file, and written to a data file. In that case,
I completely agree with David--all you want is SPAWN. Use IDL to write out the
input file, spawn the command to run the compiled Fortran program, and then
read the output file back into IDL. That's the simplest and most direct
approach. Anything else would be a waste of time.

Bill Thompson
[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: Postscript output mods
Next Topic: Re: XROI in IDL5.6 on MAC OS 10.2?

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

Current Time: Sun Oct 12 06:44:49 PDT 2025

Total time taken to generate the page: 0.31195 seconds