[gradsusr] How to get the Sum of variable (not spatially) for all region

Rowell, Mason D. Mason.D.Rowell-1 at ou.edu
Mon Sep 26 11:11:31 EDT 2011


Serge,

Find documentation on the asum (areal sum) function. It should accept the arguments you need.

Mason
________________________________
From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] on behalf of Rafanoharana Serge Claudio [rafanoharana at gmail.com]
Sent: Monday, September 26, 2011 4:46 AM
To: GrADS Users Forum
Subject: [gradsusr] How to get the Sum of variable (not spatially) for all region

Dear all,

I have monthly data of one year. I used 'define new=sum(var,t=1,t=12)' then I obtain the sum of the spatial distribution for one year. This is more "in this point/coordinate, the annual precipitation is xxx mm"

But what I need is the total (sum) of the value of the variable. Something like: "In this area of 500km2, the annual precipitation is xxx mm".

Is it possible to obtain that?

Best regards

--
Serge
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110926/0fac42ac/attachment-0003.html 


More information about the gradsusr mailing list