<div dir="ltr"><div>Hi Dave,<br><br></div>Thank you so much for your excellent reply. I will follow your instruction to modify my script for multiple processes. Thank you again, Zhifeng<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 3, 2015 at 6:34 PM, Dave Allured - NOAA Affiliate <span dir="ltr">&lt;<a href="mailto:dave.allured@noaa.gov" target="_blank">dave.allured@noaa.gov</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Zhifeng,<div><br></div><div>Please include the ncl-talk address in all replies.<br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Fri, Jul 3, 2015 at 3:57 PM, Zhifeng Yang <span dir="ltr">&lt;<a href="mailto:yangzf01@gmail.com" target="_blank">yangzf01@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi Dave,<br></div>What&#39;s the meaning of running multiple NCL processes?<br></div></div></div></div></blockquote><div><br></div></span><div>Start several copies of NCL running in the background, from your shell command window, or from a shell script.  Or you can use the NCL &quot;system&quot; command to start background processes directly from an NCL main program.</div><div><br></div><div>You run a process in the background by putting an ampersand &quot;&amp;&quot; at the end of the command line, at least on Linux and Unix-like systems.  See your shell documentation.  For example:</div><div><br></div><div>    ncl plot.ncl var=\&quot;precip\&quot; time=6 &amp;</div><div><div>    ncl plot.ncl var=\&quot;temp\&quot; time=6 &amp;</div></div><div><div>    ncl plot.ncl var=\&quot;uwind\&quot; time=6 &amp;</div></div><div><div>    ncl plot.ncl var=\&quot;vwind\&quot; time=6 &amp;</div></div><div><br></div><div>In this example, the variables &quot;var&quot; and &quot;time&quot; would tell each copy of the program which variable and which time step to plot.</div><span class=""><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div>Actually, the reason that I need to open more than 15 workstations is plotting more than 15 variables at the same time and each variable has tons of images. I need to distinguish the plot names based on variable names.<br></div></div></div></div></blockquote><div><br></div></span><div>Multiple background processes will do this.  As you said, each process can have up to 15 workstations open.  That means 15 X11 windows open, each displaying one plot, all on the same computer desktop.</div><div><br></div><div>Actually, it would be simpler to open only one workstation and make one plot from each process, and just have a lot of separate NCL processes running at the same time.</div><span class=""><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div>Do you know any hint on how to investigate the internals of NCL and support libs?<br></div></div></div></blockquote><div><br></div></span><div>NCL and most of its support libraries are open source software.  That means you can find and download free copies of the source code, and study how they works.  Please see the NCL info pages on downloading and installation, for more details.</div><span class=""><div><br></div><div>--Dave</div><div> </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="gmail_extra"><div class="gmail_quote">On Fri, Jul 3, 2015 at 5:45 PM, Dave Allured - NOAA Affiliate <span dir="ltr">&lt;<a href="mailto:dave.allured@noaa.gov" target="_blank">dave.allured@noaa.gov</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Zhifeng,<div><br></div><div>The easiest way would be to run multiple NCL processes at the same time.  Otherwise you are probably into investigating the internals of NCL and support libraries.</div><div><br></div><div>Depending on what you are trying to do, you might need to have one master NCL program tell multiple slave processes what to display.  HTH.</div><span><font color="#888888"><div><br></div><div>--Dave</div></font></span><div><div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 3, 2015 at 3:35 PM, Zhifeng Yang &lt;<a href="mailto:yangzf01@gmail.com" target="_blank">yangzf01@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi<br><div>I intend to open more than 15 workstations at one time (likely 100 workstations). However, when I open more than 15 workstations, I got the following error.<br><br>fatal:WorkstationInitialize: Limit reached for number of simultaneous GKS Workstations<br>fatal:Unable to initialize layer-Can&#39;t Create<br><br></div><div>And I find the following statement in the description of function gsn_open_wks.<br>&quot;You can have up to fifteen PostScript workstations open at one time,
but you can only have one NCGM or PDF workstation open at one time.&quot;<br><br></div><div>Is there any way to open more than 15 workstations at one time?<br><br></div><div>Thank you<span><font color="#888888"><br></font></span></div>Zhifeng</div></blockquote></div></div></div></div></div>
</blockquote></div><br></div>
</blockquote></span></div></div></div></div>
</blockquote></div><br></div>