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

Home » Public Forums » archive » Re: check for already written and finished 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: check for already written and finished files [message #56455] Wed, 31 October 2007 01:28 Go to previous message
Tal is currently offline  Tal
Messages: 26
Registered: August 2007
Junior Member
Ok.

Try this.

Query the size of your data every few seconds (see: file_info)

And match the size with the expected size of your output.

Only when they match is the process finished.



For example:

If your data is

a=fltarr(512,512,123)

the size of a should be 512*512*123*4=128,974,848 (bytes)

if it was a=uintarr(512,512,123) it was then exactly half the size.

Suppose you save now a under c:\

Now use:

b=file_info('c:\a')

and extract the size in bytes:

Print,b.size

When the sizes will be equal - the process will be finished.



I hope this will help.

Tal
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL and IDL-PVWAVE disambiguation
Next Topic: IDL - ENVI - Mouse move on Image

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

Current Time: Fri Oct 10 21:10:26 PDT 2025

Total time taken to generate the page: 1.11915 seconds