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 #64471] Mon, 05 January 2009 09:38 Go to previous message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
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?
[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: Fri Oct 10 04:13:15 PDT 2025

Total time taken to generate the page: 0.24397 seconds