<div dir="ltr"><div><div><div>Hi, I have tried whatever you have suggested but still facing problem as mentioned below. Kindly run my script by using any <a href="http://wrfoutput.nc">wrfoutput.nc</a> file so that my script will be cross checked also and it will be easy for you to solve my problem. <br><br></div>Script is attached below. <br><br></div>Thanks and regards,<br><br></div>--gaurav<br><div><div><div><div><br>gaurav@2-Lenovo-S510:~/ncl_scripts$ 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/">http://www.ncl.ucar.edu/</a> for more details.<br><br><br>Variable: time (subsection)<br>Type: string<br>Total Size: 8 bytes<br>            1 values<br>Number of Dimensions: 1<br>Dimensions and sizes:    [1]<br>Coordinates: <br>Number Of Attributes: 6<br>  _FillValue :    missing<br>  FieldType :    106<br>  MemoryOrder :    0  <br>  description :    <br>  units :    <br>  stagger :    <br>(0)    1440<br>(0)    1440 : 996.752 (56,72)<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><br></div></div></div></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><br><br><br>*************************************************************************</div><b>Gaurav Tiwari</b><div>Research Scholar</div><div>Department of Earth and Environmental Sciences</div><div>Indian Institute of Science Education and Research Bhopal <br>(IISER B)</div><div>Bhopal- 462066, Madhya Pradesh</div><div>Email: <a href="mailto:saquib16@iiserb.ac.in" target="_blank">gaurav16@iiserb.ac.in</a></div><div>Mob: +91-7471112407<br><a href="https://www.linkedin.com/in/gaurav-tiwari-bb36357a?trk=hp-identity-name" target="_blank">LinkedIn</a>      <a href="https://www.researchgate.net/profile/Gaurav_Tiwari5" target="_blank">Research gate</a><br><br><br><br><br><b><i><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:green"><img src="cid:image001.png@01D23125.88F2F320" alt="Description: Description: Description: Description: Description: Description: Description: cid:image001.jpg@01CC2469.06E9E6A0" width="33" height="38" border="0"> </span></i></b><b><span style="font-size:10.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:green" lang="EN-GB">Please consider the environment before printing this e-mail</span></b></div></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Fri, May 26, 2017 at 3:36 AM, Mary Haley <span dir="ltr">&lt;<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</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"><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="m_-9107371713744596724gmail-p1"><span class="m_-9107371713744596724gmail-s1">     txid1(i) = </span><span class="m_-9107371713744596724gmail-s2">gsn_add_text</span><span class="m_-9107371713744596724gmail-s1">(wks,plot,date(i),<wbr>lon1d(ix),lat1d(ix),txres)</span></p><p class="m_-9107371713744596724gmail-p1"><span class="m_-9107371713744596724gmail-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 &quot;date&quot; to a string by prepending a &quot;&quot;:</span></p><p class="m_-9107371713744596724gmail-p1"><span class="m_-9107371713744596724gmail-s1">     txid1(i) = </span><span class="m_-9107371713744596724gmail-s2">gsn_add_text</span><span class="m_-9107371713744596724gmail-s1">(wks,plot,&quot;&quot;+date(<wbr>i),lon1d(ix),lat1d(ix),txres)</span></p><p class="m_-9107371713744596724gmail-p1"><span class="m_-9107371713744596724gmail-s1">You could also create a separate array that converts date to a string array:</span></p><p class="m_-9107371713744596724gmail-p1"><span class="m_-9107371713744596724gmail-s1">str_date = tostring(date)</span></p><p class="m_-9107371713744596724gmail-p1"><span class="m_-9107371713744596724gmail-s1">and then use:</span></p><p class="m_-9107371713744596724gmail-p1"><span class="m_-9107371713744596724gmail-s1">     txid1(i) = </span><span class="m_-9107371713744596724gmail-s2">gsn_add_text</span><span class="m_-9107371713744596724gmail-s1">(wks,plot,str_<wbr>date(i),lon1d(ix),lat1d(ix),<wbr>txres)</span></p><span class="HOEnZb"><font color="#888888"><p class="m_-9107371713744596724gmail-p1"><span class="m_-9107371713744596724gmail-s1">--Mary</span></p><p class="m_-9107371713744596724gmail-p1"><span class="m_-9107371713744596724gmail-s1"><br></span></p></font></span></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 25, 2017 at 3:36 PM, Rick Brownrigg <span dir="ltr">&lt;<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@ucar.edu</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"><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="m_-9107371713744596724h5">On Thu, May 25, 2017 at 12:13 PM, Gaurav Tiwari <span dir="ltr">&lt;<a href="mailto:gaurav16@iiserb.ac.in" target="_blank">gaurav16@iiserb.ac.in</a>&gt;</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="m_-9107371713744596724h5"><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_-9107371713744596724m_-4654577971400915685HOEnZb"><font color="#888888"><br><br><br></font></span></div><span class="m_-9107371713744596724m_-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" 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>
</div></div></blockquote></div><br></div>