The command you&#39;ll probably want to use is &quot;asum&quot;.<br><br>Jeff Duda<br><br><div class="gmail_quote">On Mon, Sep 26, 2011 at 10:24 AM, Rafanoharana Serge Claudio <span dir="ltr">&lt;<a href="mailto:rafanoharana@gmail.com">rafanoharana@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Dear Davide and Mason,<br><br>Davide&gt; I am not dealing with precipitation but NPP but I will have a look at your suggestion.<br>
Mason&gt; Let me check on it.<br><br>Thanks,<br><br>Serge<br><br><br><div class="gmail_quote"><div><div></div><div class="h5">
On Mon, Sep 26, 2011 at 8:11 AM, Rowell, Mason D. <span dir="ltr">&lt;<a href="mailto:Mason.D.Rowell-1@ou.edu" target="_blank">Mason.D.Rowell-1@ou.edu</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div></div><div class="h5">





<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">Serge,
<div><br>
</div>
<div>Find documentation on the asum (areal sum) function. It should accept the arguments you need. </div>
<div><br>
</div>
<div>Mason <br>
<div style="font-family:Times New Roman;color:#000000;font-size:16px">
<hr>
<div style="direction:ltr"><font face="Tahoma" size="2" color="#000000"><b>From:</b> <a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a> [<a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a>] on behalf of Rafanoharana Serge Claudio [<a href="mailto:rafanoharana@gmail.com" target="_blank">rafanoharana@gmail.com</a>]<br>


<b>Sent:</b> Monday, September 26, 2011 4:46 AM<br>
<b>To:</b> GrADS Users Forum<br>
<b>Subject:</b> [gradsusr] How to get the Sum of variable (not spatially) for all region<br>
</font><br>
</div><div><div></div><div>
<div></div>
<div>Dear all,<br>
<br>
I have monthly data of one year. I used &#39;define new=sum(var,t=1,t=12)&#39; then I obtain the sum of the spatial distribution for one year. This is more &quot;in this point/coordinate, the annual precipitation is xxx mm&quot;<br>


<br>
But what I need is the total (sum) of the value of the variable. Something like: &quot;In this area of 500km2, the annual precipitation is xxx mm&quot;.<br>
<br>
Is it possible to obtain that?<br>
<br>
Best regards<br clear="all">
<br>
-- <br>
Serge<br>
</div>
</div></div></div>
</div>
</div>
</div>

<br></div></div><div class="im">_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></div></blockquote></div><font color="#888888"><br><br clear="all"><br>-- <br>Serge<br>
</font><br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Jeff Duda<br>Iowa State University<br>Meteorology Graduate Student<br><a href="http://www.meteor.iastate.edu/%7Ejdduda" target="_blank">www.meteor.iastate.edu/~jdduda</a><br>