<div dir="ltr"><div class="gmail_default" style="font-size:small">Gaurav,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The error message:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><span style="font-size:12.8px">fatal:Dimension sizes on right hand side of assignment do not match dimension sizes of left hand side</span><br style="font-size:12.8px"></div><div class="gmail_default" style="font-size:small"><span style="font-size:12.8px"><br></span></div><div class="gmail_default" style="font-size:small"><span style="font-size:12.8px">is telling you that you have a statement where the dimensions of the array being referenced on the left side of the equation don&#39;t match with the dimensions of the right side.</span></div><div class="gmail_default" style="font-size:small"><span style="font-size:12.8px"><br></span></div><div class="gmail_default"><span style="font-size:12.8px">I think line 51 in your code is this one:</span></div><div class="gmail_default">







<p class="gmail-p1"><span class="gmail-s1">    slp2d = </span><span class="gmail-s2">wrf_user_getvar</span><span class="gmail-s1">(f,</span><span class="gmail-s3">&quot;slp&quot;</span><span class="gmail-s1">,0)</span></p><p class="gmail-p1"><span class="gmail-s1">My guess is that the error is occurring sometime after the first time through the loop, and that &quot;slp2d&quot; is a different size than it was previously. </span></p><p class="gmail-p1">NCL doesn&#39;t allow you to assign a new variable to an existing variable if it&#39;s a different size or higher type.</p><p class="gmail-p1">You can easily fix this problem by using the reassignment operator, which forces the reassignment to take place:<br></p><p class="gmail-p1"><span class="gmail-s1">







