<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'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 = (/"tasmax...","tasmax..."/)</div><div class="gmail_default" style="font-family:verdana,sans-serif">infiles = addfiles(filenames, "r")</div><div class="gmail_default" style="font-family:verdana,sans-serif">listSetType(infiles, "cat")</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">var = "variable_name"</div><div class="gmail_default" style="font-family:verdana,sans-serif">data = infiles[:]->$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("<a href="http://tasmax_all.nc">tasmax_all.nc</a>","c")</div><div class="gmail_default" style="font-family:verdana,sans-serif">ncout->$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">On 9 June 2015 at 10:09, amit timilsina <span dir="ltr"><<a href="mailto:timilsinaamit87@huskers.unl.edu" target="_blank">timilsinaamit87@huskers.unl.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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>_______________________________________________<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>