<div dir="ltr"><div dir="ltr"><div>Hi,</div><div><br></div><div>At around line 170 of the script we see these two lines:</div><div><br></div><div>  res@tfDoNDCOverlay        = "NDCViewport"<br>; res@tfDoNDCOverlay        = True      ; old method<br></div><div>The docs for this resource indicate that it used to be of type bool, but changed to an enumeration. However, the given default value for this resource is shown as False, and the error in the script comes about because a utility function called by the plotting code expects a logical value as well, not an enumeration.  So this sounds like both a code bug and a documentation bug.</div><div><br></div><div>You might try uncommenting the line setting the resource to True.</div><div><br></div><div>Let me know -- you may get a different error related the resource expecting an enumerated value.  I'll file a bug report.</div><div><br></div><div>Rick<br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Sep 25, 2018 at 3:52 PM Stuart D Smith <<a href="mailto:smit1770@purdue.edu">smit1770@purdue.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="m_6066425292460361653WordSection1">
<p class="MsoNormal"><span style="color:#44546a">Hello,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#44546a"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#44546a">I am working through the plotting example,  “NIC IMS Snow and Ice Products” from the NCL site (
<a href="https://www.ncl.ucar.edu/Applications/nic_ims.shtml" target="_blank"><span style="color:#44546a">https://www.ncl.ucar.edu/Applications/nic_ims.shtml</span></a> ). I did have to make adjustments to the script (attachment for reference), since the file extensions to
 the ftp site have changed. When plotting the example with the 24 km data, I receive unusual errors when trying to plot the last two figures. The error I receive is the following:
<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">“fatal:Conditional statements (if and do while) require SCALAR logical values, see all and any functions<u></u><u></u></p>
<p class="MsoNormal">fatal:["Execute.c":8640]:Execute: Error occurred at or near line 1809 in file /apps/cent7/ncl/6.4.0/lib/ncarg/nclscripts/csm/gsn_csm.ncl<u></u><u></u></p>
<p class="MsoNormal">fatal:["Execute.c":8640]:Execute: Error occurred at or near line 7482 in file /apps/cent7/ncl/6.4.0/lib/ncarg/nclscripts/csm/gsn_csm.ncl<u></u><u></u></p>
<p class="MsoNormal">fatal:["Execute.c":8640]:Execute: Error occurred at or near line 181 in file Plot_IMS_4k.ncl”<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="color:#44546a">I have also tried to adjust the plotting script to work for 4km data. However, when plotting the first figure it fails to draw the figure and provides the following error message:<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">fatal:ContourPlotDraw: Workspace reallocation would exceed maximum size 100000000<u></u><u></u></p>
<p class="MsoNormal">fatal:ContourPlotDraw: draw error<u></u><u></u></p>
<p class="MsoNormal">fatal:ContourPlotDraw: draw error<u></u><u></u></p>
<p class="MsoNormal">fatal:PlotManagerDraw: error in plot draw<u></u><u></u></p>
<p class="MsoNormal">fatal:_NhlPlotManagerDraw: Draw error<u></u><u></u></p>
<p class="MsoNormal">fatal:Conditional statements (if and do while) require SCALAR logical values, see all and any functions<u></u><u></u></p>
<p class="MsoNormal">fatal:["Execute.c":8640]:Execute: Error occurred at or near line 1809 in file /apps/cent7/ncl/6.4.0/lib/ncarg/nclscripts/csm/gsn_csm.ncl<u></u><u></u></p>
<p class="MsoNormal">fatal:["Execute.c":8640]:Execute: Error occurred at or near line 7482 in file /apps/cent7/ncl/6.4.0/lib/ncarg/nclscripts/csm/gsn_csm.ncl<u></u><u></u></p>
<p class="MsoNormal">fatal:["Execute.c":8640]:Execute: Error occurred at or near line 181 in file Plot_IMS_4k.ncl<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="color:#44546a">Could I please have guidance to correct the errors in order to plot both spatial resolutions correctly? I also wanted guidance on adjusting the script to plot a specific area rather than plotting the full extent.
 The data I have been using is listed in the example on the site, but I have also provided links to the ftp sites as well, which are listed below. Thank you for your time.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#44546a"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#44546a">Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#44546a"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#44546a">-Stuart <u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">4km IMS data<u></u><u></u></p>
<p class="MsoNormal"><a href="ftp://sidads.colorado.edu/pub/DATASETS/NOAA/G02156/4km/2006/" target="_blank">ftp://sidads.colorado.edu/pub/DATASETS/NOAA/G02156/4km/2006/</a><u></u><u></u></p>
<p class="MsoNormal">IMS metadata <u></u><u></u></p>
<p class="MsoNormal"><a href="ftp://sidads.colorado.edu/pub/DATASETS/NOAA/G02156/metadata/" target="_blank">ftp://sidads.colorado.edu/pub/DATASETS/NOAA/G02156/metadata/</a>
<u></u><u></u></p>
</div>
</div>

_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>