<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Kaikombo,</div><div><br></div><div>Here is a script that will merge daily averaged temperature fields for a single level, from multiple years (NCEP Reanalysis) into a single grib2 file using g2grb.gs (see web link).</div><div><br></div><div>Best,</div><div>Lee</div><div><br></div><div><br></div><div>'reinit'</div><div>iyear=2006</div><div>*iyear=1948</div><div><br></div><div>while (iyear <= 2012)</div><div> 'sdfopen <a href="http://www.esrl.noaa.gov/psd/thredds/dodsC/Datasets/ncep.reanalysis.dailyavgs/pressure/air.'iyear'.nc'">http://www.esrl.noaa.gov/psd/thredds/dodsC/Datasets/ncep.reanalysis.dailyavgs/pressure/air.'iyear'.nc'</a></div><div> 'q file'</div><div> res=sublin(result,5)</div><div> tsize=subwrd(res,12)</div><div> say tsize</div><div> tim = 1</div><div> 'set x 1 144'</div><div> 'set y 1 73'</div><div>while (tim <= tsize)</div><div> 'set t 'tim</div><div> 'define var=air(lev=10)'</div><div> 'g2grb var +merged_t10_daily_b20060101.e20120728.grb2 TMP:10 mb:anl:packing=j:center=7'</div><div> tim=tim+1</div><div>endwhile</div><div> 'close 1'</div><div> iyear=iyear+1</div><div>endwhile</div><div>'quit'</div><div><br></div><div><br></div><div><a href="http://www.cpc.ncep.noaa.gov/products/wesley/g2grb.html">http://www.cpc.ncep.noaa.gov/products/wesley/g2grb.html</a> </div><div><br></div><div><br></div><div><br></div><div><div>On Mar 11, 2013, at 8:57 AM, kombo kai wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font: inherit;">Hi grad users <br>I have the daily average ssts for 30 years in separate daily files. I want to merge the time steps of the files so a to have a single file having the daily average data for the whole 3o years period.<br>It is easy to do with CDO but i fail to do it with grads<br>please any one to direct me about this<br>regards<br>kaikombo<br><br></td></tr></tbody></table>_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>http://gradsusr.org/mailman/listinfo/gradsusr<br></blockquote></div><br></body></html>