Sagar,<br>Note that asum uses weighting by latitude to account for projected grids. If you want to ignore that, use asumg.<br><br>Jeff<br><br><div class="gmail_quote">On Tue, Oct 16, 2012 at 2:25 PM, Sagar Parajuli <span dir="ltr"><<a href="mailto:psagar@utexas.edu" target="_blank">psagar@utexas.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thank you, I didn’t realize the asum function.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Sincerely,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#e36c0a">Sagar Prasad Parajuli<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#e36c0a">Graduate Student/Research Assistant<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#e36c0a">University of Texas at Austin<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#e36c0a">Jackson School of Geosciences<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#e36c0a">1 University Station C1100, JGB 5.322<br>
Austin, TX 78712<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#e36c0a">Contact: <a href="mailto:psagar@utexas.edu" target="_blank"><span style="color:#e36c0a">psagar@utexas.edu</span></a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#e36c0a">Cell: 512 965 4093<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><img src="" alt="texas-longhorn-logo" border="0" height="40" width="80"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a> [mailto:<a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a>] <b>On Behalf Of </b>Jeff Duda<br>
<b>Sent:</b> Tuesday, October 16, 2012 2:16 PM<br><b>To:</b> GrADS Users Forum<br><b>Subject:</b> Re: [gradsusr] summing<u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal" style="margin-bottom:12.0pt">
Sagar,<br>Either nest the sum functions or use the asum function for areal sums.<br><br>Jeff Duda<u></u><u></u></p><div><p class="MsoNormal">On Tue, Oct 16, 2012 at 2:11 PM, Sagar Parajuli <<a href="mailto:psagar@utexas.edu" target="_blank">psagar@utexas.edu</a>> wrote:<u></u><u></u></p>
<div><div><p class="MsoNormal">Hi, can anyone suggest how to sum the values in a grid. I have to first in t-direction and then in x and y direction.<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">
define a=sum(dstflxt*area, t=1, t=365) (summing in t-direction, this works fine)<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">define b= sum(a,x=1,x=288,y=1,y=192) (summing in x and y direction, this doesn’t work)<u></u><u></u></p>
<p class="MsoNormal">d b<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">It displays error in sum options.<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">Please help.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">Sincerely,<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">
<span style="color:#e36c0a">Sagar Prasad Parajuli</span><u></u><u></u></p><p class="MsoNormal"><span style="color:#e36c0a">Graduate Student/Research Assistant</span><u></u><u></u></p><p class="MsoNormal"><span style="color:#e36c0a">University of Texas at Austin</span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:#e36c0a">Jackson School of Geosciences</span><u></u><u></u></p><p class="MsoNormal"><span style="color:#e36c0a">1 University Station C1100, JGB 5.322<br>Austin, TX 78712</span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:#e36c0a">Contact: <a href="mailto:psagar@utexas.edu" target="_blank"><span style="color:#e36c0a">psagar@utexas.edu</span></a></span><u></u><u></u></p><p class="MsoNormal"><span style="color:#e36c0a">Cell: 512 965 4093</span><u></u><u></u></p>
<p class="MsoNormal"><u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p></div></div><p class="MsoNormal" style="margin-bottom:12.0pt"><br>_______________________________________________<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><span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></p>
</div><span class="HOEnZb"><font color="#888888"><p class="MsoNormal" style="margin-bottom:12.0pt"><br><br clear="all"><br>-- <br>Jeff Duda<br>Graduate research assistant<br>University of Oklahoma School of Meteorology<br>
Center for Analysis and Prediction of Storms<u></u><u></u></p></font></span></div></div><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>Graduate research assistant<br>University of Oklahoma School of Meteorology<br>Center for Analysis and Prediction of Storms<br><br>