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

Home » Public Forums » archive » Re: write_gif to stdout ?
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: write_gif to stdout ? [message #77282] Thu, 18 August 2011 21:28
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 8/18/11 3:27 pm, George Millward wrote:
> Hi there,
>
> I am building an IDL program which will be running offline under UNIX.
> Every time my program is run - it produces a .gif image.
>
> Is there any way to get this .gif file to be written to stdout -
> rather than saving it as an actual file ?
>
> I notice that LUN = -1 is stdout ..... but WRITE_GIF doesn't specify
> LUN, just a filename.
>
> Any ideas ?

If you really want to do this (it's not documented, so it might not work
in future versions), try ENCODE_GIF:

IDL> encode_gif, -1, bytarr(10, 10) + 5B
% Loaded DLM: GIF.

H° Á*\Ȱa€;

See the code for write_gif.pro for an example of what is normally
written in the header.

Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL, A Guide to Learning IDL: http://modernidl.idldev.com
Research Mathematician
Tech-X Corporation
Re: write_gif to stdout ? [message #77283 is a reply to message #77282] Thu, 18 August 2011 15:50 Go to previous message
Brian Wolven is currently offline  Brian Wolven
Messages: 94
Registered: May 2011
Member
Sounds like what you really want to do is to skip outputting anything at all when you're running it in the background. Is that not the case?
Re: write_gif to stdout ? [message #77284 is a reply to message #77283] Thu, 18 August 2011 15:41 Go to previous message
George Millward is currently offline  George Millward
Messages: 29
Registered: February 2000
Junior Member
On Aug 18, 4:09 pm, David Fanning <n...@idlcoyote.com> wrote:
> George Millward writes:
>> I am building an IDL program which will be running offline under UNIX.
>> Every time my program is run - it produces a .gif image.
>
>> Is there any way to get this .gif file to be written to stdout -
>> rather than saving it as an actual file ?
>
>> I notice that LUN = -1 is stdout ..... but WRITE_GIF doesn't specify
>> LUN, just a filename.
>
>> Any ideas ?
>
> Not gonna happen, I'm afraid. :-(
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.idlcoyote.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Ok, I believe you.

Thanks Anyway.

George.
Re: write_gif to stdout ? [message #77285 is a reply to message #77284] Thu, 18 August 2011 15:09 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
George Millward writes:

> I am building an IDL program which will be running offline under UNIX.
> Every time my program is run - it produces a .gif image.
>
> Is there any way to get this .gif file to be written to stdout -
> rather than saving it as an actual file ?
>
> I notice that LUN = -1 is stdout ..... but WRITE_GIF doesn't specify
> LUN, just a filename.
>
> Any ideas ?

Not gonna happen, I'm afraid. :-(

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: write_gif to stdout ?
Next Topic: Green PostScript Background

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

Current Time: Thu Oct 09 06:54:02 PDT 2025

Total time taken to generate the page: 3.19883 seconds