<div dir="ltr"><div class="gmail_default" style="font-size:small">My guess is that the 2nd warning message is coming from this line:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">
<p class="gmail-p1"><span class="gmail-s1"> txid1(i) = </span><span class="gmail-s2">gsn_add_text</span><span class="gmail-s1">(wks,plot,date(i),lon1d(ix),lat1d(ix),txres)</span></p><p class="gmail-p1"><span class="gmail-s1">The third argument to gsn_add_text, which is supposed to be a string, is actually being given an integer (date). You can convert "date" to a string by prepending a "":</span></p><p class="gmail-p1"><span class="gmail-s1"> txid1(i) = </span><span class="gmail-s2">gsn_add_text</span><span class="gmail-s1">(wks,plot,""+date(i),lon1d(ix),lat1d(ix),txres)</span></p><p class="gmail-p1"><span class="gmail-s1">You could also create a separate array that converts date to a string array:</span></p><p class="gmail-p1"><span class="gmail-s1">str_date = tostring(date)</span></p><p class="gmail-p1"><span class="gmail-s1">and then use:</span></p><p class="gmail-p1"><span class="gmail-s1"> txid1(i) = </span><span class="gmail-s2">gsn_add_text</span><span class="gmail-s1">(wks,plot,str_date(i),lon1d(ix),lat1d(ix),txres)</span></p><p class="gmail-p1"><span class="gmail-s1">--Mary</span></p><p class="gmail-p1"><span class="gmail-s1"><br></span></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 25, 2017 at 3:36 PM, Rick Brownrigg <span dir="ltr"><<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>That message is just a warning -- are you not getting the expected plot output? Can you tell which function is issuing the 2nd warning message (try bracketing it by placing print statements at some strategic places.<br><br></div>Rick<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Thu, May 25, 2017 at 12:13 PM, Gaurav Tiwari <span dir="ltr"><<a href="mailto:gaurav16@iiserb.ac.in" target="_blank">gaurav16@iiserb.ac.in</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div>Hi Mary,<br></div> I am continuously trying to plot the track of a cyclone by using <a href="http://wrfoutput.nc" target="_blank">wrfoutput.nc</a> file but I am getting error which is pasted below:<br><div><div><br><br>gaurav@2-Lenovo-S510:~/ncl_scr<wbr>ipts$ ncl trackmod.ncl<br> Copyright (C) 1995-2017 - All Rights Reserved<br> University Corporation for Atmospheric Research<br> NCAR Command Language Version 6.4.0<br> The use of this software is governed by a License Agreement.<br> See <a href="http://www.ncl.ucar.edu/" target="_blank">http://www.ncl.ucar.edu/</a> for more details.<br>warning:gsnAddCyclic is not a valid resource in map at this time<br>(0) dot:62.9357,13.9954<br>(0) Eye:9140<br>warning:Argument 2 of the current function or procedure was coerced to the appropriate type and thus will not change if the function or procedure modifies its value<br><br><br></div><div>I am attaching my script and output figure. KIndly check my script and help me to solve my problem.<span class="m_-4654577971400915685HOEnZb"><font color="#888888"><br><br><br></font></span></div><span class="m_-4654577971400915685HOEnZb"><font color="#888888"><div>--Gaurav<br></div><div><br></div></font></span></div></div>
<br></div></div>______________________________<wbr>_________________<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/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>