[gradsusr] merging time steps
Lee Byerle
lbyerle at yahoo.com
Tue Mar 12 00:17:36 EDT 2013
Kaikombo,
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).
Best,
Lee
'reinit'
iyear=2006
*iyear=1948
while (iyear <= 2012)
'sdfopen http://www.esrl.noaa.gov/psd/thredds/dodsC/Datasets/ncep.reanalysis.dailyavgs/pressure/air.'iyear'.nc'
'q file'
res=sublin(result,5)
tsize=subwrd(res,12)
say tsize
tim = 1
'set x 1 144'
'set y 1 73'
while (tim <= tsize)
'set t 'tim
'define var=air(lev=10)'
'g2grb var +merged_t10_daily_b20060101.e20120728.grb2 TMP:10 mb:anl:packing=j:center=7'
tim=tim+1
endwhile
'close 1'
iyear=iyear+1
endwhile
'quit'
http://www.cpc.ncep.noaa.gov/products/wesley/g2grb.html
On Mar 11, 2013, at 8:57 AM, kombo kai wrote:
> Hi grad users
> 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.
> It is easy to do with CDO but i fail to do it with grads
> please any one to direct me about this
> regards
> kaikombo
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130311/4fc7336c/attachment-0003.html
More information about the gradsusr
mailing list