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

Home » Public Forums » archive » Re: IDL -> FORTRAN translator?
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: IDL -> FORTRAN translator? [message #4924 is a reply to message #4908] Thu, 24 August 1995 00:00 Go to previous messageGo to previous message
sjt is currently offline  sjt
Messages: 72
Registered: November 1993
Member
David Matthews (dlmatt@bu.edu) wrote:
: We are writing a lot of IDL code to analyze large data sets. A colleague at
: another institution doesn't want to use IDL, wants us to provide Fortran
: source to do the same jobs. Has anyone written a program to run on unix or VMS
: that will translate IDL source (*.pro) into Fortran? I recognize that the IDL
: approach is sufficiently different from Fortran that it might be very hard to
: do a complete job automatically, but Fortran equivalents to IDL are sometimes
: given in the IDL manuals.

: Something analogous to f2c.

: Email or post, will post summary if anything useful appears.

: Dr. David Matthews, Center for Space Physics, Boston U.

Whether it can be done at all (even by hand) depends on several factors,
but essentially if your IDL code contains either of:
1) Arrays whose size is not known until some inputs have been given or
calculations made
2) variables used as more than one type
then there is little chance of being able to generate a fortran code to
do the same thing without MAJOR restructuring -- unless F90 has things to
do this.

Programs which violate (1) but not (2) could probably be re-cast into C
code relatively automatically -- although if it's efficient IDL it would
need a program of compiler standard to avoid turning array operations
into lots of little loops where one big one would be cleared and faster.

The other big stumbling block would be graphics, although if you had a
suitable library you could probably make an IDL plot commands emulator
library.

--
+------------------------+---------------------------------- --+---------+
| James Tappin, | School of Physics & Space Research | O__ |
| sjt@star.sr.bham.ac.uk | University of Birmingham | -- \/` |
| Ph: 0121-414-6462. Fax: 0121-414-3722 | |
+----------------------------------------------------------- --+---------+
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Pvwave for Linux ?
Next Topic: Re: IDL -> Fortran: Summary

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

Current Time: Sat Oct 11 09:20:26 PDT 2025

Total time taken to generate the page: 0.24216 seconds