<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Garamond,Georgia,serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Hi Matt, </p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">It looks like <span>Ngl.end() is destroying the workspace. Try removing that and see if it works. </span></p>
<p style="margin-top:0;margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span>vg</span></p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p><span style="font-family:Garamond,Georgia,serif; font-size:11pt">---------------------------------------</span></p>
<span style="font-size:11pt"></span><span style="font-family:Garamond,Georgia,serif; font-size:11pt"></span><span style="font-size:11pt"></span>
<p><span style="font-family:Garamond,Georgia,serif; font-size:11pt">Dr. Vittorio (Victor) A. Gensini</span></p>
<span style="font-size:11pt"></span><span style="font-family:Garamond,Georgia,serif; font-size:11pt"></span><span style="font-size:11pt"></span>
<p><span style="font-family:Garamond,Georgia,serif; font-size:11pt">Assistant Professor</span></p>
<span style="font-size:11pt"></span><span style="font-family:Garamond,Georgia,serif; font-size:11pt"></span><span style="font-size:11pt"></span>
<p><span style="font-family:Garamond,Georgia,serif; font-size:11pt">Department of Geographic and Atmospheric Sciences</span></p>
<span style="font-size:11pt"></span><span style="font-family:Garamond,Georgia,serif; font-size:11pt"></span><span style="font-size:11pt"></span>
<p><span style="font-family:Garamond,Georgia,serif; font-size:11pt">Northern Illinois University</span></p>
<p><span style="font-family:Garamond,Georgia,serif; font-size:11pt">Davis Hall (DH), Room 118</span></p>
<p><span style="font-family:Garamond,Georgia,serif; font-size:11pt">DeKalb, IL 60115</span></p>
<p><span style="font-family:Garamond,Georgia,serif; font-size:11pt"><a href="http://atlas.niu.edu" class="OWAAutoLink" id="LPNoLP">http://atlas.niu.edu</a><br>
</span></p>
<p><span style="font-family:Garamond,Georgia,serif; font-size:11pt"><a href="http://a" class="OWAAutoLink" id="LPNoLP"></a><a href="http://atlas.niu.edu" class="OWAAutoLink" id="LPNoLP"></a></span></p>
</div>
</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> pyngl-talk <pyngl-talk-bounces@ucar.edu> on behalf of Fearon, Dr. Matthew, Contractor, Code 7533 via pyngl-talk <pyngl-talk@ucar.edu><br>
<b>Sent:</b> Tuesday, April 3, 2018 11:59:15 AM<br>
<b>To:</b> pyngl-talk@ucar.edu<br>
<b>Subject:</b> [pyngl-talk] PyNGL script help</font>
<div> </div>
</div>
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
a:x_link, span.x_MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:x_visited, span.x_MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
span.x_EmailStyle17
        {font-family:"Calibri","sans-serif";
        color:windowtext}
span.x_EmailStyle18
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
.x_MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
div.x_WordSection1
        {}
-->
</style>
<div lang="EN-US" link="blue" vlink="purple">
<div class="x_WordSection1">
<p class="x_MsoNormal"><span style="color:#1F497D">Dear PyNGL users:</span></p>
<p class="x_MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="x_MsoNormal"><span style="color:#1F497D">The following set of errors I am receiving are hard to diagnose. Any assistance would be appreciated. My script is attached and errors are below.
</span>I’ve a created a small script to plot COAMPS model output. The script works for one iteration, but then gives a series of errors on the second iteration. However, if I skip the first iteration, the second works<span style="color:#1F497D">… and so one.
</span>. </p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Thank you,</p>
<p class="x_MsoNormal">Matt</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">forecast hour:  00090000</p>
<p class="x_MsoNormal">fatal:["Error.c":406]:ErrorInitialize:Only one instance of ErrorClass is supported</p>
<p class="x_MsoNormal">fatal:Unable to initialize layer-Can't Create</p>
<p class="x_MsoNormal">fatal:Error Creating ErrorClass object</p>
<p class="x_MsoNormal">fatal:Unable to initialize layer-Can't Create</p>
<p class="x_MsoNormal">fatal:Unable to initialize layer-Can't Create</p>
<p class="x_MsoNormal">fatal:_NhlCreate:Unable to access "default" App object</p>
<p class="x_MsoNormal">fatal:_NhlCreate:Invalid Parent id #-4</p>
<p class="x_MsoNormal">fatal:NhlGetValues:PID #-4 is invalid</p>
<p class="x_MsoNormal">fatal:PID #-4 can't be found in NhlSetValues</p>
<p class="x_MsoNormal">warning:maximize_plots: Invalid workstation. No plot maximization can take place.</p>
<p class="x_MsoNormal">fatal:_NhlCreate:Unable to access "default" App object</p>
<p class="x_MsoNormal">fatal:_NhlCreate:Invalid Parent id #-4</p>
<p class="x_MsoNormal">fatal:NhlGetValues:PID #-4 is invalid</p>
<p class="x_MsoNormal">fatal:PID #-4 can't be found in NhlSetValues</p>
<p class="x_MsoNormal">warning:maximize_plots: Invalid workstation. No plot maximization can take place.</p>
<p class="x_MsoNormal">fatal:_NhlCreate:Unable to access "default" App object</p>
<p class="x_MsoNormal">fatal:_NhlCreate:Invalid Parent id #-4</p>
<p class="x_MsoNormal">fatal:NhlGetValues:PID #-4 is invalid</p>
<p class="x_MsoNormal">fatal:PID #-4 can't be found in NhlSetValues</p>
<p class="x_MsoNormal">warning:maximize_plots: Invalid workstation. No plot maximization can take place.</p>
<p class="x_MsoNormal">fatal:NhlAddOverlay: invalid base plot id</p>
<p class="x_MsoNormal">fatal:NhlAddOverlay: invalid base plot id</p>
<p class="x_MsoNormal">warning:maximize_plots: Invalid workstation. No plot maximization can take place.</p>
<p class="x_MsoNormal">fatal:NhlDraw: Invalid Layer Id: -4</p>
<p class="x_MsoNormal">fatal:Unable to update Workstation with PID#-4</p>
<p class="x_MsoNormal">fatal:Unable to clear Workstation with PID#-4</p>
<p class="x_MsoNormal">fatal:Unable to Destroy (Bad PID#1440819056)</p>
</div>
</div>
</body>
</html>