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

Home » Public Forums » archive » Re: Filename variable from device?
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: Filename variable from device? [message #64570 is a reply to message #64471] Mon, 05 January 2009 09:41 Go to previous message
dr.paul.woods is currently offline  dr.paul.woods
Messages: 2
Registered: January 2009
Junior Member
On Jan 5, 5:38 pm, Vince Hradil <vincehra...@gmail.com> wrote:
> On Jan 5, 10:45 am, dr.paul.wo...@gmail.com wrote:
>
>> In IDL, I wondered if it was possible to store the output filename
>> used in the DEVICE command as a variable, so that you can print it,
>> etc.? e.g.:
>
>> if keyword_set(ps) then begin
>>     displaycolors=!D.N_colors
>>     set_plot,'ps'
>>     device,filename='output.ps',/color,/cmyk,bits_per_pixel=8
>>     print,"Output written to ",filename
>> endif
>
> Sure:
>
> psfile = 'output.ps'
> device,filename=psfile,/color,/cmyk,bits_per_pixel=8
> print, "Output written to ", psfile
>
> Or is this not what you mean?

Aha, yes, that is what I mean. Just being very slow-minded, it seems.
It is Monday...

Thank you, Vince.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Image Map Overlays and Grids, Oh My!
Next Topic: Random number generators in IDL

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

Current Time: Sat Oct 11 16:40:55 PDT 2025

Total time taken to generate the page: 0.24262 seconds