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

Home » Public Forums » archive » 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 #64561 is a reply to message #64472] Tue, 06 January 2009 04:50 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
dr.paul.woods@gmail.com schrieb:
> 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

Well sometimes it is much more important to know how you have done this
damn ps file.

So we wrote that info into each ps file

%!PS-Adobe-3.0
%%PLOTINIT: Tue Jan 6 13:46:20 2009
%%PLOTINIT: /private/20090106/test.pro
%%PLOTINIT: 100 Read, Write, New, No Close, Reserved my_plot.ps
%!PS-Adobe-3.0
%%BoundingBox: 0 0 595 841
%%Title: Graphics produced by IDL

cheers
Reimar
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: creating dynamic array
Next Topic: White background instead of black, when using TV to display images

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

Current Time: Sat Oct 11 08:14:20 PDT 2025

Total time taken to generate the page: 1.11944 seconds