<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18702"></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=913443608-23072010>Ok. </SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=913443608-23072010>you are getting there.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=913443608-23072010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=913443608-23072010>try:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=913443608-23072010>set t 1</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=913443608-23072010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2>d
sum(data,t=1,t=32)</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT
size=2></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2>a<SPAN
class=913443608-23072010>ny numbers looking
familiar?</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=913443608-23072010>Cheers,</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=913443608-23072010>Bernd.</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=913443608-23072010></SPAN></FONT></FONT></FONT> </DIV>
<DIV><BR></DIV>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> gradsusr-bounces@gradsusr.org
[mailto:gradsusr-bounces@gradsusr.org] <B>On Behalf Of </B>Thiago
Veloso<BR><B>Sent:</B> 22 July 2010 18:06<BR><B>To:</B> GrADS Users
Forum<BR><B>Subject:</B> Re: [gradsusr] Obtaining total values of a dimension on
a netCDFfile<BR></FONT><BR></DIV>
<DIV></DIV>
<TABLE border=0 cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD vAlign=top> Dear Bernd,
<DIV><BR></DIV>
<DIV> Thanks for your reply.</DIV>
<DIV><BR></DIV>
<DIV> After trying the procedure you suggested I received lots
of information on display. Each information set corresponding to a
specific day.</DIV>
<DIV><BR></DIV>
<DIV> For example, setting t 1 3 generates:</DIV>
<DIV><BR></DIV>
<DIV>
<DIV>ga-> set t 1 3</DIV>
<DIV>Time values set: 2009:1:1:0 2009:1:3:0 </DIV>
<DIV>ga-> d cmorph</DIV>
<DIV>Data Type = grid</DIV>
<DIV>Dimensions = 0 1</DIV>
<DIV>I Dimension = 0 to 4949 Linear -0.0363783 0.0727567</DIV>
<DIV>J Dimension = 1 to 1649 Linear -59.9636 0.0727714</DIV>
<DIV>Sizes = 4950 1649 8162550</DIV>
<DIV>Undef value = -9.99e+08</DIV>
<DIV>Undef count = 114789 Valid count = 8047761</DIV>
<DIV>Min, Max = 0 241</DIV>
<DIV>Cmin, cmax, cint = 0 240 20</DIV>
<DIV>Stats[sum,sumsqr,root(sumsqr),n]: 4.20946e+06
8.7492e+07 9353.71 8047761</DIV>
<DIV>Stats[(sum,sumsqr,root(sumsqr))/n]: 0.523059 10.8716
3.29721</DIV>
<DIV>Stats[(sum,sumsqr,root(sumsqr))/(n-1)]: 0.523059 10.8716
3.29721</DIV>
<DIV>Stats[(sigma,var)(n)]: 3.25546 10.598</DIV>
<DIV>Stats[(sigma,var)(n-1)]: 3.25546 10.598</DIV>
<DIV>Data Type = grid</DIV>
<DIV>Dimensions = 0 1</DIV>
<DIV>I Dimension = 0 to 4949 Linear -0.0363783 0.0727567</DIV>
<DIV>J Dimension = 1 to 1649 Linear -59.9636 0.0727714</DIV>
<DIV>Sizes = 4950 1649 8162550</DIV>
<DIV>Undef value = -9.99e+08</DIV>
<DIV>Undef count = 89326 Valid count = 8073224</DIV>
<DIV>Min, Max = 0 217</DIV>
<DIV>Cmin, cmax, cint = 0 200 20</DIV>
<DIV>Stats[sum,sumsqr,root(sumsqr),n]: 3.78218e+06
7.38863e+07 8595.71 8073224</DIV>
<DIV>Stats[(sum,sumsqr,root(sumsqr))/n]: 0.468485 9.15202
3.02523</DIV>
<DIV>Stats[(sum,sumsqr,root(sumsqr))/(n-1)]: 0.468485 9.15202
3.02523</DIV>
<DIV>Stats[(sigma,var)(n)]: 2.98874 8.93254</DIV>
<DIV>Stats[(sigma,var)(n-1)]: 2.98874 8.93254</DIV>
<DIV>Data Type = grid</DIV>
<DIV>Dimensions = 0 1</DIV>
<DIV>I Dimension = 0 to 4949 Linear -0.0363783 0.0727567</DIV>
<DIV>J Dimension = 1 to 1649 Linear -59.9636 0.0727714</DIV>
<DIV>Sizes = 4950 1649 8162550</DIV>
<DIV>Undef value = -9.99e+08</DIV>
<DIV>Undef count = 177477 Valid count = 7985073</DIV>
<DIV>Min, Max = 0 200</DIV>
<DIV>Cmin, cmax, cint = 0 200 20</DIV>
<DIV>Stats[sum,sumsqr,root(sumsqr),n]: 3.8412e+06
9.12816e+07 9554.14 7985073</DIV>
<DIV>Stats[(sum,sumsqr,root(sumsqr))/n]: 0.481048 11.4315
3.38105</DIV>
<DIV>Stats[(sum,sumsqr,root(sumsqr))/(n-1)]: 0.481048 11.4315
3.38106</DIV>
<DIV>Stats[(sigma,var)(n)]: 3.34666 11.2001</DIV>
<DIV>Stats[(sigma,var)(n-1)]: 3.34666 11.2001</DIV>
<DIV>ga-> </DIV></DIV>
<DIV><BR></DIV>
<DIV> Is this information enough?</DIV>
<DIV><BR></DIV>
<DIV> Best wishes,</DIV>
<DIV><BR></DIV>
<DIV> Thiago.</DIV>
<DIV><BR><BR>--- On <B>Thu, 22/7/10, Becker, Bernd
<I><bernd.becker@metoffice.gov.uk></I></B> wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px"><BR>From:
Becker, Bernd <bernd.becker@metoffice.gov.uk><BR>Subject: Re:
[gradsusr] Obtaining total values of a dimension on a netCDF file<BR>To:
"GrADS Users Forum" <gradsusr@gradsusr.org><BR>Date: Thursday, 22
July, 2010, 12:20<BR><BR>
<DIV id=yiv728070415>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=205202015-22072010>sdfopen file.nc</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=205202015-22072010>set gxout stats</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=205202015-22072010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=205202015-22072010>set t 1 32</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=205202015-22072010>d var</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=205202015-22072010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=205202015-22072010>what does that produce?</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=205202015-22072010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=205202015-22072010>Bernd.</SPAN></FONT></DIV><BR>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> gradsusr-bounces@gradsusr.org
[mailto:gradsusr-bounces@gradsusr.org] <B>On Behalf Of </B>Thiago
Veloso<BR><B>Sent:</B> 22 July 2010 15:18<BR><B>To:</B>
gradsusr@gradsusr.org<BR><B>Subject:</B> [gradsusr] Obtaining total
values of a dimension on a netCDF file<BR></FONT><BR></DIV>
<DIV></DIV>
<TABLE border=0 cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD vAlign=top> Dear GrADS colleagues,
<DIV><BR></DIV>
<DIV> I am working with a netCDF file which contains
precipitation values for 31 days. What I am trying to do is to use
NCO to obtain the sum of the "time" dimension (thus, the 31 days),
but with no success until the present moment.</DIV>
<DIV><BR></DIV>
<DIV> Could anybody give some directions?</DIV>
<DIV><BR></DIV>
<DIV> Best regards,</DIV>
<DIV><BR></DIV>
<DIV> Thiago.</DIV></TD></TR></TBODY></TABLE><BR></DIV><BR>-----Inline
Attachment Follows-----<BR><BR>
<DIV
class=plainMail>_______________________________________________<BR>gradsusr
mailing list<BR><A href="/mc/compose?to=gradsusr@gradsusr.org"
ymailto="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></DIV></BLOCKQUOTE></DIV></TD></TR></TBODY></TABLE><BR></BODY></HTML>