<div dir="ltr"><div class="gmail_default" style="font-size:small">The error is telling you that you are trying to assign one variable to another, but that the variable on the left side of the &quot;=&quot; is a different size than the one on the right side.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I believe it is this line that&#39;s the issue:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="">







<p class="" style="font-size:small"><span class="">times = </span><span class="">wrf_user_getvar</span><span class="">(a,</span><span class="">&quot;times&quot;</span><span class="">,-1)  </span>; get all times in the file                                                </p><p class="" style="font-size:small">If each WRF file has a different number of timesteps, then &quot;times&quot; is going to be a different size every time in the loop.</p><p class="" style="font-size:small">You can use the reassignment operator to force the reassignment to happen:</p><p class="" style="font-size:small"><span class="">times := </span><span class="">wrf_user_getvar</span><span class="">(a,</span><span class="">&quot;times&quot;</span><span class="">,-1)  </span>; get all times in the file                                                </p><div style="font-size:small">For future reference, you can go to our &quot;error messages&quot; page to find some common errors and how to fix them.  See:</div><div style="font-size:small"><br></div><div style=""><a href="http://www.ncl.ucar.edu/Document/Language/error_messages.shtml">http://www.ncl.ucar.edu/Document/Language/error_messages.shtml</a><br></div><div style=""><br></div><div style="">--Mary</div><div style=""><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 30, 2015 at 7:40 PM, Muhammad Omer Mughal <span dir="ltr">&lt;<a href="mailto:m.mughal1@postgrad.curtin.edu.au" target="_blank">m.mughal1@postgrad.curtin.edu.au</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 style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p><br>
</p>
<p>Hi <br>
</p>
<p><br>
</p>
<p>I am trying to use the attached script to retrieve wind speed over a couple of wrfoutput files. But I am hitting this error
<br>
</p>
<p><br>
</p>
<p>fatal:Dimension sizes of left hand side and right hand side of assignment do not match<br>
fatal:[&quot;Execute.c&quot;:8578]:Execute: Error occurred at or near line 21 in file wrfwindspeed.ncl</p>
<p><br>
</p>
<p>Can anyone help please.<br>
<br>
</p>
<div>
<div style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px"><b><br>
</b></div>
</div>
</div>
</div>
</div>
</div>

<br>_______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>