Re: write_gif to stdout ? [message #77282] |
Thu, 18 August 2011 21:28 |
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 #77284 is a reply to message #77283] |
Thu, 18 August 2011 15:41  |
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  |
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.")
|
|
|