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

Home » Public Forums » archive » Incomplete ouput PNG 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
Incomplete ouput PNG files. [message #78710] Wed, 14 December 2011 07:33
lecacheux.alain is currently offline  lecacheux.alain
Messages: 325
Registered: January 2008
Senior Member
I recently wanted to process a large number of data files in order to
produce the corresponding number of output image files, each in PNG
format. I choose to use NG graphics, since the sequence: "p =
image(some_data) & p.save('this_image.png') & p.close", appears pretty
well suitable for this purpose. No problem in coding the corresponding
IDL 8.1 project on my (Windows) workstation, and running it on a few
test files. Since the data files were stored on a remote (Windows)
server, I decided to run the project directly on the server, through a
remote connection from my workstation to the server, by using Terminal
Server. Still no problem: the job was running perfectly, and I could
remotely see each graphic window being open, then the corresponding
PNG file created, etc...
Now, to avoid any flashing on my screen, I just MINIMIZED the TS
window which was open on my workstation (no logout, no disconnect from
the remote server), the remote job continuing to run unattended.
Patatras ! From this point the PNG files were created but also harshly
truncated (basically reduced to a header and a void image).
I guess (but have not tested) that any other image file format would
have produced the same unsatisfying result.
A "true screen" seems then mandatory for having the "graphic.save"
function to work correctly: is it a bug of NG graphics or a feature?
Have some unix/linux people got same experience when using any X-
server in this way ?
alx.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: idl crash with ps_end and fixps
Next Topic: inconsistent results running an absurdly simple function using 'spawn'

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

Current Time: Wed Oct 08 13:39:32 PDT 2025

Total time taken to generate the page: 0.00441 seconds