<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"> Dr. Bernd,<div><br></div><div> Thank you very much for this step-by-step guide. Please find attached the resulting figure of the integration. I also defined my own spatial domain to produce the figure (southern Brazil).</div><div><br></div><div> Now the big question is: how to write these results into a netcdf file?</div><div><br></div><div> Best regards,</div><div><br></div><div> Thiago.<br><br>--- On <b>Fri, 23/7/10, Becker, Bernd <i><bernd.becker@metoffice.gov.uk></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Becker, Bernd <bernd.becker@metoffice.gov.uk><br>Subject: Re: [gradsusr] Obtaining total values of a dimension on a netCDFfile<br>To: "GrADS Users Forum" <gradsusr@gradsusr.org><br>Date: Friday, 23
July, 2010, 5:37<br><br><div id="yiv1375378517">
<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 rel="nofollow">gradsusr@gradsusr.org</a><br><a rel="nofollow" target="_blank" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a><br></div></blockquote></div></td></tr></tbody></table><br>
</div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>gradsusr mailing list<br><a ymailto="mailto:gradsusr@gradsusr.org" href="/mc/compose?to=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></table><br>