<div dir="ltr"><div>Read the &#39;addfiles&#39; documentation. In particular, Example 2, ....<br><br><a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/addfiles.shtml" target="_blank">http://www.ncl.ucar.edu/Document/Functions/Built-in/addfiles.shtml</a><br></div><div><br><br>==<br><br></div><div>; all files in the same directory<br></div><div>     diri   = &quot;./&quot;<br></div><div>     fili    = (/ &quot;Model_A.nc&quot;,  &quot;Model_Bnc&quot;,  &quot;Model_C.nc&quot;,/)<br></div><div>     fils   = diri + fili<br></div><div>     print(fils)<br><br></div><div>; different directories<br>     diri   =  (/  &quot;/ADIR/&quot; , &quot;/BDIR/&quot; , &quot;/CDIR/&quot; /)<br><div>     fili    =  (/ &quot;Model_A.nc&quot;,  &quot;Model_Bnc&quot;,  &quot;Model_C.nc&quot;,/)<br></div><div>     fils   =  diri + fili<br></div>     print(fils)<br><br><pre>   f    = <b>addfiles</b> (fils, &quot;r&quot;)   ; note the &quot;s&quot; of <a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/addfile.shtml" target="_blank"><b>addfile</b></a>
   <a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/ListSetType.shtml" target="_blank"><b>ListSetType</b></a> (f, &quot;join&quot;)       
</pre><pre>   T    = f[:]-&gt;T                ; read T from all files
   <a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/printVarSummary.shtml" target="_blank"><b>printVarSummary</b></a> (T)</pre>   
</div><div>

The <a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/printVarSummary.shtml" target="_blank"><b>printVarSummary</b></a> procedure yields:

<pre>   Variable: T
   
   Number of Dimensions: 5
   Dimensions and sizes:   <br>    [ncl_join | 5] x [lev | 5] x [lat | 48] x [lon | 96]<br></pre><pre>or<br><br>   Dimensions and sizes:   <br>    [ncl_join | 5] [time | 100] x [lev | 5] x [lat | 48] x [lon | 96]<br><br></pre></div><div>     Tmean = dim_avg_n_Wrap(T, 0)<br></div><div>     printVarSummary(Tmean)<br></div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 19, 2015 at 4:48 PM, Adv <span dir="ltr">&lt;<a href="mailto:advita6@gmail.com" target="_blank">advita6@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><div><div><div><div><div>Hi ,<br></div>I would like to calculate the ensemble mean of three different model data sets with same time , lat and lon coordinate. <br></div>For example,<br></div>X(time,lat,lon) Model1<br>X1(time,lat,lon) Model2<br>X2(time,lat,lon) Model3<br></div>Could someone explain me, how to accomplish the ensemble mean?<br><br></div>Thanks,<br></div>Adv<br></div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>