<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Feb 14, 2013, at 6:05 AM, Marwan Kheimi wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<div dir="ltr">
<div dir="ltr">
<div style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
<div>Hi guys, </div>
<div>&nbsp;</div>
<div>I need help with this control file to find the average monthly 
precipitation for this control file but the problem is I don’t know what is the 
proper way to do it. </div>
<div>How to accumulate the values using Grads codes ?</div></div></div></div></blockquote><div>To get the accumulated precip over a month (e.g. Jan 1998) use the sum() function. For the mean, use the ave() function. Documentation is at&nbsp;<a href="http://iges.org/grads/gadoc/gradfuncave.html">http://iges.org/grads/gadoc/gradfuncave.html</a> and&nbsp;<a href="http://iges.org/grads/gadoc/gradfuncsum.html">http://iges.org/grads/gadoc/gradfuncsum.html</a></div>accum = sum(cmorph,time=1jan1998,31jan1998)</div><div>mean = ave(cmorph,time=1jan1998,31jan1998)</div><div><br></div><div><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
<div>Also, if any one could help me to find the root square coefficient</div></div></div></div></blockquote>Look at the final example in the ave() documetation.&nbsp;</div><div>--Jennifer</div><div><br></div><div><br><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
<div>this a daily file temporal scale.</div>
<div><code>chsub&nbsp; <em>t1</em>&nbsp; <em>t2</em>&nbsp; 
<em>string</em></code></div>
<div><code><em>Some how I have to use this script however I am new to grads 
please if any could help me I would really appreciate it </em></code></div>
<div><code><em>I also, somehow know that the grip. file could be another 
solution to figure it out.</em></code>&nbsp; </div><pre>DSET ../0.25deg-DLY_00Z/%y4/%y4%m2/CMORPH_V1.0_RAW_0.25deg-DLY_00Z_%y4%m2%d2  
TITLE  CMORPH Version 1.0BETA Version, daily precip from 00Z-24Z 
OPTIONS template little_endian
UNDEF  -999.0
XDEF 1440 LINEAR    0.125  0.25
YDEF  480 LINEAR  -59.875  0.25
ZDEF   01 LEVELS 1
TDEF 99999 LINEAR  01jan1998 1dy 
VARS 1
cmorph   1   99 yyyyy CMORPH Version 1.o daily precipitation (mm)  
ENDVARS</pre><pre>&nbsp;</pre><pre>&nbsp;</pre><pre>kind regards, </pre><pre>Marawn </pre></div></div></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; "><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></span>
</div>
<br></body></html>