<div>Hi</div>
<div>use this command</div>
<div>'set x 1'</div>
<div>'set y 1'</div>
<div>'set t 1 366'</div>
<div>'define newvar=a+b'</div>
<div>'d sum(newvar,lat=10,lat=20)' ==> for sum of your data at latitude</div>
<div>
<div>'d sum(newvar,lev=1,lev=5)' ==> for level </div>
<div> </div>
<div>good luck;</div>
<div> </div>
<div> </div>
<div>H.L.</div>
<div>Atmospheric and Ocean Research Center</div>
<div>Shiraz University</div></div>
<div><br><br> </div>
<div class="gmail_quote">On Fri, Jun 17, 2011 at 8:54 PM, Rafanoharana Serge Claudio <span dir="ltr"><<a href="mailto:rafanoharana@gmail.com">rafanoharana@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Dear all,<br><br>I would like to sum two variable within one netcdf file for each time t=1 to t=366.<br>I have one netcdf file (<a href="http://file.nc/" target="_blank">file.nc</a>) which contains two variables a and b from t=1 to t=366<br>
What I am trying to do is to sum each value per time, I mean <br>sum a,b for t=1<br>sum a,b for t=2<br>...<br>sum a,b for t=366<br><br>I tried this command:<br><br>define c=sum(a+b, t=1, t=366)<br><br>but didn't give me what I needed.<br>
What I expect to obtain is that the variable c will contain the SUM of the two variables a and b from each t=1 to t=366<br clear="all">I hope you get my problem,<br><br>Best Regards,<br><font color="#888888"><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>