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

Home » Public Forums » archive » Re: [question] on adding strings when reading file names
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: [question] on adding strings when reading file names [message #36955] Wed, 12 November 2003 17:39 Go to previous message
tianyf_cn is currently offline  tianyf_cn
Messages: 19
Registered: November 2002
Junior Member
You can also get a file unit for each tiff file.

for i=1, count do begin
fname=frame+STRTRIM(i,2)+'.tif'
cmdstr='openr, lun'+STRTRIM(i,2)+', fname,/get_lun'
isok=execute(cmdstr)
...
endfor


Tian.

James Kuyper <kuyper@saicmodis.com> wrote in message news:<3FB27E89.A638E8A2@saicmodis.com>...
> Pepijn Kenter wrote:
> ...
>> filename=string(format='(%"frame%d.tif")', i)
>
> I'm a big fan of C, but a more IDLish way of doing the same thing would
> be:
>
> filename = 'frame'+STRTRIM(i,1)+'.tif'
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Goldstein Phase Unwrapper
Next Topic: Differences between IDL's floats and Java's floats - a problem

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

Current Time: Fri Oct 10 19:50:28 PDT 2025

Total time taken to generate the page: 0.79689 seconds