executing fortran/c executables via Mc-V?

Post any questions, ideas, or topics related to Jython and Python scripting.
Post Reply
User avatar
kbedka1
Posts: 428
Joined: Wed Jan 28, 2009 7:27 pm

executing fortran/c executables via Mc-V?

Post by kbedka1 »

Would McIDAS-V be able to execute fortran programs via some sort of terminal and then have the data output from this fortran displayed within V. There had been some talk of doing this with GEOCAT in the past, would this ever become a supported component of V?
User avatar
tomw
Posts: 296
Joined: Tue Dec 23, 2008 3:40 pm

Re: executing fortran/c executables via Mc-V?

Post by tomw »

Two options come to mind...depending on your c/fortran application:

1. you can use the "os.system('command')" from a Jython formula or script to invoke your application; it would then write it's output to some file that the Jython script could then read

2. you could use the McIDAS-X "bridge" to run your application -- especially if it is, indeed, a Mc-X "command" that creates a display.

I should also add that the GEOCAT interface that was demo'd was more of a plug-in that communicated with the server...much like the LEAD interface did. If you want to have a dialog established, then you probably want to go beyond the simple Jython script and provide for a GUI (simple or otherwise)....which could, of course, still be coded in Jython and invoked as a "formula" in McIDAS-V
Post Reply