<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi, Ismaila,&nbsp;</div><div>This is basically a regridding operation in the time dimension.&nbsp;The only way to do this is the brute-force method of stepping through your daily time series, averaging five time steps together, and writing out the results to a new data file. You will have to decide what to do with the extra day in the case of a leap year. Your script might look something like this:&nbsp;</div><div><br></div><div>'set gxout fwrite'</div><div>'set fwrite -ap pentad.bin'</div><div>tlast=365</div><div>t=1</div><div>while (t&lt;tlast)</div><div>&nbsp;&nbsp;'set t 't</div><div>&nbsp;&nbsp;'d ave(var,t+0,t+4)'</div><div>&nbsp;&nbsp;t=t+5</div><div>endwhile</div><div>'disable fwrite'</div><div><br></div><div>--Jennifer</div><div><br></div><div><br><div><div>On Feb 22, 2011, at 8:00 AM, Ismaila Diallo wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div style="color:#000; background-color:#fff, font-family:tahoma, new york, times, serif;font-size:12pt">Dear grads user,<br>I have daily data in netcdf format and i went to transform them in pentadal data (cumul for every 5 day : example 1to 5, 6 to 10 ....). Does it a way for doing these transformation in grads.<br>all suggestions are welcome.<br>Thanks in advance<br>ismaila <br class="yui-cursor"></div><br>       </div>_______________________________________________<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><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>--</div><div>Jennifer M. Adams</div><div>IGES/COLA</div><div>4041 Powder Mill Road, Suite 302</div><div>Calverton, MD 20705</div><div><a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span></div></span> </div><br></div></body></html>