[gradsusr] Obtaining total values of a dimension on a netCDF file

Thiago Veloso thi_veloso at yahoo.com.br
Thu Jul 22 13:05:40 EDT 2010


  Dear Bernd,
  Thanks for your reply.
  After trying the procedure you suggested I received lots of information on display. Each information set corresponding to a specific day.
  For example, setting t 1 3 generates:
ga-> set t 1 3Time values set: 2009:1:1:0 2009:1:3:0 ga-> d cmorphData Type = gridDimensions = 0 1I Dimension = 0 to 4949 Linear -0.0363783 0.0727567J Dimension = 1 to 1649 Linear -59.9636 0.0727714Sizes = 4950 1649 8162550Undef value = -9.99e+08Undef count = 114789  Valid count = 8047761Min, Max = 0 241Cmin, cmax, cint = 0 240 20Stats[sum,sumsqr,root(sumsqr),n]:     4.20946e+06 8.7492e+07 9353.71 8047761Stats[(sum,sumsqr,root(sumsqr))/n]:     0.523059 10.8716 3.29721Stats[(sum,sumsqr,root(sumsqr))/(n-1)]: 0.523059 10.8716 3.29721Stats[(sigma,var)(n)]:     3.25546 10.598Stats[(sigma,var)(n-1)]:   3.25546 10.598Data Type = gridDimensions = 0 1I Dimension = 0 to 4949 Linear -0.0363783 0.0727567J Dimension = 1 to 1649 Linear -59.9636 0.0727714Sizes = 4950 1649 8162550Undef value = -9.99e+08Undef count = 89326  Valid count = 8073224Min, Max = 0 217Cmin, cmax, cint = 0 200 20Stats[sum,sumsqr,root(sumsqr),n]:     3.78218e+06 7.38863e+07 8595.71
 8073224Stats[(sum,sumsqr,root(sumsqr))/n]:     0.468485 9.15202 3.02523Stats[(sum,sumsqr,root(sumsqr))/(n-1)]: 0.468485 9.15202 3.02523Stats[(sigma,var)(n)]:     2.98874 8.93254Stats[(sigma,var)(n-1)]:   2.98874 8.93254Data Type = gridDimensions = 0 1I Dimension = 0 to 4949 Linear -0.0363783 0.0727567J Dimension = 1 to 1649 Linear -59.9636 0.0727714Sizes = 4950 1649 8162550Undef value = -9.99e+08Undef count = 177477  Valid count = 7985073Min, Max = 0 200Cmin, cmax, cint = 0 200 20Stats[sum,sumsqr,root(sumsqr),n]:     3.8412e+06 9.12816e+07 9554.14 7985073Stats[(sum,sumsqr,root(sumsqr))/n]:     0.481048 11.4315 3.38105Stats[(sum,sumsqr,root(sumsqr))/(n-1)]: 0.481048 11.4315 3.38106Stats[(sigma,var)(n)]:     3.34666 11.2001Stats[(sigma,var)(n-1)]:   3.34666 11.2001ga-> 
  Is this information enough?
  Best wishes,
  Thiago.

--- On Thu, 22/7/10, Becker, Bernd <bernd.becker at metoffice.gov.uk> wrote:

From: Becker, Bernd <bernd.becker at metoffice.gov.uk>
Subject: Re: [gradsusr] Obtaining total values of a dimension on a netCDF file
To: "GrADS Users Forum" <gradsusr at gradsusr.org>
Date: Thursday, 22 July, 2010, 12:20



 
 
 
sdfopen file.nc
set gxout stats
 
set t 1 32
d var
 
what does that produce?
 
Bernd.



From: gradsusr-bounces at gradsusr.org 
[mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Thiago 
Veloso
Sent: 22 July 2010 15:18
To: 
gradsusr at gradsusr.org
Subject: [gradsusr] Obtaining total values of a 
dimension on a netCDF file




  
  
      Dear GrADS colleagues,
      

        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.
      

        Could anybody give some directions?
      

        Best regards,
      

        Thiago.
 

-----Inline Attachment Follows-----

_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org
http://gradsusr.org/mailman/listinfo/gradsusr



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100722/d77d12dd/attachment-0003.html 


More information about the gradsusr mailing list