<div dir="ltr"><div><div><div><div>Hi Afwande, <br><br></div>The problem is in the dimensions of your variables. <br>&quot;The Dim size of both U and V component is  (time, lat, lon)&quot; <br><br></div>change these lines <br> 
 u1 = u(:,:,5) ;dimension reduction  - here you selecting all time 
steps, all lon grids and the 6th lat grid point and result is U1(time,lon)<br>  v1 = v(:,5,:);dimension reduction - and in here is V1(time,lat) <br><br></div>to these <br>u1 = u(5,:,:) ;dimension reduction<br> v1 = v(5,:,:)<br><br><br></div>Izidine <br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><font style="font-family:courier new,monospace;background-color:rgb(255,255,255);color:rgb(153,153,153)" size="1"><br><span style="color:rgb(51,51,51)">Izidine S. Pinto</span><br style="color:rgb(51,51,51)"><span style="color:rgb(51,51,51)"></span></font><br>







</div></div>
<br><div class="gmail_quote">On 21 August 2015 at 09:11, afwande juliet <span dir="ltr">&lt;<a href="mailto:afwandej965@gmail.com" target="_blank">afwandej965@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>Hello all</div><div>I want to make u and V plots together in one plot(overlay)<div>The Dim size of both U and V component is  (time, lat, lon)</div></div><div><br></div><div>This error is generated when I plot </div><div><br></div><div>fatal:Number of dimensions in parameter (1) of (gsn_csm_vector_scalar_map_ce) is (3), (2) dimensions were expected <br>fatal:[&quot;Execute.c&quot;:8578]:Execute: Error occurred at or near line 45 in file 83</div><div><br></div><div>When I try to reduce to 2Dim  like this</div><div><br></div><div>u = a-&gt;uwnd <br>  v = b-&gt;vwnd<br>  u1 = u(:,:,5) ;dimension reduction<br>  v1 = v(:,5,:);dimension reduction<br> wspd = u1<br>  wspd = (/ sqrt(u1^2+v1^2) /)</div><div>first i am not sure whether this solves my problem since the error message below is genarated...</div><div><br></div><div><br>wind fatal:Plus: Dimension size, for dimension number 1, of operands does not match, can&#39;t continue</div><div>fatal:[&quot;Execute.c&quot;:8578]:Execute: Error occurred at or near line 28 in file 83</div><div><br></div><div><br></div><div>I have attched my script</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>