[gradsusr] Function Sum for multiple variable within one file for each time t=1 to t=366

Rafanoharana Serge Claudio rafanoharana at gmail.com
Fri Jun 17 12:52:24 EDT 2011


Dear all,

I would like to sum two variable within one netcdf file for each time t=1 to
t=366.
I have one netcdf file (file.nc) which contains two variables a and b from
t=1 to t=366
What I am trying to do is to sum each value per time, I mean
sum a,b for t=1
sum a,b for t=2
...
sum a,b for t=366

I tried this command:

define c=sum(a+b, t=1, t=366)

but didn't give me what I needed.
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
I hope you get my problem,

Best Regards,

Serge
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110617/50c789e2/attachment-0003.html 


More information about the gradsusr mailing list