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 #55905 is a reply to message #55904] Fri, 14 September 2007 06:26 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Brian Larsen writes:

> 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

Or...

IDL> Print, StrTrim(j,2) + '.jpg'

if you just want to do it in IDL with what's under
the hood. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[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: Tue Dec 02 10:45:02 PST 2025

Total time taken to generate the page: 1.04357 seconds