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

Home » Public Forums » archive » Re: simple query: including loop variable in filename?
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: simple query: including loop variable in filename? [message #55900] Fri, 14 September 2007 08:32 Go to previous message
R.G.Stockwell is currently offline  R.G.Stockwell
Messages: 163
Registered: October 2004
Senior Member
<id6684@googlemail.com> wrote in message
news:1189766081.164014.99750@19g2000hsx.googlegroups.com...
>
> Hello Folks,
>
> I'm stranded with server downtime (thankfully with net access!) and
> looking to prepare a start on some IDL; can someone tell me please if
> it's possible to include from a FOR loop the variable we are looping
> over in the filename of some kind of file?
>
> eg;
>
> FOR i=0,1 DO BEGIN
> device, filename='i.jpg'
> plot_image, A
> ENDFOR


Others have answered, I just thought I'd add a tip to
include a format='(i3.3)'
command in your string commands, so that you print
out the numbers as 001 002 003. That makes alphabetical
listings go in order, and a bit more convenient to browse
through the files.

Cheers,
bob
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: simple query: including loop variable in filename?
Next Topic: Re: insufficient system resources

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

Current Time: Sat Oct 11 14:53:37 PDT 2025

Total time taken to generate the page: 0.40161 seconds