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

Home » Public Forums » archive » check for already written and finished files
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
check for already written and finished files [message #56555] Mon, 29 October 2007 08:49
mdoubkova is currently offline  mdoubkova
Messages: 4
Registered: September 2007
Junior Member
Hello all,

I am dealing with an annoying problem which I hope may find a solution
somewhere within the IDL audience.

I call ENVI module from IDL which geocodes a binary file and saves it
under new name also as a binary. Then, I want to proceed with
processing of this newly created file. First I check for its existence
and if its readable. Then I start reading this file using READ_BINARY.

The problem is that this file is assigned as readable by file_test(..,/
read) but is not yet fully geocoded (its obvious when looking at the
file in windows commander and pressing F5, its size is increasing with
every click) and thus I cannot be read by READ_BINARY. I want to force
IDL to wait until the file is fully written. However I did not find a
way how to do this. Sofar I am just using command wait, however, my
files have varying size and sometimes its not necessary to wait at
all, sometimes it takes 1 minut to write the file.


Here is the example of the code

""
sarscape_geocode, extractedGM, geocodedGM , tmp_control ;calls
sarscape ENVI modul
;?? wait,30??
test_geocodedFile=file_test(geocodedGM,/read)
if test_geocodedFile eq 1 then check='OK' else check='ERROR'
print, logunit, string(' Geocoding ', check, ' ',systime())
printf, logunit, string(' Geocoding ', check, ' ',systime())

if check eq 'OK' then begin


I am gratefully for any answer,

greetings
Marcela
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: time vs longitude FFT
Next Topic: shtstr

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

Current Time: Wed Oct 08 20:05:12 PDT 2025

Total time taken to generate the page: 0.41772 seconds