Re: how to save the console output as a ascii or text file in IDL [message #61738] |
Tue, 29 July 2008 15:47  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
arun writes:
> I have a procedure which takes an image as input and calculates the
> percent of soil and water or pore space and the output is displayed in
> console window. I want to know how to send these values to an ascii or
> notepad file. I tried with single file.Its working fine. But when i
> used dialog_pickfile and tried to import multiple images its not
> working. I want to know how to import multiple images and send those
> values into as ascii or text file.The file format is TIFF.Thanks in
> advance.
It is not clear (to me, anyway) what you want to do.
If you want a separate ASCII file for each image, then
just open, write, and close the ASCII file in your image
loop. If you just want one ASCII file, then open and close
the file outside the loop, and write to it inside the loop.
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.")
|
|
|
|