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

Home » Public Forums » archive » Re: selfcreating filenames for putput files?
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: selfcreating filenames for putput files? [message #38953 is a reply to message #38944] Fri, 02 April 2004 08:51 Go to previous messageGo to previous message
btt is currently offline  btt
Messages: 345
Registered: December 2000
Senior Member
Paul Van Delst wrote:
> Thomas Nehls wrote:
>
>> hi there,
>>
>> I created a pro with which I can compute a list of different images.
>> As a result of the computation I want to save the results in a File,
>> which�s name should consist of the name of the input-file and a suffix
>> indicating which result it is. File is a variable which contains
>> alsready the filename of the input-file.
>>
>> like:
>>
>
> write_tiff, file + '_1st_PC.tif', computed_image,ORIENTATION=2
>
> or, if you want to use the output filename somewhere else,
>
> outputfile = file + '_1st_PC.tif'
> write_tiff, outputfile, computed_image,ORIENTATION=2
>

Or, if you are in a loop...

For i = 0L, nResults-1 Do Begin

...doStuff...

outputfile = file + StrTrim(i,2) + '_PC.tif'
write_tiff, outputfile, computed_image,ORIENTATION=2

EndFor
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Need help with value_locate and interpolation
Next Topic: Re: Tabulated output

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

Current Time: Thu Oct 09 07:49:56 PDT 2025

Total time taken to generate the page: 2.04087 seconds