<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hello folks,<div class=""><br class=""></div><div class="">I have a question regarding the grads basic stats issued by the ‘set stat on’ or ‘set gxout stat’.</div><div class=""><br class=""></div><div class="">In the documentation page for the ‘stat’ function <a href="http://cola.gmu.edu/grads/gadoc/gradcomdsetstat.html" class="">http://cola.gmu.edu/grads/gadoc/gradcomdsetstat.html</a>, I see that the ‘sum' of the grid point values (I supposed) gives an integer value (in bold)? Why is it an integer value?</div><div class=""><br class=""></div><div class="">See: </div><div class=""><pre class="">Data Type = grid
Dimensions = 0 1
I Dimension = 1 to 73 Linear 0 5
J Dimension = 1 to 46 Linear -90 4
Sizes = 73 46 3358
Undef value = -2.56e+33
Undef count = 1763  Valid count = 1595
Min, Max = 243.008 302.818
Cmin, cmax, cint = 245 300 5
Stats[sum,sumsqr,root(sumsqr),n]:     <b class="">452778</b> 1.29046e+08 11359.8 1595
Stats[(sum,sumsqr,root(sumsqr))/n]:     283.874 80906.7 284.441
Stats[(sum,sumsqr,root(sumsqr))/(n-1)]: 284.052 80957.4 284.53
Stats[(sigma,var)(n)]:     17.9565 322.437
Stats[(sigma,var)(n-1)]:   17.9622 322.64
Contouring: 245 to 300 interval 5 </pre><div class="">I grab the grads source code and took a look at the source ‘gagx.c' and found the snippet attached. I get what 'sum += dum’ is (which should be the same as ‘sum = sum + dum’, but I’m not sure what ‘dum = *(gr+i)’ does. Can someone clarify exactly what the ‘sum’ is about?</div></div><div class=""><br class=""></div><div class="">Thank you!</div><div class=""><br class=""></div><div class=""><img apple-inline="yes" id="7696B087-4C1A-446C-821D-9CC4439A37B1" src="cid:C263673C-112F-4B36-9F2E-9F73A2B0192A" class=""></div><div class=""><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Carlos</div></div>
</div>
<br class=""></div></body></html>