<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi George,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Are you positive that the &quot;time&quot; dimensions on both files are the same length? The error message is indicating otherwise.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You first call this:</div><div class="gmail_default" style="font-size:small">







<p class="p1"><font face="monospace, monospace">  TIME = <span class="s1">a-&gt;</span>time</font></p><p class="p1">and then later:</p><p class="p1">







</p><p class="p1"><font face="monospace, monospace">  TIME = b-&gt;time</font></p><p class="p1">and the error is telling you that you are trying to assign some values to the &quot;TIME&quot; array, which already exists, but with an array of a different size.</p><p class="p1">You can force TIME to be a new array, by using the reassignment operator:</p><p class="p1"><font face="monospace, monospace">TIME := b-&gt;time</font></p><p class="p1">However, you should become familiar with your data before you start reading and plotting it.  We always recommend that you use the &quot;printVarSummary&quot; procedure to look at your data. You could do something like this, just for debugging purposes:</p><p class="p1"><font face="monospace, monospace">printVarSummary(a-&gt;TIME)    ; Compare the output; are these two<br>printVarSummary(b-&gt;TIME)    ; arrays the same length?</font></p><p class="p1">Also, as a side, I noticed you are also calling this:</p><p class="p1"></p><p class="p1"><font face="monospace, monospace">   time = a-&gt;time                                ; (time) ==&gt; YYMM<br>   ntim = dimsizes(time)</font></p><p class="p1"><font face="monospace, monospace">...</font></p><p class="p1"></p><p class="p1"><font face="monospace, monospace">   time = b-&gt;time                                ; (time) ==&gt; YYMM<br></font><span style="font-family:monospace,monospace">   ntim = dimsizes(time)</span></p><div><font face="monospace, monospace"><br></font></div><p class="p1">There&#39;s really no need to read the &quot;time&quot; arrays in twice. You can use the original TIME array to get the size:</p><p class="p1"><font face="monospace, monospace">   ntim = dimsizes(TIME)</font></p><div><font face="arial, helvetica, sans-serif">--Mary</font></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Aug 8, 2015 at 9:36 AM, george luke otieno <span dir="ltr">&lt;<a href="mailto:gotieno2000@gmail.com" target="_blank">gotieno2000@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 dir="ltr"><div>Dear All</div><div><br></div><div>I want to plot two variables <strong>precip</strong> and <strong>precip1</strong> from GPCP and GPCC, i see some cases in the ncl scripts where resources are set for each variable(Precip and Precip1) ,must i set resources for each variable. I am trying to use same resources for the variable but am being told</div><div><br></div><div>&quot;....Dimension sizes of left hand side and right hand side of assignment do not match...&quot; especially  for reading GPCP data section...at line 54<br></div><div><br></div><div>yet the datasets have same dimension</div><div><br></div><div>attached below is my script<br clear="all"></div><div><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><br><br><br><span style="font-family:arial,helvetica,sans-serif">Best Regards<br></span></div><div><span style="font-family:arial,helvetica,sans-serif">George Otieno</span></div><div><span style="font-family:arial,helvetica,sans-serif"><br></span></div><div><span style="font-family:arial,helvetica,sans-serif">Intergrated Climate System Modelling Lab.<br></span></div><div><span style="font-family:arial,helvetica,sans-serif">Department of Environmental Atmospheric Sciences<br></span></div><div><span style="font-family:arial,helvetica,sans-serif">608-737, Room 4302, Chungmu-Building</span></div><div><span style="font-family:arial,helvetica,sans-serif">Pukyong National University,<br></span></div><div><span style="font-family:arial,helvetica,sans-serif">45,Yongso-ro,Nam-gu, Busan, South Korea<br></span></div><div><span style="font-family:arial,helvetica,sans-serif">Tel. <a href="tel:%2B82-51-629-6643" value="+82516296643" target="_blank">+82-51-629-6643</a><br></span></div><div><span style="font-family:arial,helvetica,sans-serif">Fax<a href="tel:%2B82-51-629-7991" value="+82516297991" target="_blank">+82-51-629-7991</a></span><b><span style="font-family:times new roman,serif"><br></span></b></div></div></div></div></div></div></div></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>