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

Home » Public Forums » archive » Implied do loops 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
Implied do loops in IDL [message #2267] Mon, 13 June 1994 11:49
tonym is currently offline  tonym
Messages: 14
Registered: May 1994
Junior Member
I have a need for implied do loops in IDL but they appear to be unsupported.
My need occurs when reading data from a file.

Here is an example:

In FORTRAN, the file was written as:

write(unit) n, (data(i), i = 1, n)

and read as:

read(unit) n, (data(i), i=1, n)

In this example, n is not generally fixed for every file record.
It seems that the only way to read such files is with implied do's.

Note that I am trying to avoid calling a FORTRAN routine at this
point. Does anyone know if "native" IDL can handle such reads
and writes?

Tony Mannucci Jet Propulsion Laboratory
tonym@lurleen.jpl.nasa.gov 4800 Oak Grove Drive
M/S 238-600
Voice: (818)354-1699 Fax: (818)393-4965 Pasadena, CA 91109
[Message index]
 
Read Message
Previous Topic: write_gif problems???
Next Topic: Calling Fortran program

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

Current Time: Thu Oct 09 21:32:59 PDT 2025

Total time taken to generate the page: 0.83740 seconds