</span></p><p class="gmail-p1"><span class="gmail-s1">    slp2d := </span><span class="gmail-s2">wrf_user_getvar</span><span class="gmail-s1">(f,</span><span class="gmail-s3">&quot;slp&quot;</span><span class="gmail-s1">,0)</span></p><p class="gmail-p1"><span class="gmail-s1">When you get error messages in NCL you don&#39;t understand, you might find an explanation and solution on this page:</span></p><p class="gmail-p1"><span class="gmail-s1"><a href="http://www.ncl.ucar.edu/Document/Language/error_messages.shtml">http://www.ncl.ucar.edu/Document/Language/error_messages.shtml</a><br></span></p><p class="gmail-p1">--Mary<br></p><p class="gmail-p1"><span class="gmail-s1"><br></span></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 3, 2017 at 10:57 AM, Gaurav Tiwari <span dir="ltr">&lt;<a href="mailto:gaurav16@iiserb.ac.in" target="_blank">gaurav16@iiserb.ac.in</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">Now I am getting the following error, script is also attached:<br><br>(0)    Check input data:1 .ne. 9<br><br><br>Variable: times<br>Type: string<br>Total Size: 392 bytes<br>            49 values<br>Number of Dimensions: 1<br>Dimensions and sizes:    [49]<br>Coordinates: <br>Number Of Attributes: 2<br>  description :    times in file<br>  _FillValue :    missing<br>(0)    2014-10-26_00:00:00<br>(1)    2014-10-26_03:00:00<br>(2)    2014-10-26_06:00:00<br>(3)    2014-10-26_09:00:00<br>(4)    2014-10-26_12:00:00<br>(5)    2014-10-26_15:00:00<br>(6)    2014-10-26_18:00:00<br>(7)    2014-10-26_21:00:00<br>(8)    2014-10-27_00:00:00<br>(9)    2014-10-27_03:00:00<br>(10)    2014-10-27_06:00:00<br>(11)    2014-10-27_09:00:00<br>(12)    2014-10-27_12:00:00<br>(13)    2014-10-27_15:00:00<br>(14)    2014-10-27_18:00:00<br>(15)    2014-10-27_21:00:00<br>(16)    2014-10-28_00:00:00<br>(17)    2014-10-28_03:00:00<br>(18)    2014-10-28_06:00:00<br>(19)    2014-10-28_09:00:00<br>(20)    2014-10-28_12:00:00<br>(21)    2014-10-28_15:00:00<br>(22)    2014-10-28_18:00:00<br>(23)    2014-10-28_21:00:00<br>(24)    2014-10-29_00:00:00<br>(25)    2014-10-29_03:00:00<br>(26)    2014-10-29_06:00:00<br>(27)    2014-10-29_09:00:00<br>(28)    2014-10-29_12:00:00<br>(29)    2014-10-29_15:00:00<br>(30)    2014-10-29_18:00:00<br>(31)    2014-10-29_21:00:00<br>(32)    2014-10-30_00:00:00<br>(33)    2014-10-30_03:00:00<br>(34)    2014-10-30_06:00:00<br>(35)    2014-10-30_09:00:00<br>(36)    2014-10-30_12:00:00<br>(37)    2014-10-30_15:00:00<br>(38)    2014-10-30_18:00:00<br>(39)    2014-10-30_21:00:00<br>(40)    2014-10-31_00:00:00<br>(41)    2014-10-31_03:00:00<br>(42)    2014-10-31_06:00:00<br>(43)    2014-10-31_09:00:00<br>(44)    2014-10-31_12:00:00<br>(45)    2014-10-31_15:00:00<br>(46)    2014-10-31_18:00:00<br>(47)    2014-10-31_21:00:00<br>(48)    2014-11-01_00:00:00<br>fatal:Dimension sizes on right hand side of assignment do not match dimension sizes of left hand side<br>fatal:[&quot;Execute.c&quot;:8640]:<wbr>Execute: Error occurred at or near line 51 in file trak.ncl<br><br><br><br></div><div class="gmail_extra"><span class=""><br clear="all"><div><div class="m_6614827359198862131gmail_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>******************************<wbr>******************************<wbr>*************</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: <a href="tel:+91%2074711%2012407" value="+917471112407" target="_blank">+91-7471112407</a><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></span><div><div class="h5"><div class="gmail_quote">On Wed, May 3, 2017 at 6:36 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><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Yes, exactly.<br></div><div class="gmail_extra"><span><br clear="all"><div><div class="m_6614827359198862131m_1849959732191817301gmail_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>******************************<wbr>******************************<wbr>*************</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: <a href="tel:+91%2074711%2012407" value="+917471112407" target="_blank">+91-7471112407</a><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></span><div><div class="m_6614827359198862131h5"><div class="gmail_quote">On Wed, May 3, 2017 at 6:31 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">Did you load the supporting library, as described in the docs?<div><br></div><div>  <a href="http://www.ncl.ucar.edu/Document/Functions/WRF_contributed/wrf_mapres_c.shtml" target="_blank">http://www.ncl.ucar.edu/Docu<wbr>ment/Functions/WRF_contributed<wbr>/wrf_mapres_c.shtml</a></div><div><br></div><div>ie.,:<br><div><br></div><div><pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13.333333015441895px;line-height:12pt;font-family:courier;border-style:solid;border-width:0px 0px 15px;border-color:transparent;color:rgb(0,0,0)">  load &quot;$NCARG_ROOT/lib/ncarg/nclscri<wbr>pts/wrf/WRF_contributed.ncl&quot;</pre><pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13.333333015441895px;line-height:12pt;font-family:courier;border-style:solid;border-width:0px 0px 15px;border-color:transparent;color:rgb(0,0,0)">In NCL 6.4.0, many of these libraries are loaded automatically. WRF_contributed is not one of them.  You also may want to consider using wrf_map_resources() instead of wrf_mapres_c(), as described in the docs.</pre><pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13.333333015441895px;line-height:12pt;font-family:courier;border-style:solid;border-width:0px 0px 15px;border-color:transparent;color:rgb(0,0,0)"><br></pre><pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13.333333015441895px;line-height:12pt;font-family:courier;border-style:solid;border-width:0px 0px 15px;border-color:transparent;color:rgb(0,0,0)"><br></pre><pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13.333333015441895px;line-height:12pt;font-family:courier;border-style:solid;border-width:0px 0px 15px;border-color:transparent;color:rgb(0,0,0)"><br></pre></div></div></div><div class="m_6614827359198862131m_1849959732191817301HOEnZb"><div class="m_6614827359198862131m_1849959732191817301h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 3, 2017 at 5:47 AM, Gaurav Tiwari <span dir="ltr">&lt;<a href="mailto:gaurav16@iiserb.ac.in" target="_blank">gaurav16@iiserb.ac.in</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">Still I am getting the same error:<br><br>fatal:syntax error: line 73 in file trak.ncl before or near ; Set up map resources<br> <br>  wrf_mapres_c(a,res,0)         <wbr>                 ; Set up map resources<span><br>^<br><br>fatal:syntax error: possibly an undefined procedure<br>fatal:Syntax Error in block, block not executed<br></span>fatal:error at line 143 in file trak.ncl<br><br></div><div class="gmail_extra"><span><br clear="all"><div><div class="m_6614827359198862131m_1849959732191817301m_-623461799118989164m_8102632140902855853gmail_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>******************************<wbr>******************************<wbr>*************</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: <a href="tel:+91%2074711%2012407" value="+917471112407" target="_blank">+91-7471112407</a><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></span><div><div class="m_6614827359198862131m_1849959732191817301m_-623461799118989164h5"><div class="gmail_quote">On Wed, May 3, 2017 at 2:02 AM, Gaurav Tiwari <span dir="ltr">&lt;<a href="mailto:gaurav16@iiserb.ac.in" target="_blank">gaurav16@iiserb.ac.in</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="auto">Thank you Rick. I will try it and update you.<div dir="auto"><br></div><div dir="auto">Thanks,</div><div dir="auto">Gaurav</div></div><div class="m_6614827359198862131m_1849959732191817301m_-623461799118989164m_8102632140902855853HOEnZb"><div class="m_6614827359198862131m_1849959732191817301m_-623461799118989164m_8102632140902855853h5"><div class="gmail_extra"><br><div class="gmail_quote">On May 2, 2017 11:58 PM, &quot;Rick Brownrigg&quot; &lt;<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@ucar.edu</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">The error message means just what it says -- there is no procedure found by the name <span style="font-size:12.800000190734863px">WRF_map_c.  So you either have a typo (names are case-sensitive) or there is no such function. If I were speculate, there is a function in NCL named wrf_mapres_c() that takes three arguments:</span><div><span style="font-size:12.800000190734863px"><br></span></div><div><a href="http://www.ncl.ucar.edu/Document/Functions/WRF_contributed/wrf_mapres_c.shtml" target="_blank">http://www.ncl.ucar.edu/Docume<wbr>nt/Functions/WRF_contributed/w<wbr>rf_mapres_c.shtml</a><span style="font-size:12.800000190734863px"><br></span></div><div><br></div><div>Note that it is deprecated in favor of wrf_map_resources.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 2, 2017 at 10:44 AM, Gaurav Tiwari <span dir="ltr">&lt;<a href="mailto:gaurav16@iiserb.ac.in" target="_blank">gaurav16@iiserb.ac.in</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>Hi,<br></div>   I am running NCL script to plot cyclone track but I am getting an error which is given below:<br clear="all"><div><div><div><div class="m_6614827359198862131m_1849959732191817301m_-623461799118989164m_8102632140902855853m_-7797282280049177856m_4697175067495327140m_3308050818712520382gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><br><br>gaurav@2-Lenovo-S510:~/ncl_scr<wbr>ipts$ ncl track.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>fatal:syntax error: line 73 in file track.ncl before or near \n <br>  WRF_map_c(a,res,0)<br>--------------------^<br><br>fatal:syntax error: possibly an undefined procedure<br>fatal:Syntax Error in block, block not executed<br>fatal:error at line 142 in file track.ncl<br><br><br></div><div>My script is attached here. Kindly help me to short out this issue.<br><br></div><div>Thanks,<br></div><div>Gaurav <br></div><div><br><br><br><br><br><br>******************************<wbr>******************************<wbr>*************</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: <a href="tel:+91%2074711%2012407" value="+917471112407" target="_blank">+91-7471112407</a><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:12pt;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:10pt;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>
</div></div></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>
</blockquote></div></div>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div></div></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>