<div dir="ltr">You can do it easily with cdo<br><div><br>cdo mergetime  <a href="http://file_1981_1990.nc">file_1981_1990.nc</a>    <a href="http://file_1991_2000.nc">file_1991_2000.nc</a>  <a href="http://file_1981_2000.nc">file_1981_2000.nc</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-06-09 16:29 GMT+01:00 Alan Brammer <span dir="ltr">&lt;<a href="mailto:abrammer@albany.edu" target="_blank">abrammer@albany.edu</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">This can be done in about 7 lines in ncl (less if really desired). This should be used a pseudocode and edited to work.  If you don&#39;t understand the below look at the documentation. For bigger files this would not be the best solution but for data ~1MB this should be fine.  </div><div class="gmail_default" style="font-family:verdana,sans-serif">This relies on the the data being consistent and only time changing. </div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">filenames = (/&quot;tasmax...&quot;,&quot;tasmax...&quot;/)</div><div class="gmail_default" style="font-family:verdana,sans-serif">infiles = addfiles(filenames, &quot;r&quot;)</div><div class="gmail_default" style="font-family:verdana,sans-serif">listSetType(infiles, &quot;cat&quot;)</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">var = &quot;variable_name&quot;</div><div class="gmail_default" style="font-family:verdana,sans-serif">data = infiles[:]-&gt;$var$</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">ncout = addfile(&quot;<a href="http://tasmax_all.nc" target="_blank">tasmax_all.nc</a>&quot;,&quot;c&quot;)</div><div class="gmail_default" style="font-family:verdana,sans-serif">ncout-&gt;$var$ = data</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On 9 June 2015 at 10:09, amit timilsina <span dir="ltr">&lt;<a href="mailto:timilsinaamit87@huskers.unl.edu" target="_blank">timilsinaamit87@huskers.unl.edu</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><br>
The attached two files contain three co-ordinates with similar latitude and longitude co-ordinates but differ in time periods (1981-1990 and 1991-2000). Now I want to merge two files to get new file with values of tasmax from 1981-2000 for same latitude and longitude combination. Any link and suggestions to go through will be highly appreciated.<br>
<br>
Regards,<br>
Amit Prasad Timilsina<br>
Ph D student<br>
<br></div></div><span class="">_______________________________________________<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" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></span></blockquote></div><br></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" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>