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

Home » Public Forums » archive » Add SCOPE_VARFETCH output, other tags into PostScript files
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
Add SCOPE_VARFETCH output, other tags into PostScript files [message #68759] Thu, 19 November 2009 12:19
MarioIncandenza is currently offline  MarioIncandenza
Messages: 231
Registered: February 2005
Senior Member
Hello IDL wizards,

What I am imagining is an IDL routine I can call at the end of any
routine that generates a PostScript output, that will add comment tags
to the .eps file specifying some information that I can then 'grep'
for.

What I can't quite figure is how exactly to plant these tags in the
PostScript file. When I look at the actual .eps files generated by
IDL, they have this at the top:

%!PS-Adobe-3.0 EPSF-3.0
%%BoundingBox: 0 0 767 767
%%Title: Graphics produced by IDL
%%For: hyer@cal, /users/hyer/idlpro/flambe
%%Creator: IDL Version 7.0.8 (linux x86_64 m64)
%%CreationDate: Tue Nov 10 11:55:12 2009

What's the best way to:

1) Replace that 'title' tag with one of my own choosing;
2) Add tags: 'GenScript:', 'CallingScripts:', 'YYYYMMDDHHMM' <- (a
more parseable date);

Suggestions, please. I'll post the script I come up with to the
thread-- I'm really looking forward to being able to look at a PS file
and immediately locate the script that created it, and to grep for
graphs created with a particular script!

(P.S. I am a Unix-only IDL guy, but if you can think of a cross-
platform solution, I'd be happy to code it up. If you think of a Unix-
only solution, though, don't be shy!)

Thanks in advance,

--Edward H.

P.S. I was hoping that Imagemagick 'convert -comment' would be the
answer, but it doesn't work (I do 'convert test.ps -comment "comment" -
test2.ps', then look for 'comment' in test2.ps', and get nothing).
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Migrate away from idl?
Next Topic: Re: Add SCOPE_TRACEBACK output, other tags into PostScript files

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

Current Time: Wed Oct 08 13:46:46 PDT 2025

Total time taken to generate the page: 0.00641 seconds