<div dir="ltr"><div class="gmail_default" style="font-size:small">Dawit,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Please respond back to ncl-talk when you have follow-up questions.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The problem is that you are misspelling &quot;gsnAddCyclic&quot;.  It looks like you tried two different ones:</div><div class="gmail_default" style="font-size:small"><p class="gmail-p1"><font face="monospace, monospace">warning:gsn_add_cyclic is not a valid resource in spi_shapefile_contour at this time</font></p><p class="gmail-p1"><font face="monospace, monospace">warning:gsnAddcyclic is not a valid resource in spi_shapefile_contour at this time</font></p></div><div class="gmail_default"><p class="gmail-p1" style="font-size:small">It should be:</p><p class="gmail-p1" style="font-size:small"><font face="monospace, monospace">res@gsnAddCyclic = True    ; Note that &#39;A&#39; and &#39;C&#39; are uppercase</font></p><p class="gmail-p1" style="font-size:small">You must read your error messages carefully. It was telling you that the resource was not valid, which either means you&#39;ve misspelled it, or you are setting a resource that doesn&#39;t exist for a particular plot function (e.g. trying to set a vector color resource when creating a contour plot).</p><p class="gmail-p1" style="font-size:small">--Mary</p><p class="gmail-p1" style="font-size:small"><br></p><p class="gmail-p1"><br></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 25, 2017 at 8:59 AM, Dawit Abebe <span dir="ltr">&lt;<a href="mailto:dawit.kan@gmail.com" target="_blank">dawit.kan@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Dear Mary,<div><br></div><div><font color="#0433ff">I tried to add shape file (administrative area) to spi spi maps that Dennis helped me plot (see below). I attached script used (see at the bottom of this message) but at some point along the script lines it returns the following error messages. I tried to adjusted the values of the  <strong style="margin:0px;padding:0px;font-size:14.666666984558105px;line-height:13pt;font-family:verdana,arial,sans-serif">trXTensionF to less than 0 and set </strong><font face="Menlo"><span style="font-size:11px">gsnAddCyclic to False but this didn’t work. </span></font></font></div><div><font face="Menlo"><span style="font-size:11px"><br></span></font></div><div><font face="Menlo" color="#ff2600"><span style="font-size:11px">Error message</span></font></div><div><font face="Menlo"><span style="font-size:11px"><br></span></font></div><div><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"><font color="#ff2600">gsn_add_cyclic: Warning: The range of your longitude data is not 360.</font></span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"><font color="#ff2600">(0)<span class="m_1234071653249751488Apple-tab-span" style="white-space:pre-wrap">        </span>You may want to set the gsnAddCyclic resource to False to avoid a</font></span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"><font color="#ff2600">(0)<span class="m_1234071653249751488Apple-tab-span" style="white-space:pre-wrap">        </span>warning message from the spline function.</font></span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"><font color="#ff2600">warning:_<wbr>NhlCreateSplineCoordApprox: Attempt to create spline approximation for X axis failed: consider adjusting trXTensionF value</font></span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"><font color="#ff2600">warning:IrTransInitialize: error creating spline approximation for trXCoordPoints; defaulting to linear</font></span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"><font color="#ff2600">warning:gsn_add_cyclic is not a valid resource in spi_shapefile_contour at this time</font></span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"><font color="#ff2600">warning:gsnAddcyclic is not a valid resource in spi_shapefile_contour at this time</font></span></p></div><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div><font face="Menlo" color="#0433ff"><span style="font-size:11px">I would very much appreciate your help</span></font></div><div><font face="Menlo" color="#0433ff"><span style="font-size:11px"><br></span></font></div><div><font face="Menlo" color="#0433ff"><span style="font-size:11px">Dawit</span></font></div><div><br></div><div><div><blockquote type="cite"><br class="m_1234071653249751488Apple-interchange-newline"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif;color:rgba(0,0,0,1.0)"><b>From: </b></span><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif">Dennis Shea &lt;<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>&gt;<br></span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif;color:rgba(0,0,0,1.0)"><b>Subject: </b></span><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif"><b>Re: Plotting spatial map of SPI</b><br></span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif;color:rgba(0,0,0,1.0)"><b>Date: </b></span><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif">April 21, 2017 at 2:01:26 AM GMT+3<br></span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif;color:rgba(0,0,0,1.0)"><b>To: </b></span><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif">Dawit Abebe &lt;<a href="mailto:dawit.kan@gmail.com" target="_blank">dawit.kan@gmail.com</a>&gt;<br></span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif;color:rgba(0,0,0,1.0)"><b>Cc: </b></span><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif">&quot;<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>&quot; &lt;<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>&gt;, Mary Haley &lt;<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>&gt;, Guido Cioni &lt;<a href="mailto:guidocioni@gmail.com" target="_blank">guidocioni@gmail.com</a>&gt;<br></span></div><br><div><div dir="ltr"><div>See attached:<br><br></div>you have a very small are.<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 19, 2017 at 11:18 AM, Dawit Abebe <span dir="ltr">&lt;<a href="mailto:dawit.kan@gmail.com" target="_blank">dawit.kan@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Dear Dennis<div><br></div><div>Thank you so much!</div><div><br></div><div>I tried with corrected commands but still have a problem with the command:</div><div><br></div><div>        <font color="#0433ff">  res@gsnCenterString  = spi&amp;time({192112}</font>), returning the following error message:</div><div><br></div><div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">fatal:Coordinate <font color="#ff2600">indexing can not be used with coordinate variables </font></span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">fatal:[&quot;Execute.c&quot;:8640]:Execu<wbr>te: Error occurred at or near line 100 in file spi12_plotmap_script.ncl</span></div><div><br></div><div>What did I miss?</div><span class="m_1234071653249751488HOEnZb"><font color="#888888"><div><br></div><div>Dawit</div><div><br></div></font></span></div><span><div><br></div><div><br></div><div><div><blockquote type="cite"><div>On Apr 19, 2017, at 6:25 PM, Dennis Shea &lt;<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>&gt; wrote:</div><br class="m_1234071653249751488m_3116462458381133099Apple-interchange-newline"><div><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">latS = min(prc&amp;lat)</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">  latN = ma</span></div></blockquote></div><br></div></span></div></blockquote></div><br></div>
</div></blockquote></div></div></div><br><div style="word-wrap:break-word"><div><div class="m_4689784198424127167AppleOriginalContents"><blockquote type="cite"><div></div></blockquote></div></div></div><br><div style="word-wrap:break-word"><div><div class="m_-2785151764302082289AppleOriginalContents"><blockquote type="cite"><div></div></blockquote></div></div></div><br><div style="word-wrap:break-word"><div><div><blockquote type="cite"><div></div></blockquote></div></div></div><br><div style="word-wrap:break-word"><div></div></div><br></blockquote></div><br></div>