<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Petra,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">When following up with a question, it's good to CC ncarg-talk so people can benefit from any new input. Sometimes we take the question offline if there's a lot of email going back and forth on a topic.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You can output PS and PDF directly from an NCAR Graphics program, if you have a version that's at least 6.2 or later.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">For example, if you type this:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">ncargex agex01</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">and then look at the "agex01.f" Fortran code, you will see these lines:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default">
<p class="gmail-p1" style="font-size:small"><span class="gmail-s1">C PARAMETER (IERRF=6, LUNIT=2, IWTYPE=1, IWKID=1) ! NCGM </span></p>
<p class="gmail-p1" style="font-size:small"><span class="gmail-s1">C PARAMETER (IERRF=6, LUNIT=2, IWTYPE=8, IWKID=1) ! X Windows </span></p>
<p class="gmail-p1" style="font-size:small"><span class="gmail-s1">C PARAMETER (IERRF=6, LUNIT=2, IWTYPE=11, IWKID=1) ! PDF </span></p>
<p class="gmail-p1" style="font-size:small"><span class="gmail-s1">C PARAMETER (IERRF=6, LUNIT=2, IWTYPE=20, IWKID=1) ! PostScript </span></p><p class="gmail-p1" style="font-size:small"><span class="gmail-s1"><br></span></p><p class="gmail-p1" style="font-size:small">You can see if you use a IWTYPE of 11, this gives you PDF.</p><p class="gmail-p1" style="font-size:small">Have you considered using NCL instead of NCAR Graphics? NCL is a scripting language that's based on top of NCAR Graphics, but it gives you file I/O and computational routines in addition to graphics. I think you would find NCL much easier to use than NCAR Graphics, and you still can still create the same images.</p><p class="gmail-p1" style="font-size:small">You can also do animations. See our examples page for NCL, which includes a page on animations:</p><p class="gmail-p1"><a href="http://www.ncl.ucar.edu/Applications/animate.shtml">http://www.ncl.ucar.edu/Applications/animate.shtml</a><br></p><p class="gmail-p1"><br></p><p class="gmail-p1">--Mary</p><p class="gmail-p1"><br></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 12, 2017 at 2:24 AM, Petra Seibert <span dir="ltr"><<a href="mailto:petra.seibert@boku.ac.at" target="_blank">petra.seibert@boku.ac.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Mary!<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I do have to ask, however, why you are still using the NCGM format? This<br>
format is an internal one that is no longer being maintained. We recommend<br>
that you send your output to a PS, PDF, or PNG image. The NCGM format does<br>
</blockquote>
<br></span>
I was not aware that it is possible to produce a PDF directly with NCARG-GKS. I usually produce either PS or NCGM. For larger output with many frames, NCGM seems to be more useful as it has a smaller file size and thus is easier to handle. Also, one can produce raster format images directly. However, I found that they are of lower quality than raster images produced via an intermediate PS (which is kind of a pity).<br>
And there is the very flexible idt viewer with zoom, movie etc capabilities.<br>
<br>
Where I ran into problems recently was to produce a movie (mp4), it's<br>
not trivial to have a good quality, small file size, and fast processing together. Also on CentOS direct conversion of ps to mp4 failed due to some incompatibility between imagemagick and ffmpeg, but that's obviously not your topic.<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
not support some of the new features that we added several years ago, like<br>
the ability to use transparent and named colors (without first having to add<br>
the named color to the workstation colormap).<br>
</blockquote>
<br></span>
I don't need named colours or transparency.<br>
<br>
Best regards<span class="HOEnZb"><font color="#888888"><br>
Petra</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
--Mary<br>
<br>
<br>
On Wed, Jun 7, 2017 at 5:39 AM, <<a href="mailto:petra@imp1.boku.ac.at" target="_blank">petra@imp1.boku.ac.at</a>> wrote:<br>
Dear Mary,<br>
<br>
man graphcap lists a number of output devices which are raster<br>
graphics<br>
file formats. However, the actual content of the graphcaps dir<br>
(see below)<br>
does not contain them. It seems that only printer and terminal<br>
formats and<br>
postscript is available. Of course, I could use postscript and<br>
then<br>
convert this to a raster format, but obviously this is<br>
cumbersome and in<br>
case of processing a large number of plots also time-consuming.<br>
I would<br>
therefore appreciate your feedback.<br>
<br>
Best regards<br>
Petra<br>
<br>
<br>
ls /opt/ncl621/lib/ncarg/graphcap<wbr>s/<br>
adm5 ditroff hp7510a hpgl2pe pc.mono <br>
ps.mono t4010<br>
t4107.seg tekalike vt220 vt340w<br>
aed.a hp150 hpgl hpgl2pe.dual ps.color <br>
qms800 t4025<br>
t4115 versaterm vt240<br>
aed.b hp2648a hpgl2 imagen ps.land.color r6211 <br>
t4105<br>
t4115.seg vt100 vt330<br>
balsml hp7475a hpgl2.dual imagen.port ps.land.mono s100 <br>
t4107<br>
tal1590 vt125 vt340<br>
<br>
______________________________<wbr>_________________<br>
ncarg-talk mailing list<br>
<a href="mailto:ncarg-talk@ucar.edu" target="_blank">ncarg-talk@ucar.edu</a><br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncarg-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncarg-talk</a><br>
<br>
<br>
<br>
</blockquote>
</div></div></blockquote></div><br></div>