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 #55906 is a reply to message #55905] Fri, 14 September 2007 06:00 Go to previous messageGo to previous message
Brian Larsen is currently offline  Brian Larsen
Messages: 270
Registered: June 2006
Senior Member
> j=STRING(i)+'.jpg'
> DEVICE, FILENAME=j

This is the right track but not quite what you want. Doing this has
a bunch of spaces in the front of the name...
IDL> print, string(1)+'.jpg'
1.jpg

I do this all the time but you need to use trim.pro
IDL> print, trim(1)+ '.jpg'
1.jpg

You can get it here:
http://sohowww.nascom.nasa.gov/solarsoft/gen/idl/string/trim .pro

Cheers,

Brian

------------------------------------------------------------ ---------------------
Brian Larsen
Boston University
Center for Space Physics
[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: Sun Oct 12 04:46:27 PDT 2025

Total time taken to generate the page: 1.75878 seconds