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

Home » Public Forums » archive » Re: how to create an upgradeable txt or other file as output
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: how to create an upgradeable txt or other file as output [message #38728] Fri, 26 March 2004 10:02
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Thomas Nehls <thomas.nehls@tu-berlin.de> writes:

> Hi,
>
> sorry for that:
>
> I created a procedure to compute some calculations on images which
> returns results (string array, number - however: no images)
> Now I want to use this procedure for around 40 -100 images.
> As one part of this procedure, the result should be written into a file.
> After the next image has been computed the according results should also
> be written into the same file, but - of course- nothing old text should
> be erased.
>
> Any idea where to look for such?

Yes. OPENW, (with /GET_LUN), PRINTF, and FREE_LUN are what you should
use to write to files. To preserve the values in memory, you could
keep track of each image separately by having a string array for the
string result, and a numerical array for the numerical result.

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
Re: how to create an upgradeable txt or other file as output [message #38747 is a reply to message #38728] Fri, 26 March 2004 05:33 Go to previous message
Ken Knapp is currently offline  Ken Knapp
Messages: 14
Registered: April 2003
Junior Member
Not sure I understand the whole problem, but APPEND keyword to open
should help. This opens a file for writing [without deleting it] and
just appends the file with the new info.
Hope this helps-
-Ken

Thomas Nehls wrote:
> Hi,
>
> sorry for that:
>
> I created a procedure to compute some calculations on images which
> returns results (string array, number - however: no images)
> Now I want to use this procedure for around 40 -100 images.
> As one part of this procedure, the result should be written into a file.
> After the next image has been computed the according results should also
> be written into the same file, but - of course- nothing old text should
> be erased.
>
> Any idea where to look for such?
> Thank you in advance
> Tom
>

--
***** to reply remove the _REMOVE_ *****

Ken Knapp Ken.Knapp@_REMOVE_noaa.gov
Remote Sensing and Applications Division
National Climatic Data Center
151 Patton Ave
Asheville, NC 28806
828-271-4339 (voice) 828-271-4328 (fax)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: X and tvrd color scaling problem
Next Topic: Re: Changing the Colour Table for RGB images on Linux/Solaris

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

Current Time: Fri Oct 10 05:45:20 PDT 2025

Total time taken to generate the page: 0.55992 seconds