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

Home » Public Forums » archive » Re: giving input to fortran program using spawn in 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: giving input to fortran program using spawn in IDL [message #62690 is a reply to message #62679] Wed, 24 September 2008 20:00 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Jean H <jghasban@DELTHIS.ucalgary.ANDTHIS.ca> writes:

>> If you are using Unix or Mac OS X, you can use the various redirection
>> capabilities of those operating systems. For example, put the inputs
>> in a text file, and then,
>> SPAWN, 'my_fortran_program < inputfile.txt', output_results
...
> Now, with this method, how does one pass an array, not just strings?
> (I have a large image in mind)

My first idea would be to use a separate binary file that you can read
with unformatted I/O. Or, in a pinch you can just use formatted I/O.
Avoiding premature optimization and all that.

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: cbmarkwardt+usenet@gmail.com
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Possible to display .h5 ad .hdf together
Next Topic: Re: Possible to display .h5 ad .hdf together

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

Current Time: Fri Oct 10 12:11:19 PDT 2025

Total time taken to generate the page: 0.48109 seconds